carl  24.04
Computer ARithmetic Library
MultivariatePolynomial_Create.cpp
Go to the documentation of this file.
1 #include <iostream>
2 
6 
7 #ifdef USE_CLN_NUMBERS
8 #include <cln/cln.h>
9 typedef cln::cl_RA Rational;
10 typedef cln::cl_I Integer;
11 #else
12 #include <gmpxx.h>
13 typedef mpq_class Rational;
14 typedef mpz_class Integer;
15 #endif
16 
17 int main() {
20 
21  /*
22  * A carl::MultivariatePolynomial represents a monomial in multiple
23  * variables. It consists of a vector of carl::Term objects that consist of
24  * a carl::Monomial and a coefficient.
25  */
26 
28  std::cout << p << std::endl;
29 }
mpq_class Rational
mpz_class Integer
Variable fresh_real_variable() noexcept
Definition: VariablePool.h:198
A Variable represents an algebraic variable that can be used throughout carl.
Definition: Variable.h:85