Class FactN

    • Constructor Detail

      • FactN

        public FactN()
    • Method Detail

      • call

        public Object call​(Object[] args)
        Description copied from class: PureFunction
        Computes the value of the function on the given arguments
        Specified by:
        call in class PureFunction
        Parameters:
        args - the values of the arguments
        Returns:
        the return value of the function
      • factorial

        public static long factorial​(long i,
                                     long step)
        Calculates the factorial of an integer, i, for a decreasing step of n. e.g. A double factorial would have a step of 2. Returns 1 for zero and negative integers.
      • getDescription

        public String getDescription()
      • getParams

        public String getParams()
      • getReturns

        public String getReturns()