All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.epfl.lcvm.mccc.IVPRungeKutta2

java.lang.Object
   |
   +----CH.epfl.lcvm.mccc.IVPSolverBase
           |
           +----CH.epfl.lcvm.mccc.IVPRungeKutta2

public class IVPRungeKutta2
extends IVPSolverBase
A class which defines an order 2 Runge-Kutta IVP solver


Constructor Index

 o IVPRungeKutta2(ODEFunction)
Construct a IVPRungeKutta2 class from the given ODEFunction

Method Index

 o goToTarget(Matrix, Matrix, double)
Take steps until the target s value has been reached
 o main(String[])
Exercise the class by trying the various functions
 o step(Matrix, Matrix)
Take one step of the default step size

Constructors

 o IVPRungeKutta2
 public IVPRungeKutta2(ODEFunction func)
Construct a IVPRungeKutta2 class from the given ODEFunction

Parameters:
func_ - The ode function to solve

Methods

 o step
 public Matrix step(Matrix value,
                    Matrix parameters) throws MCCCException
Take one step of the default step size

Parameters:
value - Initial value to the sovler
parameters - The values of the parameters
Returns:
the value of the equations after the step
Throws: MCCCException
In case the method doesn't converge it throws this exception
Overrides:
step in class IVPSolverBase
 o goToTarget
 public Matrix goToTarget(Matrix value,
                          Matrix parameters,
                          double target) throws MCCCException
Take steps until the target s value has been reached

Parameters:
value - Initial value to the solver
value - The target s value
Throws: MCCCException
In case the method doesn't converge it throws this exception
Overrides:
goToTarget in class IVPSolverBase
 o main
 public static void main(String argv[]) throws MCCCException
Exercise the class by trying the various functions

Throws: MCCCException
In case something fails in the test harness it throws this exception.

All Packages  Class Hierarchy  This Package  Previous  Next  Index