|
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 / divisorpublic 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()
Functionvariables.
getVariables in class Functionpublic Operable evaluate()
Functionvariables by their current (context-local) values.
public java.lang.StringBuffer appendTo(java.lang.StringBuffer sb)
FunctionStringBuffer argument.
sb - the StringBuffer to append.
sbpublic java.lang.Object export()
RealtimeRealtime 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 Realtimeexport in class RealtimeObjectpublic java.lang.Object toHeap()
RealtimeRealtime 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 RealtimetoHeap in class RealtimeObjectpublic Operable plus(Operable o)
Operable
public Operable opposite()
Operablethis.plus(this.opposite()) == ZERO,
with ZERO being the additive identity.
public Operable times(Operable o)
Operable
public Operable reciprocal()
Operablethis.times(this.reciprocal()) == ONE ,
with ONE being the multiplicative identity.
reciprocal in interface Operablereciprocal in class Functionpublic Function compose(Function f)
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 Functionv - 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 | |||||||||