Documentation of 'org.matheclipse.core.eval.interfaces.AbstractFunctionEvaluator' Java class
AbstractFunctionEvaluator
org.matheclipse.core.eval.interfaces

Class AbstractFunctionEvaluator

    • Constructor Detail

      • AbstractFunctionEvaluator

        public AbstractFunctionEvaluator()
    • Method Detail

      • numericEval

        public IExpr numericEval(IAST ast)
        Numeric evaluation of a function. ast.get(0) contains the head (i.e. the function symbol) of this abstract syntax tree (AST). ast.get(1) to ast.get(n) contains the first to n-th argument of the function.
        If necessary use the methods from the Validate class to check the number or types of arguments in the evaluate method.
        Specified by:
        numericEval in interface IFunctionEvaluator
        Parameters:
        ast - the abstract syntax tree (AST) which should be evaluated
        Returns:
        the evaluated object or null, if evaluation isn't possible
        See Also:
        Validate
      • getRuleAST

        public IAST getRuleAST()
        Get the predefined rules for this function symbol. If no rules are available return null.
        Returns:
      • setUp

        public void setUp(ISymbol symbol)
                   throws SyntaxError
        Evaluate built-in rules and define Attributes for a function.
        Specified by:
        setUp in interface IEvaluator
        Parameters:
        symbol - the symbol which should be set up
        Throws:
        SyntaxError
      • evaluate

        public abstract IExpr evaluate(IAST ast)
        Symbolic evaluation of a function. ast.get(0) contains the head (i.e. the function symbol) of this abstract syntax tree (AST). ast.get(1) to ast.get(n) contains the first to n-th argument of the function.
        If necessary use the methods from the Validate class to check the number or types of arguments in the evaluate method.
        Note: if the symbolic evaluation isn't possible or no result is found the evaluate method returns with a null value without throwing an exception!
        Specified by:
        evaluate in interface IFunctionEvaluator
        Parameters:
        ast - the abstract syntax tree (AST) which should be evaluated
        Returns:
        the evaluated object or null, if evaluation isn't possible
        See Also:
        Validate
      • createRuleFromMethod

        public void createRuleFromMethod(ISymbol symbol,
                                         java.lang.String patternString,
                                         java.lang.String methodName)
        Create a rule which invokes the method name in this class instance.
        Parameters:
        symbol -
        patternString -
        methodName -
      • isNegativeExpression

        public static boolean isNegativeExpression(IExpr expr)
        Check if the expression is canonical negative.
        Returns:
        true if the first argument is canonical negative
      • getPureImaginaryPart

        public static IExpr getPureImaginaryPart(IExpr expr)
        Check if expr is a pure imaginary number without a real part.
        Parameters:
        expr -
        Returns:
        null, if expr is not prue imaginary number.
      • getPeriodicParts

        public static IExpr[] getPeriodicParts(IExpr expr)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.