JSci.maths.polynomials
Interface Polynomial

All Superinterfaces:
AbelianGroup.Member, Member, Ring.Member, java.io.Serializable
All Known Implementing Classes:
ComplexPolynomial, RealPolynomial

public interface Polynomial
extends Ring.Member

A Polynomial as a Ring.Member over a Field

PlanetMath references:
Polynomial

Method Summary
 int degree()
          The degree.
 Polynomial divide(Field.Member a)
          Return a new Polynomial with coefficients divided by a
 Field.Member getCoefficient(int k)
          Get the coefficient of degree k, i.e.
 Field.Member[] getCoefficients()
          Get the coefficients as an array
 Polynomial multiply(Field.Member a)
          Return a new Polynomial with coefficients multiplied by a
 
Methods inherited from interface JSci.maths.fields.Ring.Member
multiply
 
Methods inherited from interface JSci.maths.groups.AbelianGroup.Member
add, negate, subtract
 

Method Detail

getCoefficient

public Field.Member getCoefficient(int k)
Get the coefficient of degree k, i.e. a_k if P(x) := sum_{k=0}^n a_k x^k

Parameters:
k - degree
Returns:
coefficient as described above

getCoefficients

public Field.Member[] getCoefficients()
Get the coefficients as an array

Returns:
the coefficients as an array

degree

public int degree()
The degree.

Returns:
the degree

divide

public Polynomial divide(Field.Member a)
Return a new Polynomial with coefficients divided by a

Parameters:
a - divisor
Returns:
new Polynomial with coefficients /= a

multiply

public Polynomial multiply(Field.Member a)
Return a new Polynomial with coefficients multiplied by a

Parameters:
a - factor
Returns:
new Polynomial with coefficients *= a