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 aRing.Memberover aField
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intdegree()The degree.Field.MembergetCoefficient(int k)Get the coefficient of degree k, i.e.Field.Member[]getCoefficients()Get the coefficients as an arrayPolynomialscalarDivide(Field.Member a)Return a new Polynomial with coefficients divided by aPolynomialscalarMultiply(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
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
-
-
DMelt 3.0 © DataMelt by jWork.ORG