Theoretica
A C++ numerical and automatic mathematical library
|
A cubic splines node for a given x interval. More...
#include <splines.h>
Public Member Functions | |
spline_node () | |
Default constructor. | |
spline_node (real x, real a, real b, real c, real d) | |
Construct from \(x_i\) and polynomial coefficients. | |
real | operator() (real X) const |
Evaluate the interpolating cubic spline (no check on the input value is performed!) | |
real | deriv (real X) const |
Evaluate the derivative of the interpolating cubic spline (no check on the input value is performed) | |
Public Attributes | |
real | x |
Upper extreme of the interpolation interval \(x_i\). | |
real | a |
Coefficients of the interpolating cubic spline \(a + b x + c x^2 + d x^3\). | |
real | b |
real | c |
real | d |
A cubic splines node for a given x interval.