Class PendulumFunction

java.lang.Object
   |
   +----OdesFunction
           |
           +----PendulumFunction

public class PendulumFunction
extends OdesFunction

Constructor Index

 o PendulumFunction(int)

Method Index

 o derivs(double[], double)
Returns RHS of differential equations for Driven Pendulum model
 o getNParameters()
Returnd the number of parameters defining the equation
 o setParameters(double[])
Sets the equation paramters

Constructors

 o PendulumFunction
 PendulumFunction(int n)

Methods

 o setParameters
 public void setParameters(double parameters[])
Sets the equation paramters

Parameters:
paramters - the array of input paramters
Overrides:
setParameters in class OdesFunction
 o derivs
 public double[] derivs(double x[],
                        double t)
Returns RHS of differential equations for Driven Pendulum model

Parameters:
x[] - vector of current value of dependent variables
n - number of dependent variables in array x[]
t - current value of independent variable
Returns:
n compoent vector giving derivatives of dependent variables
Overrides:
derivs in class OdesFunction
 o getNParameters
 public int getNParameters()
Returnd the number of parameters defining the equation

Returns:
number of parameters
Overrides:
getNParameters in class OdesFunction