public class Factorial extends Object
Constructor and Description |
---|
Factorial() |
Modifier and Type | Method and Description |
---|---|
static BigInteger |
fact(BigInteger n)
Factorial
|
static double |
fact(double n)
Factorial on doubles; avoids overflow problems present when using integers.
|
static int |
fact(int n)
Factorial
|
static long |
fact(long n)
Factorial
|
public static long fact(long n)
public static BigInteger fact(BigInteger n)
public static double fact(double n)
n
- arg on which to compute factorialdouble
approximation to) factorial of largest positive integer <= (n_ + epsilon)public static int fact(int n)