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.
 Field.Member getCoefficient(int k)
          Get the coefficient of degree k, i.e.
 Field.Member[] getCoefficients()
          Get the coefficients as an array
 Polynomial scalarDivide(Field.Member a)
          Return a new Polynomial with coefficients divided by a
 Polynomial scalarMultiply(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
 
Methods inherited from interface JSci.maths.Member
getSet
 

Method Detail

getCoefficient

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

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

Returns:
the coefficients as an array

degree

int degree()
The degree.

Returns:
the degree

scalarDivide

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

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

scalarMultiply

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

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