FirstOrderDifferentialEquations equations =
new FirstOrderDifferentialEquations() {
public void computeDerivatives(double t, double[] y, double[] dot)
throws DerivativeException {
if (t < -0.5) {
throw new DerivativeException("{0}", new String[] { "oops" });
} else {
throw new DerivativeException(new RuntimeException("oops"));
}
}
public int getDimension() {
return 1;
}