Package org.nevec.rjm
Class Factorial
- java.lang.Object
-
- org.nevec.rjm.Factorial
-
public class Factorial extends java.lang.ObjectFactorials.- Since:
- 2006-06-25, 2012-02-15 Storage of the values based on Ifactor, not BigInteger.
- Author:
- Richard J. Mathar
-
-
Constructor Summary
Constructors Constructor Description Factorial()ctor().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigIntegerat(int n)Compute the factorial of the non-negative integer.IfactortoIfactor(int n)Compute the factorial of the non-negative integer.
-
-
-
Method Detail
-
at
public java.math.BigInteger at(int n)
Compute the factorial of the non-negative integer.- Parameters:
n- the argument to the factorial, non-negative.- Returns:
- the factorial of n.
-
toIfactor
public Ifactor toIfactor(int n)
Compute the factorial of the non-negative integer.- Parameters:
n- the argument to the factorial, non-negative.- Returns:
- the factorial of n.
-
-