rkm.ode
Class ExampleODE1
java.lang.Object
rkm.ode.ODE
rkm.ode.ExampleODE1
public class ExampleODE1
- extends ODE
Example ODE: y' = 1 / x.
Method Summary |
double |
evalDeriv(double x,
double y)
Evaluate this ODE at point (x,y). |
double |
evalSol(double x0,
double y0,
double x)
Evaluate the solution through (x0,y0) at point x. |
java.lang.String |
getSolutionDescription()
|
java.awt.geom.Point2D |
getStartPointSuggestion()
|
double |
getStepSizeSuggestion()
|
boolean |
isNearDiscont(double x0,
double y0,
double x,
double eps)
|
boolean |
isValidInterval(double x0,
double y0,
double width)
|
boolean |
requiresParameter()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExampleODE1
public ExampleODE1()
requiresParameter
public boolean requiresParameter()
- Specified by:
requiresParameter
in class ODE
- Returns:
- whether this ODE uses a parameter.
evalDeriv
public double evalDeriv(double x,
double y)
- Description copied from class:
ODE
- Evaluate this ODE at point (x,y).
- Specified by:
evalDeriv
in class ODE
evalSol
public double evalSol(double x0,
double y0,
double x)
- Description copied from class:
ODE
- Evaluate the solution through (x0,y0) at point x.
- Specified by:
evalSol
in class ODE
isNearDiscont
public boolean isNearDiscont(double x0,
double y0,
double x,
double eps)
- Specified by:
isNearDiscont
in class ODE
- Returns:
- whether the solution through (x0,y0) at point x is within distance eps of a discontinuity.
This information is used when plotting the solution.
isValidInterval
public boolean isValidInterval(double x0,
double y0,
double width)
- Specified by:
isValidInterval
in class ODE
- Returns:
- whether the given values can be used as initial values to solve this ODE.
getStartPointSuggestion
public java.awt.geom.Point2D getStartPointSuggestion()
- Specified by:
getStartPointSuggestion
in class ODE
- Returns:
- a suggested starting point.
getStepSizeSuggestion
public double getStepSizeSuggestion()
- Specified by:
getStepSizeSuggestion
in class ODE
- Returns:
- a suggested step size.
toString
public java.lang.String toString()
- Specified by:
toString
in class ODE
- Returns:
- a description of this ODE.
getSolutionDescription
public java.lang.String getSolutionDescription()
- Specified by:
getSolutionDescription
in class ODE
- Returns:
- a description of the solutions for this ODE.