Class Factorial

    • Constructor Detail

      • Factorial

        public Factorial()
    • Method Detail

      • eval

        public java.lang.Object eval​(java.lang.Object arg)
                              throws EvaluationException
        Evaluates the factorial function
        Specified by:
        eval in class UnaryFunction
        Parameters:
        arg - number to find factorial of
        Returns:
        the factorial as a Long integer
        Throws:
        EvaluationException - if argument is greater than 20 causing overflow in result