carl  24.04
Computer ARithmetic Library
IntervalCoefficientExample.cpp
Go to the documentation of this file.
1 
2 
7 
8 #ifdef USE_CLN_NUMBERS
9 #include <cln/cln.h>
10 typedef cln::cl_RA Rational;
11 typedef cln::cl_I Integer;
12 #else
13 #include <gmpxx.h>
14 typedef mpq_class Rational;
15 typedef mpz_class Integer;
16 #endif
17 
18 using namespace carl;
19 
20 int main(int argc, char** argv) {
21 
26 
27 // MultivariatePolynomial<Rational> e6({(Term<Rational>)1,(Rational)3*b, (Rational)1*createMonomial(c,2),(Rational)-1*createMonomial(d,3)});
28 // MultivariatePolynomial<Interval<double>> e6({(Term<Interval<double>>)(Interval<double>)1,(Interval<double>)3*b, (Interval<double>)1*createMonomial(c,2),(Interval<double>)-1*createMonomial(d,3)});
29 // MultivariatePolynomial<Interval<double>> e7({(Interval<double>)1});
30 }
int main(int argc, char **argv)
mpq_class Rational
mpz_class Integer
carl is the main namespace for the library.
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