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-2024 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
Modifier and TypeMethodDescriptiondouble[]
dy
(double x, double[] y) returns dy as a function of x,y.void
initialize
(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
- 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
-