Package nl.tudelft.simulation.jstats.ode
Interface DifferentialEquationInterface
- All Known Implementing Classes:
DifferentialEquation,DifferentialEquation
public interface DifferentialEquationInterface
An interface for the DifferentialEquation.
Copyright (c) 2002-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.
- Author:
- Alexander Verbraeck, Peter Jacobs
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]dy(double x, double[] y) returns dy as a function of x,y.voidinitialize(double x0, double[] y0) initializes the differential equation.double[]y(double x) returns y as a function of x.
-
Method Details
-
initialize
void initialize(double x0, double[] y0) initializes the differential equation.- Parameters:
x0- the initial x-valuey0- the initial y-value array
-
y
double[] y(double x) returns y as a function of x.- Parameters:
x- the x-value- Returns:
- y
-
dy
double[] dy(double x, double[] y) returns dy as a function of x,y.- Parameters:
x- the x-valuey- the y-value- Returns:
- dy/dx as a function of x,y
-