flanagan.integration
Class RungeKutta

java.lang.Object
  extended by flanagan.integration.RungeKutta

public class RungeKutta
extends Object


Constructor Summary
RungeKutta()
           
 
Method Summary
 double cashKarp(DerivFunction g)
           
static double cashKarp(DerivFunction g, double x0, double y0, double xn, double h, double absTol, double relTol)
           
static double cashKarp(DerivFunction g, double x0, double y0, double xn, double h, double absTol, double relTol, int maxIter)
           
 double[] cashKarp(DerivnFunction g)
           
static double[] cashKarp(DerivnFunction g, double x0, double[] y0, double xn, double h, double absTol, double relTol)
           
static double[] cashKarp(DerivnFunction g, double x0, double[] y0, double xn, double h, double absTol, double relTol, int maxIter)
           
 double fehlberg(DerivFunction g)
           
static double fehlberg(DerivFunction g, double x0, double y0, double xn, double h, double absTol, double relTol)
           
static double fehlberg(DerivFunction g, double x0, double y0, double xn, double h, double absTol, double relTol, int maxIter)
           
 double[] fehlberg(DerivnFunction g)
           
static double[] fehlberg(DerivnFunction g, double x0, double[] y0, double xn, double h, double absTol, double relTol)
           
static double[] fehlberg(DerivnFunction g, double x0, double[] y0, double xn, double h, double absTol, double relTol, int maxIter)
           
 double fourthOrder(DerivFunction g)
           
static double fourthOrder(DerivFunction g, double x0, double y0, double xn, double h)
           
 double[] fourthOrder(DerivnFunction g)
           
static double[] fourthOrder(DerivnFunction g, double x0, double[] y0, double xn, double h)
           
 int getNumberOfIterations()
           
static void resetNstepsMultiplier(int multiplier)
           
 void setFinalValueOfX(double xn)
           
 void setInitialValueOfX(double x0)
           
 void setInitialValueOfY(double y0)
           
 void setInitialValueOfY(double[] yy0)
           
 void setInitialValuesOfY(double y0)
           
 void setInitialValuesOfY(double[] yy0)
           
 void setMaximumIterations(int maxIter)
           
 void setStepSize(double step)
           
 void setToleranceAdditionFactor(double absTol)
           
 void setToleranceScalingFactor(double relTol)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RungeKutta

public RungeKutta()
Method Detail

setInitialValueOfX

public void setInitialValueOfX(double x0)

setFinalValueOfX

public void setFinalValueOfX(double xn)

setInitialValueOfY

public void setInitialValueOfY(double y0)

setInitialValueOfY

public void setInitialValueOfY(double[] yy0)

setInitialValuesOfY

public void setInitialValuesOfY(double y0)

setInitialValuesOfY

public void setInitialValuesOfY(double[] yy0)

setStepSize

public void setStepSize(double step)

setToleranceScalingFactor

public void setToleranceScalingFactor(double relTol)

setToleranceAdditionFactor

public void setToleranceAdditionFactor(double absTol)

setMaximumIterations

public void setMaximumIterations(int maxIter)

getNumberOfIterations

public int getNumberOfIterations()

resetNstepsMultiplier

public static void resetNstepsMultiplier(int multiplier)

fourthOrder

public double fourthOrder(DerivFunction g)

fourthOrder

public static double fourthOrder(DerivFunction g,
                                 double x0,
                                 double y0,
                                 double xn,
                                 double h)

fourthOrder

public double[] fourthOrder(DerivnFunction g)

fourthOrder

public static double[] fourthOrder(DerivnFunction g,
                                   double x0,
                                   double[] y0,
                                   double xn,
                                   double h)

cashKarp

public double cashKarp(DerivFunction g)

cashKarp

public static double cashKarp(DerivFunction g,
                              double x0,
                              double y0,
                              double xn,
                              double h,
                              double absTol,
                              double relTol,
                              int maxIter)

cashKarp

public static double cashKarp(DerivFunction g,
                              double x0,
                              double y0,
                              double xn,
                              double h,
                              double absTol,
                              double relTol)

cashKarp

public double[] cashKarp(DerivnFunction g)

cashKarp

public static double[] cashKarp(DerivnFunction g,
                                double x0,
                                double[] y0,
                                double xn,
                                double h,
                                double absTol,
                                double relTol,
                                int maxIter)

cashKarp

public static double[] cashKarp(DerivnFunction g,
                                double x0,
                                double[] y0,
                                double xn,
                                double h,
                                double absTol,
                                double relTol)

fehlberg

public double fehlberg(DerivFunction g)

fehlberg

public static double fehlberg(DerivFunction g,
                              double x0,
                              double y0,
                              double xn,
                              double h,
                              double absTol,
                              double relTol,
                              int maxIter)

fehlberg

public static double fehlberg(DerivFunction g,
                              double x0,
                              double y0,
                              double xn,
                              double h,
                              double absTol,
                              double relTol)

fehlberg

public double[] fehlberg(DerivnFunction g)

fehlberg

public static double[] fehlberg(DerivnFunction g,
                                double x0,
                                double[] y0,
                                double xn,
                                double h,
                                double absTol,
                                double relTol,
                                int maxIter)

fehlberg

public static double[] fehlberg(DerivnFunction g,
                                double x0,
                                double[] y0,
                                double xn,
                                double h,
                                double absTol,
                                double relTol)


jHepWork 3.1 ©