40 #ifndef DIFFERENTIAL_HPP
41 #define DIFFERENTIAL_HPP
90 void add_term(
double coefficient,
int exponent);
136 double eval(
double x)
const;
Calculus Class with methods pertaining to basic operations.
double limit_at_infinity() const
Calculate the limit of the polynomial as x approaches infinity.
Differential power_rule() const
Computes the derivative using the power rule.
double limit_at(double x) const
Calculate the limit of the polynomial at a specific point.
void add_term(double coefficient, int exponent)
Adds a term to the Differential object.
Differential product_rule(const Differential &other) const
Computes the derivative using the product rule.
Differential chain_rule(const Differential &inner) const
Computes the derivative using the chain rule.
Differential operator+(const Differential &other) const
Overloaded addition operator for Differential objects.
void display() const
Displays the polynomial in a readable format.
Differential operator*(const Differential &other) const
Overloaded multiplication operator for Differential objects.
Differential quotient_rule(const Differential &other) const
Computes the derivative using the quotient rule.
std::vector< Term > terms
Differential nth_derivative(int n) const
Computes the nth derivative of the current Differential object.
double eval(double x) const
Evaluates the polynomial for a given value of x.
Represents a term in a polynomial.
Term(double coef, int exp)
Constructs a Term with given coefficient and exponent.
The source C++ openGPMP namespace.