BASE
- public class RationalFunction<BASE extends IRingElement<BASE>> extends FieldElement<RationalFunction<BASE>>
Modifier and Type | Field and Description |
---|---|
private Polynomial<BASE> |
denominator |
private Polynomial<BASE> |
numerator |
private RationalFunctionFactory<BASE> |
rationalFunctionFactory
the singleton factory for rational functions
|
private static long |
serialVersionUID |
Constructor and Description |
---|
RationalFunction(BASE value) |
RationalFunction(Polynomial<BASE> numerator,
IRingElementFactory<BASE> baseFactory) |
RationalFunction(Polynomial<BASE> numerator,
Polynomial<BASE> denominator,
IRingElementFactory<BASE> baseFactory) |
Modifier and Type | Method and Description |
---|---|
RationalFunction<BASE> |
abs()
Deprecated.
|
RationalFunction<BASE> |
add(RationalFunction<BASE> added)
Calculates the sum of this RingElement and another one.
|
int |
compareTo(RationalFunction<BASE> o) |
int |
degree()
The degree of a rational function is the maximum of the degrees of the
numerator and the denominator polynomials.
|
Polynomial<BASE> |
getDenominator() |
IRingElementFactory<RationalFunction<BASE>> |
getFactory()
Give access to the factory for this type.
|
Polynomial<BASE> |
getNumerator() |
int |
hashCode() |
RationalFunction<BASE> |
invert()
Inverts this ring element (divides one by it)
|
boolean |
isZero()
Tests if this RingElement is the neutral element of addition (zero).
|
RationalFunction<BASE> |
multiply(RationalFunction<BASE> factor)
Calculates the product of this IRingElement and another one.
|
RationalFunction<BASE> |
negate()
Calculates the inverse element of addition for this IRingElement.
|
RationalFunction<BASE> |
norm()
Deprecated.
|
java.lang.String |
toString() |
RationalFunction<BASE> |
withoutHighestPower() |
divide, subtract
private static final long serialVersionUID
private Polynomial<BASE extends IRingElement<BASE>> numerator
private Polynomial<BASE extends IRingElement<BASE>> denominator
private final RationalFunctionFactory<BASE extends IRingElement<BASE>> rationalFunctionFactory
public RationalFunction(BASE value)
public RationalFunction(Polynomial<BASE> numerator, Polynomial<BASE> denominator, IRingElementFactory<BASE> baseFactory)
public RationalFunction(Polynomial<BASE> numerator, IRingElementFactory<BASE> baseFactory)
public RationalFunction<BASE> add(RationalFunction<BASE> added)
IRingElement
public RationalFunction<BASE> negate()
IRingElement
public RationalFunction<BASE> multiply(RationalFunction<BASE> factor)
IRingElement
public int degree()
public int compareTo(RationalFunction<BASE> o)
o
- the objectpublic boolean isZero()
RingElement
isZero
in interface IRingElement<RationalFunction<BASE extends IRingElement<BASE>>>
isZero
in class RingElement<RationalFunction<BASE extends IRingElement<BASE>>>
public RationalFunction<BASE> withoutHighestPower()
@Deprecated public RationalFunction<BASE> abs()
IRingElement
@Deprecated public RationalFunction<BASE> norm()
norm
in interface IRingElement<RationalFunction<BASE extends IRingElement<BASE>>>
norm
in class FieldElement<RationalFunction<BASE extends IRingElement<BASE>>>
IRingElement.abs()
public IRingElementFactory<RationalFunction<BASE>> getFactory()
IRingElement
public Polynomial<BASE> getNumerator()
public Polynomial<BASE> getDenominator()
public RationalFunction<BASE> invert()
IRingElement
invert
in interface IRingElement<RationalFunction<BASE extends IRingElement<BASE>>>
invert
in class RingElement<RationalFunction<BASE extends IRingElement<BASE>>>
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object