numericalMethods.calculus.odeSolving
Class RungeKuttaFehlberg

java.lang.Object
  |
  +--numericalMethods.calculus.odeSolving.RungeKuttaFehlberg
All Implemented Interfaces:
java.lang.Cloneable, OdeSolver, java.io.Serializable

public class RungeKuttaFehlberg
extends java.lang.Object
implements OdeSolver, java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
(package private) static double a2
           
(package private) static double a3
           
(package private) static double a4
           
(package private) static double a5
           
(package private) static double a6
           
(package private) static double b21
           
(package private) static double b31
           
(package private) static double b32
           
(package private) static double b41
           
(package private) static double b42
           
(package private) static double b43
           
(package private) static double b51
           
(package private) static double b52
           
(package private) static double b53
           
(package private) static double b54
           
(package private) static double b61
           
(package private) static double b62
           
(package private) static double b63
           
(package private) static double b64
           
(package private) static double b65
           
(package private) static double c1
           
(package private) static double c3
           
(package private) static double c4
           
(package private) static double c6
           
(package private) static double dc1
           
(package private) static double dc3
           
(package private) static double dc4
           
(package private) static double dc5
           
(package private) static double dc6
           
(package private)  double eps
           
(package private) static double EPS
           
(package private) static double ERRCON
           
(package private) static int MAX_NUM_OF_STEPS
           
(package private)  int numOfEquations
           
(package private) static double PGROW
           
protected  java.beans.PropertyChangeSupport propertyChangeSupport
           
(package private) static double PSHRNK
           
(package private) static double SAFETY
           
(package private)  double stepSize
           
(package private) static double TINY
           
 
Constructor Summary
RungeKuttaFehlberg()
           
RungeKuttaFehlberg(int numOfEquations)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
(package private) static void cashKarpErrorExtimate(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double[] yPrime, double h, double[] yout, double[] yError, double[][] temp)
           
 void firePropertyChange(java.lang.String propertyName)
           
 void firePropertyChange(java.lang.String propertyName, java.lang.Object newValue, java.lang.Object oldValue)
           
 double getEps()
           
 int getNumOfEquations()
           
 double getStepSize()
           
 void odex(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double xEnd)
           
(package private) static void odex(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double xEnd, double eps, double[] h, double minH, int[] stepInfo, numericalMethods.function.DoubleArrayParametrized intermediate)
           
(package private) static void odex(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double xEnd, double eps, double[] h, double minH, int[] stepInfo, numericalMethods.function.DoubleArrayParametrized intermediate, double[][] temp)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setEps(double eps)
           
 void setNumOfEquations(int numOfEquations)
           
 void setStepSize(double stepSize)
           
(package private) static void step(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double[] yPrime, double[] h, double eps, double[] yScale, double[] performedH, double[][] temp)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numOfEquations

int numOfEquations

eps

double eps

stepSize

double stepSize

propertyChangeSupport

protected java.beans.PropertyChangeSupport propertyChangeSupport

SAFETY

static final double SAFETY

PGROW

static final double PGROW

PSHRNK

static final double PSHRNK

ERRCON

static final double ERRCON

b21

static final double b21

b31

static final double b31

b32

static final double b32

b41

static final double b41

b42

static final double b42

b43

static final double b43

b51

static final double b51

b52

static final double b52

b53

static final double b53

b54

static final double b54

b61

static final double b61

b62

static final double b62

b63

static final double b63

b64

static final double b64

b65

static final double b65

a2

static final double a2

a3

static final double a3

a4

static final double a4

a5

static final double a5

a6

static final double a6

c1

static final double c1

c3

static final double c3

c4

static final double c4

c6

static final double c6

dc5

static final double dc5

dc1

static final double dc1

dc3

static final double dc3

dc4

static final double dc4

dc6

static final double dc6

MAX_NUM_OF_STEPS

static final int MAX_NUM_OF_STEPS

TINY

static final double TINY

EPS

static final double EPS
Constructor Detail

RungeKuttaFehlberg

public RungeKuttaFehlberg(int numOfEquations)

RungeKuttaFehlberg

public RungeKuttaFehlberg()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object newValue,
                               java.lang.Object oldValue)

getStepSize

public double getStepSize()

setStepSize

public void setStepSize(double stepSize)

getEps

public double getEps()

setEps

public void setEps(double eps)

getNumOfEquations

public int getNumOfEquations()
Specified by:
getNumOfEquations in interface OdeSolver

setNumOfEquations

public void setNumOfEquations(int numOfEquations)
Specified by:
setNumOfEquations in interface OdeSolver

odex

public void odex(numericalMethods.function.DoubleArrayParametrized p,
                 numericalMethods.function.DoubleArrayValued f,
                 double[] y,
                 double xEnd)
Specified by:
odex in interface OdeSolver

step

static void step(numericalMethods.function.DoubleArrayParametrized p,
                 numericalMethods.function.DoubleArrayValued f,
                 double[] y,
                 double[] yPrime,
                 double[] h,
                 double eps,
                 double[] yScale,
                 double[] performedH,
                 double[][] temp)

cashKarpErrorExtimate

static void cashKarpErrorExtimate(numericalMethods.function.DoubleArrayParametrized p,
                                  numericalMethods.function.DoubleArrayValued f,
                                  double[] y,
                                  double[] yPrime,
                                  double h,
                                  double[] yout,
                                  double[] yError,
                                  double[][] temp)

odex

static void odex(numericalMethods.function.DoubleArrayParametrized p,
                 numericalMethods.function.DoubleArrayValued f,
                 double[] y,
                 double xEnd,
                 double eps,
                 double[] h,
                 double minH,
                 int[] stepInfo,
                 numericalMethods.function.DoubleArrayParametrized intermediate)

odex

static void odex(numericalMethods.function.DoubleArrayParametrized p,
                 numericalMethods.function.DoubleArrayValued f,
                 double[] y,
                 double xEnd,
                 double eps,
                 double[] h,
                 double minH,
                 int[] stepInfo,
                 numericalMethods.function.DoubleArrayParametrized intermediate,
                 double[][] temp)