Package nl.tudelft.simulation.jstats.ode
Interface DifferentialEquationInterface
-
- All Known Implementing Classes:
DifferentialEquation,DifferentialEquation
public interface DifferentialEquationInterfaceAn interface for the DifferentialEquation.Copyright (c) 2002-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Alexander Verbraeck, Peter Jacobs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]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 Detail
-
initialize
void initialize(double x0, double[] y0)initializes the differential equation.- Parameters:
x0- double; the initial x-valuey0- double[]; the initial y-value array
-
y
double[] y(double x)
returns y as a function of x.- Parameters:
x- double; the x-value- Returns:
- y
-
dy
double[] dy(double x, double[] y)returns dy as a function of x,y.- Parameters:
x- double; the x-valuey- double[]; the y-value- Returns:
- dy/dx as a function of x,y
-
-