|
hermite
0.0.1
|
#include <vector>

Go to the source code of this file.
Functions | |
| void | hermite::spline (const double t[], const double y[], const int n, const double yp1, const double ypn, double y2[]) |
| Calculates second derivatives at tabulated points. More... | |
| bool | hermite::splpos (const double xa[], const double ya[], const double y2a[], const int n, const double x, double *y) |
| Calculates position of spline. More... | |
| bool | hermite::splvel (const double xa[], const double ya[], const double y2a[], const int n, const double x, double *y) |
| Calculates velocity of spline. More... | |
| bool | hermite::splacc (const double xa[], const double ya[], const double y2a[], const int n, const double x, double *y) |
| Calculates acceleration of spline. More... | |
A lower-level spline solver for a natural cubic spline
|
inline |
Calculates acceleration of spline.
https://archive.org/details/NumericalRecipes/page/n139/mode/2up
| xa | The time values of each point where splines are supposed to join up. |
| ya | The y-values of each know point. |
| y2a | Second derivatives, calculated from spline() |
| n | Number of points |
| x | Point to evaluate |
| y | Pointer to result |
|
inline |
Calculates second derivatives at tabulated points.
https://archive.org/details/NumericalRecipes/page/n139/mode/2up
| t | The time values of each point where splines are supposed to join up. |
| y | The y-values of each know point. |
| n | Number of points. |
| yp1 | The velocity at the first point |
| ypn | The velocity at the last point |
| y2 | Output array, filled with second derivatives at each point. |
|
inline |
Calculates position of spline.
https://archive.org/details/NumericalRecipes/page/n139/mode/2up
| xa | The time values of each point where splines are supposed to join up. |
| ya | The y-values of each know point. |
| y2a | Second derivatives, calculated from spline() |
| n | Number of points |
| x | Point to evaluate |
| y | Pointer to result |
|
inline |
Calculates velocity of spline.
https://archive.org/details/NumericalRecipes/page/n139/mode/2up
| xa | The time values of each point where splines are supposed to join up. |
| ya | The y-values of each know point. |
| y2a | Second derivatives, calculated from spline() |
| n | Number of points |
| x | Point to evaluate |
| y | Pointer to result |