public class ComplexPolynomial extends java.lang.Object implements Polynomial
RealPolynomial,
Serialized FormPOLYEPS| Constructor and Description |
|---|
ComplexPolynomial(Complex[] coeff)
Creates a new instance of ComplexPolynomial
|
ComplexPolynomial(Field.Member[] f)
Creates a new ComplexPolynomial object.
|
| Modifier and Type | Method and Description |
|---|---|
AbelianGroup.Member |
add(AbelianGroup.Member g)
The group composition law.
|
int |
degree()
The degree
|
ComplexPolynomial |
divide(Complex a)
Returns the division of this polynomial by a scalar.
|
ComplexPolynomial |
divide(double a)
Returns the division of this polynomial by a scalar.
|
Polynomial |
divide(Field.Member f)
Returns the division of this polynomial by a scalar.
|
boolean |
equals(java.lang.Object o) |
Field.Member |
getCoefficient(int n)
Get the coefficient of degree k, i.e.
|
Complex |
getCoefficientAsComplex(int n) |
Field.Member[] |
getCoefficients()
Get the coefficients as an array
|
Complex[] |
getCoefficientsAsComplexes()
Return the coefficients as an array of complex numbers.
|
int |
hashCode() |
boolean |
isNull() |
boolean |
isOne() |
ComplexPolynomial |
multiply(Complex a)
Returns the multiplication of this polynomial by a scalar.
|
ComplexPolynomial |
multiply(double a)
Returns the multiplication of this polynomial by a scalar.
|
Polynomial |
multiply(Field.Member f)
Returns the multiplication of this polynomial by a scalar.
|
Ring.Member |
multiply(Ring.Member r)
The multiplication law.
|
AbelianGroup.Member |
negate()
Returns the inverse member.
|
AbelianGroup.Member |
subtract(AbelianGroup.Member g)
The group composition law with inverse.
|
java.lang.String |
toString() |
public ComplexPolynomial(Complex[] coeff)
public ComplexPolynomial(Field.Member[] f)
f - public Field.Member getCoefficient(int n)
PolynomialgetCoefficient in interface Polynomialn - public Complex getCoefficientAsComplex(int n)
n - public Field.Member[] getCoefficients()
PolynomialgetCoefficients in interface Polynomialpublic Complex[] getCoefficientsAsComplexes()
public int degree()
Polynomialdegree in interface Polynomialpublic boolean isNull()
public boolean isOne()
public AbelianGroup.Member add(AbelianGroup.Member g)
add in interface AbelianGroup.Memberg - a group memberpublic Polynomial divide(Field.Member f)
divide in interface Polynomiala - public ComplexPolynomial divide(Complex a)
a - public ComplexPolynomial divide(double a)
a - public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - public int hashCode()
hashCode in class java.lang.Objectpublic Polynomial multiply(Field.Member f)
multiply in interface Polynomialf - public ComplexPolynomial multiply(double a)
a - public ComplexPolynomial multiply(Complex a)
a - public Ring.Member multiply(Ring.Member r)
multiply in interface Ring.Memberr - a ring memberpublic AbelianGroup.Member negate()
negate in interface AbelianGroup.Memberpublic AbelianGroup.Member subtract(AbelianGroup.Member g)
subtract in interface AbelianGroup.Memberg - a group memberpublic java.lang.String toString()
toString in class java.lang.Object