|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectpapaya.Polynomial
public final class Polynomial
Static Class for casting one variable type to another.
| Method Summary | |
|---|---|
static double[] |
polyval(double[] x,
double[] coeff)
y = polyval(x,coeff) returns the array values of a polynomial of degree n evaluated at each element of x. |
static double |
polyval(double x,
double[] coeff)
y = polyval(x,coeff) returns the value of a polynomial of degree n evaluated at x. |
static float[] |
polyval(float[] x,
float[] coeff)
y = polyval(x,coeff) returns the value of a polynomial of degree n evaluated at x. |
static float |
polyval(float x,
float[] coeff)
y = polyval(x,coeff) returns the value of a polynomial of degree n evaluated at x. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double polyval(double x,
double[] coeff)
throws ArithmeticException
y = coeff[0]*x^n + coeff[1]*x^(n-1) + .... + coeff[n-1]*x + coeff[n].
E.g. for a quadratic function, y = coeff[0]*x^2 + coeff[1]*x + coeff[2].
x - argument to the polynomial.coeff - the coefficients of the polynomial.
ArithmeticException
public static double[] polyval(double[] x,
double[] coeff)
throws ArithmeticException
y = coeff[0]*x^n + coeff[1]*x^(n-1) + .... + coeff[n-1]*x + coeff[n].
E.g. for a quadratic function, y = coeff[0]*x^2 + coeff[1]*x + coeff[2].
x - array argument to the polynomial.coeff - the coefficients of the polynomial.
ArithmeticException
public static float polyval(float x,
float[] coeff)
throws ArithmeticException
y = coeff[0]*x^n + coeff[1]*x^(n-1) + .... + coeff[n-1]*x + coeff[n].
E.g. for a quadratic function, y = coeff[0]*x^2 + coeff[1]*x + coeff[2].
x - argument to the polynomial.coeff - the coefficients of the polynomial.
ArithmeticException
public static float[] polyval(float[] x,
float[] coeff)
throws ArithmeticException
y = coeff[0]*x^n + coeff[1]*x^(n-1) + .... + coeff[n-1]*x + coeff[n].
E.g. for a quadratic function, y = coeff[0]*x^2 + coeff[1]*x + coeff[2].
x - array argument to the polynomial.coeff - the coefficients of the polynomial.
ArithmeticException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||