Interface DiffRulesI

    • Method Detail

      • differentiate

        Node differentiate​(ASTFunNode node,
                           java.lang.String var,
                           Node[] children,
                           Node[] dchildren)
                    throws ParseException,
                           JepException
        Returns the top node of of the derivative of this function wrt to variable var.
        Parameters:
        var - The name of variable to differentiate wrt to.
        children - the arguments of the function
        dchildren - the derivatives of each argument of the function.
        Returns:
        top node of and expression tree for the derivative.
        Throws:
        ParseException - if there is some problem in compiling the derivative.
        JepException
      • toString

        java.lang.String toString()
        Returns a string representation of the rule.
        Overrides:
        toString in class java.lang.Object
      • getName

        java.lang.String getName()
        Returns the name of the function. Used as index in hashtable and as way of linking with standard Jep functions. You probably want to specify the in the constructors.