12 static std::map<carl::Variable, GiNaC::symbol>
vars;
26 return GiNaC::numeric(n);
31 return GiNaC::numeric(ss.str().c_str());
44 return std::accumulate(vp.begin(), vp.end(), GiNaC::ex(1), std::multiplies<GiNaC::ex>());
46 template<
typename Coeff>
50 template<
typename Coeff>
52 return std::accumulate(terms.begin(), terms.end(), GiNaC::ex(0), std::plus<GiNaC::ex>());
carl is the main namespace for the library.
std::size_t exponent
Type of an exponent.
Interval< Number > exp(const Interval< Number > &i)
Interval< Number > pow(const Interval< Number > &i, Integer exp)
static std::map< carl::Variable, GiNaC::symbol > vars
Number operator()(const cln::cl_RA &n)
Number operator()(const mpq_class &n)
Term operator()(const GiNaC::numeric &n, const GiNaC::ex &mon)
Variable operator()(carl::Variable::Arg v)
MPolynomial operator()(const std::vector< GiNaC::ex > &terms)
VariablePower operator()(GiNaC::symbol v, const carl::exponent &exp)
Monomial operator()(const std::vector< GiNaC::ex > &vp)
A Variable represents an algebraic variable that can be used throughout carl.
static VariablePool & getInstance()
Returns the single instance of this class by reference.