public final class Numeric
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static long |
Arrangements(int n,
int count)
Calculates the number of possible combinations when n objects
are taken count at a time, and then, expands each combination
into all of its possible permutations.
|
static long |
Combinations(int n,
int count)
Calculates the number of possible combinations when n objects
are taken count at a time.
|
static long |
Factorial(int n)
Calculates the factorial of a specified number.
|
static int |
Log2(int n)
Finds the binary logarithm of a specified number.
|
static int |
Log2(long n)
Finds the binary logarithm of a specified number.
|
public static int Log2(int n)
n - A number whose binary logarithm is to be found.public static int Log2(long n)
n - A number whose binary logarithm is to be found.public static long Factorial(int n)
n - The number whose factorial is to be calculated.public static long Arrangements(int n,
int count)
n - The number of objects to be arranged.count - The number of objects to be taken at one time.public static long Combinations(int n,
int count)
n - The number of objects to be combined.count - The number of objects to be taken at one time.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.