Class RealComponents

java.lang.Object
com.singularsys.jep.ComponentSet
com.singularsys.jep.reals.RealComponents

public class RealComponents extends ComponentSet
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:
  • Constructor Details

    • RealComponents

      public RealComponents()
    • RealComponents

      public RealComponents(Jep j)
      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

      public static NumberFactory createDefaultNumberFactory()
    • createDefaultVariableFactory

      public static VariableFactory createDefaultVariableFactory()
    • createDefaultNodeFactory

      public static NodeFactory createDefaultNodeFactory()
    • createDefaultFunctionTable

      public static FunctionTable createDefaultFunctionTable()
    • createDefaultVariableTable

      public static VariableTable createDefaultVariableTable(VariableFactory vf)
    • createDefaultOperatorTable

      public static OperatorTableI createDefaultOperatorTable()
    • createDefaultParser

      public static Parser createDefaultParser()
    • createDefaultEvaluator

      public static Evaluator createDefaultEvaluator()
    • createDefaultPrintVisitor

      public static PrintVisitor createDefaultPrintVisitor()