|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dautelle.realtime.RealtimeObject
com.dautelle.math.functions.Function
com.dautelle.math.functions.RationalFunction
This class represents the quotient of two Polynomial
.
Nested Class Summary |
Nested classes inherited from class com.dautelle.math.functions.Function |
Function.Variable |
Nested classes inherited from class com.dautelle.realtime.RealtimeObject |
RealtimeObject.Factory |
Method Summary | |
java.lang.StringBuffer |
appendTo(java.lang.StringBuffer sb)
Appends the text representation of this function to the StringBuffer argument. |
Function |
compose(Function f)
Returns the composition of this function with the one specified. |
Function |
differentiate(Function.Variable v)
Returns the first derivative of this function with respect to the specified variable. |
boolean |
equals(java.lang.Object obj)
Compares this rational function against the specified object. |
Operable |
evaluate()
Evaluates this function by replacing its variables by their current (context-local) values. |
java.lang.Object |
export()
Exports this object out of the current pool context. |
Polynomial |
getDividend()
Returns the dividend of this rational function. |
Polynomial |
getDivisor()
Returns the divisor of this rational function. |
java.util.Set |
getVariables()
Returns a set containing this function variables . |
int |
hashCode()
Returns the hash code for this rational function. |
Operable |
opposite()
Returns the additive inverse of this object. |
Operable |
plus(Operable o)
Returns the sum of this object with the one specified. |
Operable |
reciprocal()
Returns the multiplicative inverse of this object. |
Operable |
times(Operable o)
Returns the product of this object with the one specified. |
java.lang.Object |
toHeap()
Moves this object to the heap. |
static RationalFunction |
valueOf(Polynomial dividend,
Polynomial divisor)
Returns the rational function from the specified dividend and divisor. |
Methods inherited from class com.dautelle.math.functions.Function |
integrate, pow, toString |
Methods inherited from class com.dautelle.realtime.RealtimeObject |
clone, isLocalObject, isPoolObject, recycle |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public Polynomial getDividend()
public Polynomial getDivisor()
public static RationalFunction valueOf(Polynomial dividend, Polynomial divisor)
dividend
- the dividend value.divisor
- the divisor value.
dividend / divisor
public boolean equals(java.lang.Object obj)
obj
- the object to compare with.
true
if the objects are the same;
false
otherwise.public int hashCode()
public java.util.Set getVariables()
Function
variables
.
getVariables
in class Function
public Operable evaluate()
Function
variables
by their current (context-local) values.
evaluate
in class Function
public java.lang.StringBuffer appendTo(java.lang.StringBuffer sb)
Function
StringBuffer
argument.
appendTo
in class Function
sb
- the StringBuffer
to append.
sb
public java.lang.Object export()
Realtime
Realtime
members are exported as well (recursion).
This method affects only objects belonging to the current pool context.
To avoid pool depletion, a "free" object from the outer pool
is moved to replace the object being exported.
export
in interface Realtime
export
in class RealtimeObject
public java.lang.Object toHeap()
Realtime
Realtime
members are moved to the heap as well (recursion).
This method affects only objects belonging to a pool context
(current or not).
toHeap
in interface Realtime
toHeap
in class RealtimeObject
public Operable plus(Operable o)
Operable
plus
in interface Operable
plus
in class Function
public Operable opposite()
Operable
this.plus(this.opposite()) == ZERO
,
with ZERO
being the additive identity.
opposite
in interface Operable
opposite
in class Function
public Operable times(Operable o)
Operable
times
in interface Operable
times
in class Function
public Operable reciprocal()
Operable
this.times(this.reciprocal()) == ONE
,
with ONE
being the multiplicative identity.
reciprocal
in interface Operable
reciprocal
in class Function
public Function compose(Function f)
Function
compose
in class Function
f
- the function for which the return value is passed as
argument to this function.
(this o that)
public Function differentiate(Function.Variable v)
Function
differentiate
in class Function
v
- the variable for which the derivative is calculated.
d[this]/dv
|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |