public class AdamsBashforthMoulton extends Object implements ODESolver
Constructor and Description |
---|
AdamsBashforthMoulton(ABMPredictorCorrector predictorCorrector,
double stepSize)
Create a new instance of the Adams-Bashforth-Moulton method using the given
predictor-corrector pair.
|
AdamsBashforthMoulton(ABMPredictorCorrector predictorCorrector,
double stepSize,
ODEIntegrator integrator)
Create a new instance of the Adams-Bashforth-Moulton method using the given
predictor-corrector pair and the given ODE integrator.
|
Modifier and Type | Method and Description |
---|---|
ODESolution |
solve(ODE1stOrder ode)
Solve an ODE using the Adams-Bashforth-Moulton method.
|
public AdamsBashforthMoulton(ABMPredictorCorrector predictorCorrector, double stepSize)
RungeKutta2
is used for initializing the first n
points.predictorCorrector
- the Adams-Bashforth and Adams-Moulton formulae that are usedstepSize
- the step size between each approximationpublic AdamsBashforthMoulton(ABMPredictorCorrector predictorCorrector, double stepSize, ODEIntegrator integrator)
predictorCorrector
- the Adams-Bashforth and Adams-Moulton formulae that are usedstepSize
- the step size between each approximationintegrator
- the integrator for initializing the first n pointspublic ODESolution solve(ODE1stOrder ode)
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.