javanpst.utils
Class Operations
- java.lang.Object
-
- javanpst.utils.Operations
-
public class Operations extends java.lang.ObjectA class with some useful mathematical functions. BigInteger class supports some of the operations performed here
-
-
Constructor Summary
Constructors Constructor and Description Operations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublecombinatorial(int m, int n)Computes the binomial coefficient (m over n)static doublefactorial(int n)Computes the factorial of a given integer
-
-
-
Method Detail
-
factorial
public static double factorial(int n)
Computes the factorial of a given integer- Parameters:
n- integer value- Returns:
- Factorial of n
-
combinatorial
public static double combinatorial(int m, int n)Computes the binomial coefficient (m over n)- Parameters:
m- m valuen- n value- Returns:
- binomial coefficient
-
-
DMelt 3.0 © DataMelt by jWork.ORG