ODE


package odend;

import Jama.*;

/**
 * class to model ODEs <br>
 *    x' = f(x, t), x(t0) = x0<br>
 * in 1 dimension
 */
public abstract class ODE {
  protected double t0;
  protected Matrix x0; // initial values

  /** 
   * right hand side of ODE
   */
  public abstract Matrix f(Matrix x, double t);

  /**
   * constructor setting initial time and values
   */
  public ODE(Matrix x0, double t0) {
    this.t0 = t0;
    this.x0 = x0;
  }
}

previous    contents     next

Peter Junglas 20.12.1999