Planetary Orbital Evolution due to Tides
Orbital evolution of two objects experiencing tides
StellarEvolution::RemoveLogDeriv Class Reference

Return dy/dx given dy/dln(x), dln(y)/dx or dln(y)/dln(x). More...

#include <RemoveLogDeriv.h>

+ Inheritance diagram for StellarEvolution::RemoveLogDeriv:
+ Collaboration diagram for StellarEvolution::RemoveLogDeriv:

Public Member Functions

 RemoveLogDeriv (double age, bool log_quantity, const FunctionDerivatives *log_deriv, bool delete_deriv)
 Create a linear derivative from a log one. More...
 
 ~RemoveLogDeriv ()
 Deletes the input logarithmic derivative if so specified on creation. More...
 
- Public Member Functions inherited from StellarEvolution::LogDerivatives
 LogDerivatives (double x=NaN, bool log_y=false)
 Create a derivative for possibly log(functions) of possibly log(arg). More...
 
double order (unsigned deriv_order=1) const
 Returns the deriv_order-th derivative of the quantity. More...
 
- Public Member Functions inherited from Core::FunctionDerivatives
virtual ~FunctionDerivatives ()
 Clean up. More...
 

Protected Member Functions

double calc_deriv (unsigned deriv_order) const
 Returns the deriv_order-th derivative of the quantity. More...
 

Private Attributes

const FunctionDerivatives__log_deriv
 The original logarithmic derivative. More...
 
bool __delete_deriv
 Whether to delete the underlying log-derivative on destruction. More...
 

Detailed Description

Return dy/dx given dy/dln(x), dln(y)/dx or dln(y)/dln(x).

Definition at line 17 of file RemoveLogDeriv.h.

Constructor & Destructor Documentation

◆ RemoveLogDeriv()

StellarEvolution::RemoveLogDeriv::RemoveLogDeriv ( double  age,
bool  log_quantity,
const FunctionDerivatives log_deriv,
bool  delete_deriv 
)
inline

Create a linear derivative from a log one.

Definition at line 30 of file RemoveLogDeriv.h.

◆ ~RemoveLogDeriv()

StellarEvolution::RemoveLogDeriv::~RemoveLogDeriv ( )
inline

Deletes the input logarithmic derivative if so specified on creation.

Definition at line 43 of file RemoveLogDeriv.h.

Member Function Documentation

◆ calc_deriv()

double StellarEvolution::RemoveLogDeriv::calc_deriv ( unsigned  deriv_order) const
inlineprotectedvirtual

Returns the deriv_order-th derivative of the quantity.

Implements StellarEvolution::LogDerivatives.

Definition at line 26 of file RemoveLogDeriv.h.

Member Data Documentation

◆ __delete_deriv

bool StellarEvolution::RemoveLogDeriv::__delete_deriv
private

Whether to delete the underlying log-derivative on destruction.

Definition at line 23 of file RemoveLogDeriv.h.

◆ __log_deriv

const FunctionDerivatives* StellarEvolution::RemoveLogDeriv::__log_deriv
private

The original logarithmic derivative.

Definition at line 20 of file RemoveLogDeriv.h.


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