org.opensourcephysics.sip.ch06
Class DampedDrivenPendulum

java.lang.Object
  extended by org.opensourcephysics.sip.ch06.DampedDrivenPendulum
All Implemented Interfaces:
ODE

public class DampedDrivenPendulum
extends java.lang.Object
implements ODE

DampedDrivenPendulum models a damped driven pendulum.


Constructor Summary
DampedDrivenPendulum()
           
 
Method Summary
 void getRate(double[] state, double[] rate)
          Gets the rate using the given state.
 double[] getState()
          Gets the state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DampedDrivenPendulum

public DampedDrivenPendulum()
Method Detail

getRate

public void getRate(double[] state,
                    double[] rate)
Gets the rate using the given state.

Specified by:
getRate in interface ODE
Parameters:
state - double[]
rate - double[]

getState

public double[] getState()
Gets the state.

Specified by:
getState in interface ODE
Returns:
double[]