Class Factorial
- java.lang.Object
-
- org.apache.commons.numbers.combinatorics.Factorial
-
-
Method Detail
-
value
public static long value(int n)
Computes the factorial ofn.- Parameters:
n- Argument.- Returns:
n!- Throws:
IllegalArgumentException- ifn < 0.IllegalArgumentException- ifn > 20(the factorial value is too large to fit in along).
-
-