Theoretica
A C++ numerical and automatic mathematical library
deriv.h File Reference

Derivative approximation. More...

Go to the source code of this file.

Namespaces

 theoretica
 Main namespace of the library which contains all functions and objects.
 

Functions

template<typename Field = real>
polynomial< Field > theoretica::deriv (const polynomial< Field > &p)
 Compute the exact derivative of a polynomial function. More...
 
template<typename RealFunction = std::function<real(real)>, enable_real_func< RealFunction > = true>
real theoretica::deriv_central (RealFunction f, real x, real h=CALCULUS_DERIV_STEP)
 Approximate the first derivative of a real function using the central method. More...
 
template<typename RealFunction = std::function<real(real)>, enable_real_func< RealFunction > = true>
real theoretica::deriv_forward (RealFunction f, real x, real h=CALCULUS_DERIV_STEP)
 Approximate the first derivative of a real function using the forward method. More...
 
template<typename RealFunction = std::function<real(real)>, enable_real_func< RealFunction > = true>
real theoretica::deriv_backward (RealFunction f, real x, real h=CALCULUS_DERIV_STEP)
 Approximate the first derivative of a real function using the backward method. More...
 
template<typename RealFunction = std::function<real(real)>, enable_real_func< RealFunction > = true>
real theoretica::deriv_ridders2 (RealFunction f, real x, real h=CALCULUS_DERIV_STEP)
 Approximate the first derivative of a real function using Ridder's method of second degree. More...
 
template<typename RealFunction = std::function<real(real)>, enable_real_func< RealFunction > = true>
real theoretica::deriv_ridders (RealFunction f, real x, real h=0.01, unsigned int degree=3)
 Approximate the first derivative of a real function using Ridder's method of arbitrary degree. More...
 
template<typename RealFunction = std::function<real(real)>, enable_real_func< RealFunction > = true>
real theoretica::deriv (RealFunction f, real x, real h=CALCULUS_DERIV_STEP)
 Approximate the first derivative of a real function using the best available algorithm. More...
 
template<typename RealFunction = std::function<real(real)>, enable_real_func< RealFunction > = true>
real theoretica::deriv2 (RealFunction f, real x, real h=CALCULUS_DERIV_STEP)
 Approximate the second derivative of a real function using the best available algorithm. More...
 

Detailed Description

Derivative approximation.