11 #include "InterpSolutionIterator.h" 22 double second_deriv) :
23 zeroth(func_value), first(first_deriv), second(second_deriv)
28 if(deriv_order==0)
return zeroth;
29 else if(deriv_order==1)
return first;
30 else if(deriv_order==2)
return second;
31 else if(deriv_order==3)
return NaN;
38 "which are ill defined.");
A hierarchy of classes representing functions.
double zeroth
The value of the function.
An iterator over a set of solutions to an interpolating function.
A class representing a function that is identically zero.
CubicSplineDerivatives(double func_value, double first_deriv, double second_deriv)
Constuct a spline derivative.
InterpSolutionIterator crossings(double=0) const
An iterator over the ages where the quantity takes the given y value.
const double NaN
Not a number.
Declaration of some general purpose utilities.
double second
The second derivative.
double first
The first derivative.
double order(unsigned deriv_order=1) const
Returns the derivative of the given order (zero is allowed).