Package com.singularsys.jep.reals
Class RealComponents
java.lang.Object
com.singularsys.jep.ComponentSet
com.singularsys.jep.reals.RealComponents
A set of components for real (non-complex) evaluation.
Evaluating
sqrt(-1) will return NaN rather than a complex number.
Function asin(2), acos(2), acosh(0.5), atanh(2), ln(-1), log(-1), lg(-1)
also returns NaN. Furthermore, the constant i is not defined.
This set of components does not use the RealEvaluator so it is still
possible to mix doubles and strings.- Since:
- 3.5
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBuild a set of components using those from the jep instance and standard components if the jep components are null. -
Method Summary
Modifier and TypeMethodDescriptionstatic Evaluatorstatic FunctionTablestatic NodeFactorystatic NumberFactorystatic OperatorTableIstatic Parserstatic PrintVisitorstatic VariableFactorystatic VariableTableMethods inherited from class com.singularsys.jep.ComponentSet
addAuxComponent, addComponents, getAuxComponents, getAuxComps, getBaseComponents, getComponents, getEvaluator, getFunctionTable, getNodeFactory, getNumberFactory, getOperatorTable, getParser, getPrintVisitor, getVariableFactory, getVariableTable, setAuxComps, setEvaluator, setFunctionTable, setNodeFactory, setNumberFactory, setOperatorTable, setParser, setPrintVisitor, setVariableFactory, setVariableTable
-
Constructor Details
-
RealComponents
public RealComponents() -
RealComponents
Build a set of components using those from the jep instance and standard components if the jep components are null.- Parameters:
j-
-
-
Method Details
-
createDefaultNumberFactory
-
createDefaultVariableFactory
-
createDefaultNodeFactory
-
createDefaultFunctionTable
-
createDefaultVariableTable
-
createDefaultOperatorTable
-
createDefaultParser
-
createDefaultEvaluator
-
createDefaultPrintVisitor
-