#include <algorithm>
#include <array>
#include <cmath>
#include "wpi/units/time.hpp"
Go to the source code of this file.
|
| template<typename F, typename T> |
| T | wpi::math::RK4 (F &&f, T x, wpi::units::second_t dt) |
| | Performs 4th order Runge-Kutta integration of dx/dt = f(x) for dt.
|
| template<typename F, typename T, typename U> |
| T | wpi::math::RK4 (F &&f, T x, U u, wpi::units::second_t dt) |
| | Performs 4th order Runge-Kutta integration of dx/dt = f(x, u) for dt.
|
| template<typename F, typename T> |
| T | wpi::math::RK4 (F &&f, wpi::units::second_t t, T y, wpi::units::second_t dt) |
| | Performs 4th order Runge-Kutta integration of dy/dt = f(t, y) for dt.
|
| template<typename F, typename T, typename U> |
| T | wpi::math::RKDP (F &&f, T x, U u, wpi::units::second_t dt, double maxError=1e-6) |
| | Performs adaptive Dormand-Prince integration of dx/dt = f(x, u) for dt.
|
| template<typename F, typename T> |
| T | wpi::math::RKDP (F &&f, wpi::units::second_t t, T y, wpi::units::second_t dt, double maxError=1e-6) |
| | Performs adaptive Dormand-Prince integration of dy/dt = f(t, y) for dt.
|