16 template<
typename Number>
 
   18         assert(upto <= p.
degree(var));
 
   19         std::list<MultivariatePolynomial<Number>> derivatives;
 
   20         if(from > upto) 
return derivatives; 
 
   23         derivatives.push_back(from_th);
 
   24         for(
uint n = from + 1; n <= upto; n++) {
 
carl is the main namespace for the library.
const T & derivative(const T &t, Variable, std::size_t n=1)
Computes the n'th derivative of a number, which is either the number itself (for n = 0) or zero.
std::list< MultivariatePolynomial< Number > > der(const MultivariatePolynomial< Number > &p, Variable::Arg var, uint from, uint upto)
A Variable represents an algebraic variable that can be used throughout carl.
std::size_t degree(Variable::Arg var) const
Calculates the degree of this polynomial with respect to the given variable.