WPILibC++ 2024.3.2
NumericalIntegration.h File Reference
#include <algorithm>
#include <array>
#include <cmath>
#include "units/time.h"

Go to the source code of this file.

Namespaces

namespace  frc
 

Functions

template<typename F , typename T >
frc::RK4 (F &&f, T x, units::second_t dt)
 Performs 4th order Runge-Kutta integration of dx/dt = f(x) for dt. More...
 
template<typename F , typename T , typename U >
frc::RK4 (F &&f, T x, U u, units::second_t dt)
 Performs 4th order Runge-Kutta integration of dx/dt = f(x, u) for dt. More...
 
template<typename F , typename T , typename U >
frc::RKDP (F &&f, T x, U u, units::second_t dt, double maxError=1e-6)
 Performs adaptive Dormand-Prince integration of dx/dt = f(x, u) for dt. More...