jsci.maths.symbolic
Class Evaluation
- java.lang.Object
-
- jsci.maths.symbolic.Expression
-
- jsci.maths.symbolic.Evaluation
-
- All Implemented Interfaces:
- java.io.Serializable, Field.Member, Ring.Member, AbelianGroup.Member, Member
public class Evaluation extends Expression
This class associates aJSci.maths.analysis.RealFunctionto anExpressionargument, to generate anExpression.
This class will substitute the Function class.
See themain()for example.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Evaluation(RealFunction n, Expression a)
-
Method Summary
All Methods Static 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.intgetPriority()Get the priority of the operator described by the expression.java.lang.ObjectgetSet()static voidmain(java.lang.String[] args)An examplejava.lang.StringtoString()
-
-
-
Constructor Detail
-
Evaluation
public Evaluation(RealFunction n, Expression a)
- Parameters:
n- the function; for example,a- the argument
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getPriority
public int getPriority()
Description copied from class:ExpressionGet the priority of the operator described by the expression. This is needed only for allowing toString() to generate the parenthesis when needed.- Returns:
- the priority
-
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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getSet
public java.lang.Object getSet()
-
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.
-
main
public static void main(java.lang.String[] args)
An example
-
-
DMelt 3.0 © DataMelt by jWork.ORG