jsci.maths.symbolic
Class Constant
java.lang.Object
jsci.maths.symbolic.Expression
jsci.maths.symbolic.Constant
- All Implemented Interfaces:
- Serializable, Field.Member, Ring.Member, AbelianGroup.Member, Member
public class Constant
- extends Expression
This class wraps any constant value. Probably it will become
obsolete!
- See Also:
- Serialized Form
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 |
Constant
public Constant(Member x)
- A constant Expression
- Parameters:
x
- the constant value
toString
public String toString()
- Overrides:
toString
in class Object
differentiate
public Expression differentiate(Variable x)
- Description copied from class:
Expression
- Differentiation of the expression with respect to a variable
- Specified by:
differentiate
in class Expression
- Parameters:
x
- the variable
evaluate
public Expression evaluate()
- Description copied from class:
Expression
- This method substitutes the variable with the variable
values, if non-null; they can be
Contant
s or
other Expression
s. Simplification is performed.
- Specified by:
evaluate
in class Expression
- Returns:
- the evaluated Expression. Can be a Constant.
getSet
public Object getSet()
getValue
public Member getValue()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
jHepWork 3.1 ©