Planetary Orbital Evolution due to Tides
Orbital evolution of two objects experiencing tides
Core::CubicSplineDerivatives Class Reference

A class for the derivatives of a cubic spline (=0 for order>2). More...

#include <Functions.h>

+ Inheritance diagram for Core::CubicSplineDerivatives:
+ Collaboration diagram for Core::CubicSplineDerivatives:

Public Member Functions

 CubicSplineDerivatives (double func_value, double first_deriv, double second_deriv)
 Constuct a spline derivative. More...
 
double order (unsigned deriv_order=1) const
 Returns the derivative of the given order (zero is allowed). More...
 
- Public Member Functions inherited from Core::FunctionDerivatives
virtual ~FunctionDerivatives ()
 Clean up. More...
 

Private Attributes

double zeroth
 The value of the function. More...
 
double first
 The first derivative. More...
 
double second
 The second derivative. More...
 

Detailed Description

A class for the derivatives of a cubic spline (=0 for order>2).

Definition at line 77 of file Functions.h.

Constructor & Destructor Documentation

◆ CubicSplineDerivatives()

Core::CubicSplineDerivatives::CubicSplineDerivatives ( double  func_value,
double  first_deriv,
double  second_deriv 
)

Constuct a spline derivative.

Creates the derivative variable with the values of the function and first and second derivatives as specified. All higher order derivatives are zero.

Parameters
func_valueThe value of the function (zeroth derivative)
first_derivThe first derivative.
second_derivThe second derivative.

Definition at line 20 of file Functions.cpp.

Member Function Documentation

◆ order()

double Core::CubicSplineDerivatives::order ( unsigned  deriv_order = 1) const
virtual

Returns the derivative of the given order (zero is allowed).

Implements Core::FunctionDerivatives.

Definition at line 26 of file Functions.cpp.

Member Data Documentation

◆ first

double Core::CubicSplineDerivatives::first
private

The first derivative.

Definition at line 79 of file Functions.h.

◆ second

double Core::CubicSplineDerivatives::second
private

The second derivative.

Definition at line 79 of file Functions.h.

◆ zeroth

double Core::CubicSplineDerivatives::zeroth
private

The value of the function.

Definition at line 79 of file Functions.h.


The documentation for this class was generated from the following files: