|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectru.sstu.math.ep.Expression
public final class Expression
Expression class holds mathematical expression as tree,
can be evaluated, and can be differentiated.
| Method Summary | |
|---|---|
Expression |
derivative(String arg)
Differentiates expression. |
double |
evaluate(Map<String,? extends Number> arg)
Evaluates expression. |
void |
simplify()
Simplifies compiled expression. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public double evaluate(Map<String,? extends Number> arg)
throws org.apache.commons.math.MathException
arg - arguments
org.apache.commons.math.MathException - if cannot evaluate expression
public void simplify()
throws org.apache.commons.math.MathException
org.apache.commons.math.MathException - if some error occurs
public Expression derivative(String arg)
throws org.apache.commons.math.MathException
arg - name of variable
org.apache.commons.math.MathException - if some error occurspublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||