|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJSci.maths.symbolic.Expression
JSci.maths.symbolic.Evaluation
public class Evaluation
This class associates a JSci.maths.analysis.RealFunction to
an Expression argument, to generate an Expression.
This class will substitute the Function class.
See the main() for example.
| Constructor Summary | |
|---|---|
Evaluation(RealFunction n,
Expression a)
|
|
| 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 Contants or
other Expressions. |
int |
getPriority()
Get the priority of the operator described by the expression. |
java.lang.Object |
getSet()
|
static void |
main(java.lang.String[] args)
An example |
java.lang.String |
toString()
|
| Methods inherited from class JSci.maths.symbolic.Expression |
|---|
add, difference, differentiate, divide, divide, inverse, inverse, 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 Evaluation(RealFunction n,
Expression a)
n - the function; for example,a - the argument| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int getPriority()
Expression
getPriority in class Expressionpublic Expression differentiate(Variable x)
Expression
differentiate in class Expressionx - the variablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.Object getSet()
public Expression evaluate()
ExpressionContants or
other Expressions. Simplification is performed.
evaluate in class Expressionpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||