|
| |
com.kutsyy.util
Class MyMath
java.lang.Object
|
+--com.kutsyy.util.MyMath
- public final class MyMath
- extends Object
Insert the type's description here. Creation date: (10/11/2000 3:26:25 AM)
- Author:
- kutsyy
|
Method Summary |
static int |
factorial(int n)
factorial |
static double |
max(double[] x)
maximum of the vector |
static int |
max(int[] x)
maximum of the vector |
static double |
min(double[] x)
minimum of the vector |
static int |
min(int[] x)
minimum of the vector |
static double |
mod(double a,
double p)
mod of a%p |
static int |
mod(int a,
int p)
mod of a%p |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
MyMath
public MyMath()
mod
public static double mod(double a,
double p)
- mod of a%p
- Parameters:
a - p - - Returns:
- a%p
mod
public static int mod(int a,
int p)
- mod of a%p
- Parameters:
a - p - - Returns:
- a%p
factorial
public static final int factorial(int n)
- factorial
- Parameters:
n - n- Returns:
- n!
max
public static final int max(int[] x)
- maximum of the vector
- Parameters:
x - - Returns:
- max(x)
min
public static final int min(int[] x)
- minimum of the vector
- Parameters:
x - - Returns:
- min(x)
max
public static final double max(double[] x)
- maximum of the vector
- Parameters:
x - - Returns:
- max(x)
min
public static final double min(double[] x)
- minimum of the vector
- Parameters:
x - - Returns:
- min(x)
|