|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavolution.context.RealtimeObject
org.jscience.mathematics.functions.Function<F,F>
org.jscience.mathematics.functions.RationalFunction<F>
public class RationalFunction<F extends Field<F>>
This class represents the quotient of two Polynomial,
it is also a field (invertible).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javolution.context.RealtimeObject |
|---|
RealtimeObject.Factory<T extends RealtimeObject> |
| Nested classes/interfaces inherited from interface javolution.context.Realtime |
|---|
Realtime.ObjectSpace |
| Method Summary | ||
|---|---|---|
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(java.lang.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. |
|
java.util.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. |
|
boolean |
move(Realtime.ObjectSpace os)
Moves this real-time object to the specified object space. |
|
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. |
|
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
|
valueOf(Polynomial<F> dividend,
Polynomial<F> divisor)
Returns the rational function from the specified dividend and divisor. |
|
| Methods inherited from class org.jscience.mathematics.functions.Function |
|---|
compose, evaluate, evaluate, getVariable, integrate |
| Methods inherited from class javolution.context.RealtimeObject |
|---|
export, isLocal, moveHeap, preserve, toString, unpreserve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 java.util.List<Variable<F>> getVariables()
Function
getVariables in class Function<F extends Field<F>,F extends Field<F>>public F evaluate()
Functionvariables current
values.
evaluate in class Function<F extends Field<F>,F extends Field<F>>public Text toText()
FunctiontoString except that the returned value
can be allocated from the local context space).
toText in interface RealtimetoText in class Function<F extends Field<F>,F extends Field<F>>public boolean equals(java.lang.Object obj)
Function
equals in class Function<F extends Field<F>,F extends Field<F>>obj - the object to be compared with.
true if this function and the specified argument
represent the same function; false otherwise.public int hashCode()
FunctionFunction.equals(Object).
hashCode in class Function<F extends Field<F>,F extends Field<F>>public boolean move(Realtime.ObjectSpace os)
Function
move in interface Realtimemove in class Function<F extends Field<F>,F extends Field<F>>os - the object space to move this real-time object to.
true if the move has to be propagated to
external real-time references; false otherwise.public RationalFunction<F> differentiate(Variable<F> v)
Function
differentiate 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)
Function
plus in class Function<F extends Field<F>,F extends Field<F>>that - the function to be added.
this + that.public Function<F,F> minus(Function<F,F> that)
Function
minus in class Function<F extends Field<F>,F extends Field<F>>that - the function to be subtracted.
this - that.public Function<F,F> times(Function<F,F> that)
Function
times in class Function<F extends Field<F>,F extends Field<F>>that - the function multiplier.
this · that.public Function<F,F> divide(Function<F,F> that)
Function
divide in class Function<F extends Field<F>,F extends Field<F>>that - the function divisor.
this / that.public RationalFunction<F> pow(int n)
Function
pow in class Function<F extends Field<F>,F extends Field<F>>n - the exponent.
thisn
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||