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