org.opensourcephysics.sip.ch05
Class Scatter

java.lang.Object
  extended by org.opensourcephysics.sip.ch05.Scatter
All Implemented Interfaces:
ODE

public class Scatter
extends java.lang.Object
implements ODE

Scatter models particle scattering using a central force law.


Constructor Summary
Scatter()
          Constructs Scatter and sets the ODE solver step size.
 
Method Summary
 void getRate(double[] state, double[] rate)
          Gets the rate array using the given state, {x,vx,y,vy,t}.
 double[] getState()
          Gets the state array, {x,vx,y,vy,t}.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scatter

public Scatter()
Constructs Scatter and sets the ODE solver step size.

Method Detail

getRate

public void getRate(double[] state,
                    double[] rate)
Gets the rate array using the given state, {x,vx,y,vy,t}.

Specified by:
getRate in interface ODE
Parameters:
state - the state
rate - the rate

getState

public double[] getState()
Gets the state array, {x,vx,y,vy,t}.

Specified by:
getState in interface ODE
Returns: