public class RationalFunction<F extends Field<F>> extends Function<F,F> implements Field<RationalFunction<F>>
Polynomial,
it is also a field (invertible).| Modifier and Type | Method and Description |
|---|---|
RationalFunction<F> |
copy()
Returns a copy of this rational function.
|
RationalFunction<F> |
differentiate(Variable<F> v)
Returns the first derivative of this function with respect to
the specified variable.
|
Function<F,F> |
divide(Function<F,F> that)
Returns the quotient of this function with the one specified.
|
RationalFunction<F> |
divide(RationalFunction<F> that)
Returns the quotient of two rational functions.
|
boolean |
equals(Object obj)
Indicates if this function is equals to the specified object.
|
F |
evaluate()
Evaluates this function using its
variables current
values. |
Polynomial<F> |
getDividend()
Returns the dividend of this rational function.
|
Polynomial<F> |
getDivisor()
Returns the divisor of this rational function.
|
List<Variable<F>> |
getVariables()
Returns a lexically ordered list of the variables (or arguments)
for this function (empty list for constant functions).
|
int |
hashCode()
Returns the hash code for this function (consistent with
Function.equals(Object). |
RationalFunction<F> |
inverse()
Returns the inverse of this rational function.
|
Function<F,F> |
minus(Function<F,F> that)
Returns the difference of this function with the one specified.
|
RationalFunction<F> |
minus(RationalFunction<F> that)
Returns the difference of two rational functions.
|
RationalFunction<F> |
opposite()
Returns the opposite of this rational function.
|
Function<F,F> |
plus(Function<F,F> that)
Returns the sum of this function with the one specified.
|
RationalFunction<F> |
plus(RationalFunction<F> that)
Returns the sum of two rational functions.
|
RationalFunction<F> |
pow(int n)
Returns this function raised at the specified exponent.
|
Function<F,F> |
times(Function<F,F> that)
Returns the product of this function with the one specified.
|
RationalFunction<F> |
times(RationalFunction<F> that)
Returns the product of two rational functions.
|
javolution.text.Text |
toText()
Returns the textual representation of this real-time object
(equivalent to
toString except that the returned value
can be allocated from the local context space). |
static <F extends Field<F>> |
valueOf(Polynomial<F> dividend,
Polynomial<F> divisor)
Returns the rational function from the specified dividend and divisor.
|
public Polynomial<F> getDividend()
public Polynomial<F> getDivisor()
public static <F extends Field<F>> RationalFunction<F> valueOf(Polynomial<F> dividend, Polynomial<F> divisor)
dividend - the dividend value.divisor - the divisor value.dividend / divisorpublic RationalFunction<F> plus(RationalFunction<F> that)
plus in interface GroupAdditive<RationalFunction<F extends Field<F>>>that - the rational function being added.this + thatpublic RationalFunction<F> opposite()
opposite in interface GroupAdditive<RationalFunction<F extends Field<F>>>- thispublic RationalFunction<F> minus(RationalFunction<F> that)
that - the rational function being subtracted.this - thatpublic RationalFunction<F> times(RationalFunction<F> that)
times in interface GroupMultiplicative<RationalFunction<F extends Field<F>>>times in interface Ring<RationalFunction<F extends Field<F>>>that - the rational function multiplier.this · thatpublic RationalFunction<F> inverse()
inverse in interface GroupMultiplicative<RationalFunction<F extends Field<F>>>1 / thispublic RationalFunction<F> divide(RationalFunction<F> that)
that - the rational function divisor.this / thatpublic List<Variable<F>> getVariables()
Functionpublic F evaluate()
Functionvariables current
values.public javolution.text.Text toText()
FunctiontoString except that the returned value
can be allocated from the local context space).public boolean equals(Object obj)
Functionpublic int hashCode()
FunctionFunction.equals(Object).public RationalFunction<F> differentiate(Variable<F> v)
Functiondifferentiate in class Function<F extends Field<F>,F extends Field<F>>v - the variable for which the derivative is calculated.d[this]/dvpublic Function<F,F> plus(Function<F,F> that)
Functionpublic Function<F,F> minus(Function<F,F> that)
Functionpublic Function<F,F> times(Function<F,F> that)
Functionpublic Function<F,F> divide(Function<F,F> that)
Functionpublic RationalFunction<F> pow(int n)
Functionpublic RationalFunction<F> copy()
allocated
by the calling thread (possibly on the stack).copy in interface javolution.lang.ValueType