numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of Tanaka Formula 2. More...
#include <num_collect/ode/runge_kutta/tanaka2_formula.h>
Public Types | |
using | base_type |
Type of base class. | |
using | problem_type |
Type of problem. | |
using | scalar_type |
Type of scalars. | |
using | this_type = tanaka2_formula<Problem, FormulaSolver> |
Type of this class. | |
using | variable_type |
Type of variables. | |
Public Types inherited from num_collect::ode::runge_kutta::implicit_formula_base< Derived, Problem, FormulaSolver > | |
using | base_type = formula_base<Derived, Problem> |
Type of base class. | |
using | formula_solver_type = FormulaSolver |
Type of solver of formula. | |
using | problem_type |
Type of problem. | |
using | scalar_type |
Type of scalars. | |
using | variable_type |
Type of variables. | |
Public Types inherited from num_collect::ode::formula_base< Derived, Problem > | |
using | problem_type = Problem |
Type of problem. | |
using | scalar_type = typename problem_type::scalar_type |
Type of scalars. | |
using | variable_type = typename problem_type::variable_type |
Type of variables. | |
Public Member Functions | |
void | step (scalar_type time, scalar_type step_size, const variable_type ¤t, variable_type &estimate) |
Compute the next variable. | |
void | step_embedded (scalar_type time, scalar_type step_size, const variable_type ¤t, variable_type &estimate, variable_type &error) |
Compute the next variable and weak estimate of it with embedded formula. | |
Public Member Functions inherited from num_collect::ode::runge_kutta::implicit_formula_base< Derived, Problem, FormulaSolver > | |
implicit_formula_base (const problem_type &problem=problem_type()) | |
Constructor. | |
auto | formula_solver () -> formula_solver_type & |
Get solver of formula. | |
auto | formula_solver () const -> const formula_solver_type & |
Get solver of formula. | |
auto | logger () const noexcept -> const num_collect::logging::logger & |
Access to the logger. | |
auto | logger () noexcept -> num_collect::logging::logger & |
Access to the logger. | |
auto | tolerances (const error_tolerances< variable_type > &val) -> Derived & |
Set the error tolerances. | |
Public Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
formula_base (const problem_type &problem=problem_type()) | |
Constructor. | |
auto | problem () -> problem_type & |
Get the problem. | |
auto | problem () const -> const problem_type & |
Get the problem. | |
void | step (scalar_type time, scalar_type step_size, const variable_type ¤t, variable_type &estimate) |
Compute the next variable. | |
Static Public Attributes | |
static constexpr index_type | lesser_order = 2 |
Order of lesser coefficients of this formula. | |
static constexpr auto | log_tag |
Log tag. | |
static constexpr index_type | order = 4 |
Order of this formula. | |
static constexpr index_type | stages = 3 |
Number of stages of this formula. | |
Coefficients in Butcher array. | |
| |
static constexpr scalar_type | a11 = coeff(133, 100) |
static constexpr scalar_type | a21 = coeff(-5400, 18167) |
static constexpr scalar_type | a22 = coeff(28967, 36334) |
static constexpr scalar_type | a31 = coeff(133, 50) |
static constexpr scalar_type | a32 = coeff(-108, 25) |
static constexpr scalar_type | a33 = coeff(133, 100) |
static constexpr scalar_type | b1 = coeff(133, 100) |
static constexpr scalar_type | b2 = coeff(1, 2) |
static constexpr scalar_type | b3 = coeff(-33, 100) |
static constexpr scalar_type | c1 = coeff(1250, 20667) |
static constexpr scalar_type | c2 = coeff(18167, 20667) |
static constexpr scalar_type | c3 = coeff(1250, 20667) |
static constexpr scalar_type | cw2 = coeff(1) |
static constexpr scalar_type | ce1 = c1 |
static constexpr scalar_type | ce2 = c2 - cw2 |
static constexpr scalar_type | ce3 = c3 |
Protected Member Functions | |
auto | formula_solver () -> formula_solver_type & |
Get solver of formula. | |
auto | formula_solver () const -> const formula_solver_type & |
Get solver of formula. | |
Protected Member Functions inherited from num_collect::ode::runge_kutta::implicit_formula_base< Derived, Problem, FormulaSolver > | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Protected Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Private Attributes | |
Intermediate variables. | |
variable_type | k1_ {} |
variable_type | k2_ {} |
variable_type | k3_ {} |
Additional Inherited Members | |
Static Protected Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
template<typename T > | |
static constexpr auto | coeff (T val) -> scalar_type |
Convert coefficients. | |
template<typename T1 , typename T2 > | |
static constexpr auto | coeff (T1 num, T2 den) -> scalar_type |
Create coefficients. | |
Class of Tanaka Formula 2.
Problem | Type of problem. |
FormulaSolver | Type of solver of formula. |
Definition at line 41 of file tanaka2_formula.h.
using num_collect::ode::runge_kutta::tanaka2_formula< Problem, FormulaSolver >::base_type |
Type of base class.
Definition at line 49 of file tanaka2_formula.h.
using num_collect::ode::formula_base< Derived, Problem >::problem_type |
Type of problem.
Definition at line 44 of file formula_base.h.
using num_collect::ode::formula_base< Derived, Problem >::scalar_type |
Type of scalars.
Definition at line 45 of file formula_base.h.
using num_collect::ode::runge_kutta::tanaka2_formula< Problem, FormulaSolver >::this_type = tanaka2_formula<Problem, FormulaSolver> |
Type of this class.
Definition at line 46 of file tanaka2_formula.h.
using num_collect::ode::formula_base< Derived, Problem >::variable_type |
Type of variables.
Definition at line 46 of file formula_base.h.
|
inlinenodiscardprotected |
Get solver of formula.
Definition at line 68 of file implicit_formula_base.h.
|
inlinenodiscardprotected |
Get solver of formula.
Definition at line 77 of file implicit_formula_base.h.
|
inline |
Compute the next variable.
[in] | time | Current time. |
[in] | step_size | Step size. |
[in] | current | Current variable. |
[out] | estimate | Estimate of the next variable. |
Definition at line 115 of file tanaka2_formula.h.
|
inline |
Compute the next variable and weak estimate of it with embedded formula.
[in] | time | Current time. |
[in] | step_size | Step size. |
[in] | current | Current variable. |
[out] | estimate | Estimate of the next variable. |
[out] | error | Estimate of error. |
Definition at line 131 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 92 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 93 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 94 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 95 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 96 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 97 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 99 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 100 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 101 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 103 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 104 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 105 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 109 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 110 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 111 of file tanaka2_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 107 of file tanaka2_formula.h.
|
private |
Intermediate variable.
Definition at line 162 of file tanaka2_formula.h.
|
private |
Intermediate variable.
Definition at line 163 of file tanaka2_formula.h.
|
private |
Intermediate variable.
Definition at line 164 of file tanaka2_formula.h.
|
staticconstexpr |
Order of lesser coefficients of this formula.
Definition at line 75 of file tanaka2_formula.h.
|
staticconstexpr |
Log tag.
Definition at line 78 of file tanaka2_formula.h.
|
staticconstexpr |
Order of this formula.
Definition at line 72 of file tanaka2_formula.h.
|
staticconstexpr |
Number of stages of this formula.
Definition at line 69 of file tanaka2_formula.h.