public class RungeKuttaFehlberg extends Object implements ODESolver
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_SAFETY_FACTOR
Default value for the safety factor γ.
|
| Constructor and Description |
|---|
RungeKuttaFehlberg(double epsilon,
double minStepSize)
Create a new instance of the Runge-Kutta-Fehlberg method for the given parameters, with the
default safety factor value.
|
RungeKuttaFehlberg(double epsilon,
double minStepSize,
double gamma)
Create a new instance of the Runge-Kutta-Fehlberg method with the given safety factor.
|
| Modifier and Type | Method and Description |
|---|---|
ODESolution |
solve(ODE1stOrder ode)
Solve the given ODE using Runge-Kutta-Fehlberg method.
|
public static final double DEFAULT_SAFETY_FACTOR
public RungeKuttaFehlberg(double epsilon,
double minStepSize)
epsilon - the upper bound on the local truncation errorminStepSize - the lower bound on step sizepublic RungeKuttaFehlberg(double epsilon,
double minStepSize,
double gamma)
epsilon - the upper bound on the local truncation errorminStepSize - the lower bound on step sizegamma - the safety factor (0 < γ ≤ 1)public ODESolution solve(ODE1stOrder ode)
hMin, an UnsatisfiableErrorCriterionException will be thrown. In this case,
either hMin has to be decreased or epsilon has to be increased.Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.