numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of test problem to pendulum movement. More...
#include <num_prob_collect/ode/pendulum_movement_problem.h>
Public Types | |
using | jacobian_type = Eigen::Matrix2d |
Type of Jacobian. | |
using | scalar_type = double |
Type of scalars. | |
using | variable_type = Eigen::Vector2d |
Type of variables. | |
Public Member Functions | |
auto | diff_coeff () const noexcept -> const variable_type & |
Get the differential coefficient. | |
void | evaluate_on (scalar_type, const variable_type &variable, num_collect::ode::evaluation_type evaluations) |
Evaluate on a (time, variable) pair. | |
auto | jacobian () const noexcept -> const jacobian_type & |
Get the Jacobian. | |
Static Public Attributes | |
static constexpr auto | allowed_evaluations |
Allowed evaluations. | |
Private Attributes | |
variable_type | diff_coeff_ {} |
Differential coefficient. | |
jacobian_type | jacobian_ {} |
Jacobian. | |
Class of test problem to pendulum movement.
This solves the following equation of motion of a pendulum:
\[ \ddot{x} = -\sin{x} \]
In this class, the following equation is used to solve the above equation:
\[ \frac{d}{dt} \begin{pmatrix} \dot{x} \\ x \end{pmatrix} = \begin{pmatrix} -\sin{x} \\ \dot{x} \end{pmatrix} \]
Definition at line 44 of file pendulum_movement_problem.h.
using num_prob_collect::ode::pendulum_movement_problem::jacobian_type = Eigen::Matrix2d |
Type of Jacobian.
Definition at line 53 of file pendulum_movement_problem.h.
Type of scalars.
Definition at line 50 of file pendulum_movement_problem.h.
using num_prob_collect::ode::pendulum_movement_problem::variable_type = Eigen::Vector2d |
Type of variables.
Definition at line 47 of file pendulum_movement_problem.h.
|
inlinenodiscardnoexcept |
Get the differential coefficient.
Definition at line 82 of file pendulum_movement_problem.h.
|
inline |
Evaluate on a (time, variable) pair.
[in] | variable | Variable. |
[in] | evaluations | Evaluations. |
Definition at line 65 of file pendulum_movement_problem.h.
|
inlinenodiscardnoexcept |
|
staticconstexpr |
Allowed evaluations.
Definition at line 56 of file pendulum_movement_problem.h.
|
private |
Differential coefficient.
Definition at line 97 of file pendulum_movement_problem.h.
|
private |
Jacobian.
Definition at line 100 of file pendulum_movement_problem.h.