|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.Math.nonLinear
public final class nonLinear
This class contains some nolinear methods
| Constructor Summary | |
|---|---|
nonLinear()
|
|
| Method Summary | |
|---|---|
static double |
bisect(Function f,
double a,
double b,
double epsi)
Bisection method for solving nonlinear equation |
static double |
bisect(Function f,
double a,
double b,
int n)
Bisection method for solving nonlinear equation |
static double[] |
coef(double[] px,
double[] py)
Compute the coefficients by divided difference |
static double |
eval(double[] a,
double[] px,
int n,
double x)
Compute the value of polynom with Horner's rule |
static double |
lagrangeInterpolation(double[] px,
double[] py,
double x)
Interpoaltion by Lagrange method |
static double |
newton(Function f,
Function deriv,
double x,
double epsi)
Newton method for solving nonlinear equation |
static double |
newton(Function f,
Function deriv,
double x,
int n)
Newton method for solving nonlinear equation |
static double |
richardsonExtrapolation(Function f,
double x,
double h,
int n)
Compute Derivative of a function f at x by the Richardson Extrapolation method |
static double |
richardsonExtrapolation(Function f,
double x,
int n)
Compute the derivative of a function f at x by the Richardson Extrapolation method |
static double |
richardsonExtrapolation2deriv(Function f,
double x,
double h,
int n)
Compute the second derivative of a function f at x by the Richardson Extrapolation method |
static double |
Romberg(Function f,
float a,
float b,
int n)
Compute the integration by Romberg method |
static double |
secant(Function f,
double a,
double b,
double epsi)
Secant method for solving nonlinear equation |
static double |
secant(Function f,
double a,
double b,
int n)
Secant method for solving nonlinear equation |
static double |
trape(Function f,
float a,
float b,
int n)
Compute the integration by Trape method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public nonLinear()
| Method Detail |
|---|
public static double bisect(Function f,
double a,
double b,
int n)
f - nonlinear functiona - A double value, the left pointb - A double value, the right pointn - An integer value, the numbers of iteration
public static double bisect(Function f,
double a,
double b,
double epsi)
f - nonlinear functiona - A double value, the left pointb - A double value, the right pointepsi - A double value, the error
public static double newton(Function f,
Function deriv,
double x,
int n)
f - nonlinear functionderiv - a function, the derivative of fx - A double value, the start pointn - An integer value, the numbers of iteration
public static double newton(Function f,
Function deriv,
double x,
double epsi)
f - nonlinear functionderiv - a function, the derivative of fx - A double value, the start pointepsi - A double value, the error
public static double secant(Function f,
double a,
double b,
int n)
f - nonlinear functiona - A double value, the left pointb - A double value, the right pointn - An integer value, the numbers of iteration
public static double secant(Function f,
double a,
double b,
double epsi)
f - nonlinear functiona - A double value, the left pointb - A double value, the right pointepsi - A double value, the error
public static double richardsonExtrapolation(Function f,
double x,
double h,
int n)
f - nonlinear functionx - A double valueh - A double valuen - An integer value, the numbers of iteration
public static double richardsonExtrapolation(Function f,
double x,
int n)
f - nonlinear functionx - A double valuen - An integer value, the numbers of iteration
public static double richardsonExtrapolation2deriv(Function f,
double x,
double h,
int n)
f - nonlinear functionx - A double valueh - A double valuen - An integer value, the numbers of iteration
public static double[] coef(double[] px,
double[] py)
public static double eval(double[] a,
double[] px,
int n,
double x)
public static double lagrangeInterpolation(double[] px,
double[] py,
double x)
public static double trape(Function f,
float a,
float b,
int n)
public static double Romberg(Function f,
float a,
float b,
int n)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||