|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.symbolic.Expression JSci.maths.symbolic.Constant
public class Constant
This class wraps any constant value. Probably it will become obsolete!
Constructor Summary | |
---|---|
Constant(Member x)
A constant Expression |
Method Summary | |
---|---|
Expression |
differentiate(Variable x)
Differentiation of the expression with respect to a variable |
boolean |
equals(java.lang.Object o)
|
Expression |
evaluate()
This method substitutes the variable with the variable values, if non-null; they can be Contant s or
other Expression s. |
protected int |
getPriority()
Get the priority of the operator described by the expression. |
java.lang.Object |
getSet()
|
Member |
getValue()
|
java.lang.String |
toString()
|
Methods inherited from class JSci.maths.symbolic.Expression |
---|
add, difference, differentiate, divide, divide, inverse, inverse, main, multiply, negate, negative, power, product, product, rise, subtract, sum, sum |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Constant(Member x)
x
- the constant valueMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Expression differentiate(Variable x)
Expression
differentiate
in class Expression
x
- the variablepublic Expression evaluate()
Expression
Contant
s or
other Expression
s. Simplification is performed.
evaluate
in class Expression
protected int getPriority()
Expression
getPriority
in class Expression
public java.lang.Object getSet()
public Member getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |