|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsci.maths.symbolic.Expression
jsci.maths.symbolic.Variable
public class Variable
Variables in an Expression.
Constructor Summary | |
---|---|
Variable(String n,
Object valueSet)
|
Method Summary | |
---|---|
Expression |
differentiate(Variable x)
Differentiation of the expression with respect to a variable |
boolean |
equals(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. |
Object |
getSet()
|
Member |
getValue()
Get the value of the variable. |
void |
setValue(Member o)
Set the value of the variable. |
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 |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Variable(String n, Object valueSet)
n
- the name (symbol) of the variablevalueSet
- the set to which the variable values belong,
e.g. RealField.getInstance(). Note
it is not the Class of the values (odd thing indeed).Method Detail |
---|
public void setValue(Member o)
o
- the value; can be null to unset the variablepublic Member getValue()
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class 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
public Object getSet()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |