|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.AbstractMath JSci.maths.polynomials.PolynomialMath
public final class PolynomialMath
Method Summary | |
---|---|
static Complex |
evalPolynomial(ComplexPolynomial p,
Complex t)
Evaluates a polynomial by Horner's scheme. |
static double |
evalPolynomial(RealPolynomial p,
double t)
Evaluates a polynomial by Horner's scheme. |
static Complex[] |
findRoots(RealPolynomial p)
Calculates the roots of a given polynomial by solving the eigenvalue problem for the companion matrix. |
static ComplexPolynomial |
interpolateLagrange(Complex[][] samplingPoints)
Interpolates a polynomial. |
static RealPolynomial |
interpolateLagrange(double[][] samplingPoints)
Interpolates a polynomial. |
static int |
maxDegree(Polynomial p1,
Polynomial p2)
Get the maximum degree of two polynomials |
static int |
minDegree(Polynomial p1,
Polynomial p2)
Get the minimal degree of two polynomials |
static ComplexPolynomial |
normalize(ComplexPolynomial p)
Normalizes a given complex polynomial, i.e. |
static RealPolynomial |
normalize(RealPolynomial p)
Normalizes a given real polynomial, i.e. |
static AbstractComplexSquareMatrix |
toCompanionMatrix(ComplexPolynomial p)
|
static AbstractDoubleSquareMatrix |
toCompanionMatrix(RealPolynomial p)
Returns the companion matrix of a given polynomial. |
static ComplexPolynomial |
toComplex(Polynomial p)
Try to cast a Polynomial to a complex polynomial |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AbstractDoubleSquareMatrix toCompanionMatrix(RealPolynomial p)
p
- the polynomial
public static AbstractComplexSquareMatrix toCompanionMatrix(ComplexPolynomial p)
public static Complex[] findRoots(RealPolynomial p)
p
- the polynomial
public static int maxDegree(Polynomial p1, Polynomial p2)
p1
- p2
- public static int minDegree(Polynomial p1, Polynomial p2)
p1
- p2
- public static double evalPolynomial(RealPolynomial p, double t)
p
- t
- public static Complex evalPolynomial(ComplexPolynomial p, Complex t)
p
- t
- public static RealPolynomial interpolateLagrange(double[][] samplingPoints)
samplingPoints
- an array[2][n] where array[0] denotes x-values, array[1] y-valuespublic static ComplexPolynomial interpolateLagrange(Complex[][] samplingPoints)
samplingPoints
- an array[2][n] where array[0] denotes x-values, array[1] y-valuespublic static RealPolynomial normalize(RealPolynomial p)
p
- public static ComplexPolynomial normalize(ComplexPolynomial p)
p
- public static ComplexPolynomial toComplex(Polynomial p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |