|
Colt 1.2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cern.jet.math.Constants cern.jet.math.Polynomial
Polynomial functions.
Method Summary | |
static double |
p1evl(double x,
double[] coef,
int N)
Evaluates the given polynomial of degree N at x, assuming coefficient of N is 1.0. |
static double |
polevl(double x,
double[] coef,
int N)
Evaluates the given polynomial of degree N at x. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static double p1evl(double x, double[] coef, int N) throws ArithmeticException
2 N y = C + C x + C x +...+ C x 0 1 2 N where C = 1 and hence is omitted from the array. N Coefficients are stored in reverse order: coef[0] = C , ..., coef[N-1] = C . N-1 0 Calling arguments are otherwise the same as polevl().In the interest of speed, there are no checks for out of bounds arithmetic.
x
- argument to the polynomial.coef
- the coefficients of the polynomial.N
- the degree of the polynomial.
ArithmeticException
public static double polevl(double x, double[] coef, int N) throws ArithmeticException
2 N y = C + C x + C x +...+ C x 0 1 2 N Coefficients are stored in reverse order: coef[0] = C , ..., coef[N] = C . N 0In the interest of speed, there are no checks for out of bounds arithmetic.
x
- argument to the polynomial.coef
- the coefficients of the polynomial.N
- the degree of the polynomial.
ArithmeticException
|
Colt 1.2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |