jsci.maths.symbolic
Class Function
- java.lang.Object
-
- jsci.maths.symbolic.Expression
-
- jsci.maths.symbolic.Function
-
- All Implemented Interfaces:
- java.io.Serializable, Field.Member, Ring.Member, AbelianGroup.Member, Member
public class Function extends Expression
A function like sin(x), exp(x) or sqrt(x).
This will be substituted byEvaluation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringACOSstatic java.lang.StringACOSHstatic java.lang.StringASINstatic java.lang.StringASINHstatic java.lang.StringATANstatic java.lang.StringATANHstatic java.lang.StringCOSstatic java.lang.StringCOSHstatic java.lang.StringEXPstatic java.lang.StringLOGstatic java.lang.StringSINstatic java.lang.StringSINHstatic java.lang.StringSQRTstatic java.lang.StringTANstatic java.lang.StringTANH
-
Constructor Summary
Constructors Constructor and Description Function(java.lang.String n, Expression a)
-
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.intgetPriority()Get the priority of the operator described by the expression.java.lang.ObjectgetSet()java.lang.StringtoString()
-
-
-
Field Detail
-
SIN
public static final java.lang.String SIN
- See Also:
- Constant Field Values
-
COS
public static final java.lang.String COS
- See Also:
- Constant Field Values
-
TAN
public static final java.lang.String TAN
- See Also:
- Constant Field Values
-
ASIN
public static final java.lang.String ASIN
- See Also:
- Constant Field Values
-
ACOS
public static final java.lang.String ACOS
- See Also:
- Constant Field Values
-
ATAN
public static final java.lang.String ATAN
- See Also:
- Constant Field Values
-
SINH
public static final java.lang.String SINH
- See Also:
- Constant Field Values
-
COSH
public static final java.lang.String COSH
- See Also:
- Constant Field Values
-
TANH
public static final java.lang.String TANH
- See Also:
- Constant Field Values
-
ASINH
public static final java.lang.String ASINH
- See Also:
- Constant Field Values
-
ACOSH
public static final java.lang.String ACOSH
- See Also:
- Constant Field Values
-
ATANH
public static final java.lang.String ATANH
- See Also:
- Constant Field Values
-
EXP
public static final java.lang.String EXP
- See Also:
- Constant Field Values
-
LOG
public static final java.lang.String LOG
- See Also:
- Constant Field Values
-
SQRT
public static final java.lang.String SQRT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Function
public Function(java.lang.String n, Expression a)- Parameters:
n- the name (type) of the function; for example, Function.SINa- 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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG