org.jscience.mathematics.analysis.polynomials
Interface Polynomial

All Superinterfaces:
AbelianGroup.Member, Member, Ring.Member, java.io.Serializable
All Known Implementing Classes:
ComplexPolynomial, DoublePolynomial, ExactComplexPolynomial, ExactRealPolynomial

public interface Polynomial
extends Ring.Member

A Polynomial as a Ring.Member over a Field


Method Summary
 int degree()
          The degree understood as the highest 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 org.jscience.mathematics.algebraic.fields.Ring.Member
multiply
 
Methods inherited from interface org.jscience.mathematics.algebraic.groups.AbelianGroup.Member
add, negate, subtract
 

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 understood as the highest 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