numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of Tanaka Formula 1. More...
#include <num_collect/ode/runge_kutta/tanaka1_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 = tanaka1_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 = 1 |
Order of lesser coefficients of this formula. | |
static constexpr auto | log_tag |
Log tag. | |
static constexpr index_type | order = 3 |
Order of this formula. | |
static constexpr index_type | stages = 2 |
Number of stages of this formula. | |
Coefficients in Butcher array. | |
| |
static constexpr scalar_type | a11 = coeff(13, 20) |
static constexpr scalar_type | a21 = coeff(-127, 180) |
static constexpr scalar_type | a22 = coeff(13, 20) |
static constexpr scalar_type | b1 = coeff(13, 20) |
static constexpr scalar_type | b2 = coeff(-1, 18) |
static constexpr scalar_type | c1 = coeff(100, 127) |
static constexpr scalar_type | c2 = coeff(27, 127) |
static constexpr scalar_type | cw1 = coeff(1) |
static constexpr scalar_type | ce1 = c1 - cw1 |
static constexpr scalar_type | ce2 = c2 |
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_ {} |
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 1.
Problem | Type of problem. |
FormulaSolver | Type of solver of formula. |
Definition at line 41 of file tanaka1_formula.h.
using num_collect::ode::runge_kutta::tanaka1_formula< Problem, FormulaSolver >::base_type |
Type of base class.
Definition at line 49 of file tanaka1_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::tanaka1_formula< Problem, FormulaSolver >::this_type = tanaka1_formula<Problem, FormulaSolver> |
Type of this class.
Definition at line 46 of file tanaka1_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 109 of file tanaka1_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 125 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 92 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 93 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 94 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 96 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 97 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 99 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 100 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 104 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 105 of file tanaka1_formula.h.
|
staticconstexpr |
Coefficient in Butcher array.
Definition at line 102 of file tanaka1_formula.h.
|
private |
Intermediate variable.
Definition at line 150 of file tanaka1_formula.h.
|
private |
Intermediate variable.
Definition at line 151 of file tanaka1_formula.h.
|
staticconstexpr |
Order of lesser coefficients of this formula.
Definition at line 75 of file tanaka1_formula.h.
|
staticconstexpr |
Log tag.
Definition at line 78 of file tanaka1_formula.h.
|
staticconstexpr |
Order of this formula.
Definition at line 72 of file tanaka1_formula.h.
|
staticconstexpr |
Number of stages of this formula.
Definition at line 69 of file tanaka1_formula.h.