public class RungeKutta extends Object implements ODESolver
Constructor and Description |
---|
RungeKutta(RungeKuttaStepper stepper,
double h)
Constructs a Runge-Kutta algorithm with the given integrator and the constant step size.
|
RungeKutta(RungeKuttaStepper stepper,
int N)
Constructs a Runge-Kutta algorithm with the given integrator and the constant number of
steps.
|
Modifier and Type | Method and Description |
---|---|
ODESolution |
solve(ODE1stOrder ode)
Solves a first order ODE.
|
public RungeKutta(RungeKuttaStepper stepper, double h)
stepper
- the integrator algorithmh
- constant step sizepublic RungeKutta(RungeKuttaStepper stepper, int N)
stepper
- the integrator algorithmN
- constant number of stepspublic ODESolution solve(ODE1stOrder ode)
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.