| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.numerics.Derivative
public class Derivative
Class Integral defines various derivative algorithms. This class cannot be subclassed or instantiated because all methods are static.
| Method Summary | |
|---|---|
| static double | centered(Function f,
         double x,
         double h)Calculates the derivative of a function using the centered difference approximation. | 
| static double | centeredPartial(MultiVarFunction f,
                double[] x,
                int n,
                double tol) | 
| static double[][] | fillArray(Function f,
          double start,
          double stop,
          double tol,
          double[][] data)Fills an array with the derivatives of a function. | 
| static double[][] | fillArray(Function f,
          double start,
          double stop,
          double tol,
          int n) | 
| static double | romberg(Function f,
        double x0,
        double h,
        double tol)Calculates the derivative using the Romberg scheme for Richardson extrapolation. | 
| static double | second(Function f,
       double x,
       double tol) | 
| static double[][] | secondFillArray(Function f,
                double start,
                double stop,
                double tol,
                double[][] data)Fills an array with the second derivative of a function. | 
| static double[][] | secondFillArray(Function f,
                double start,
                double stop,
                double tol,
                int n)Fills an array with the second derivative of a function. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static double romberg(Function f,
                             double x0,
                             double h,
                             double tol)
f - the functionx0 - where derivative is to be calculatedh - initial step sizetol - desired accuracy
public static double centered(Function f,
                              double x,
                              double h)
f - the functionx - the x valueh - 
public static double centeredPartial(MultiVarFunction f,
                                     double[] x,
                                     int n,
                                     double tol)
public static double second(Function f,
                            double x,
                            double tol)
public static double[][] secondFillArray(Function f,
                                         double start,
                                         double stop,
                                         double tol,
                                         int n)
f - start - stop - tol - n - 
public static double[][] secondFillArray(Function f,
                                         double start,
                                         double stop,
                                         double tol,
                                         double[][] data)
f - Functionstart - doublestop - doubletol - doubledata - double[][]
public static double[][] fillArray(Function f,
                                   double start,
                                   double stop,
                                   double tol,
                                   double[][] data)
f - start - stop - tol - data - 
public static double[][] fillArray(Function f,
                                   double start,
                                   double stop,
                                   double tol,
                                   int n)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||