jsci.maths.symbolic
Class Constant
- java.lang.Object
-
- jsci.maths.symbolic.Expression
-
- jsci.maths.symbolic.Constant
-
- All Implemented Interfaces:
- java.io.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
-
-
Constructor Summary
Constructors Constructor and Description Constant(Member x)A constant Expression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Expressiondifferentiate(Variable x)Differentiation of the expression with respect to a variablebooleanequals(java.lang.Object o)Expressionevaluate()This method substitutes the variable with the variable values, if non-null; they can beContants or otherExpressions.java.lang.ObjectgetSet()MembergetValue()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Constant
public Constant(Member x)
A constant Expression- Parameters:
x- the constant value
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
differentiate
public Expression differentiate(Variable x)
Description copied from class:ExpressionDifferentiation of the expression with respect to a variable- Specified by:
differentiatein classExpression- Parameters:
x- the variable
-
evaluate
public Expression evaluate()
Description copied from class:ExpressionThis method substitutes the variable with the variable values, if non-null; they can beContants or otherExpressions. Simplification is performed.- Specified by:
evaluatein classExpression- Returns:
- the evaluated Expression. Can be a Constant.
-
getSet
public java.lang.Object getSet()
-
getValue
public Member getValue()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG