Package com.titan.math.solver
Interface Solver
- All Known Implementing Classes:
AdamsBashforth2ndOrderSolver
,EulerSolver
,PredictorCorrector
,RungeKuttaSolver
public interface Solver
A generic solver, solves differential equation based on Newton's law of motion
-
Method Summary
-
Method Details
-
solve
solver for a differential equation- Parameters:
f
-Function
that is used to estimate the next stepv1
- positions (used like this in the instances of this interface)v2
- velocities (used like this in the instances of this interface)v3
- masses (used like this in the instances of this interface)h
- step-sizet
- current time ("current step * h" if h does not change)- Returns:
- resulting Vector of the function
-