Interface Solver
- All Known Implementing Classes:
RungeKuttaSolver
public interface Solver
The differential equation solver service.
- Author:
- Andrzej Kapolka
-
Method Summary
Modifier and TypeMethodDescriptionvoid
solve
(SolverTarget target, double[] initialValues, double timeInterval, double errorThreshold, double[] results) Calculates and returns the values of the target variables after the specified time interval.
-
Method Details
-
solve
void solve(SolverTarget target, double[] initialValues, double timeInterval, double errorThreshold, double[] results) Calculates and returns the values of the target variables after the specified time interval.- Parameters:
target
- the solver target, used to determine the rates of changeinitialValues
- the initial values of the variablestimeInterval
- the time interval, in secondserrorThreshold
- the maximum permissible errorresults
- an array to hold the values of the variables at the end of the time interval
-