public class MathUtil
extends Object
Constructor and Description |
---|
MathUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
base2Log(long x) |
static long |
base2Pow(int x) |
static int |
difference(Integer value1,
Integer value2) |
static int |
factorial(int x) |
static double |
format(double x,
int max,
int min) |
static int[] |
generatePrimes(int max) |
static boolean |
isEven(int x) |
static boolean |
isOdd(int x) |
static double |
product(Double... values) |
static int |
product(Integer... values) |
static long |
product(Long... values) |
static int |
quotient(Integer value1,
Integer value2) |
static double |
sum(Double... values) |
static int |
sum(Integer... values) |
static long |
sum(Long... values) |
public static int base2Log(long x)
public static long base2Pow(int x)
public static int difference(Integer value1, Integer value2)
public static int factorial(int x)
public static double format(double x, int max, int min)
public static int[] generatePrimes(int max)
public static boolean isEven(int x)
public static boolean isOdd(int x)
public static double product(Double... values)
public static int product(Integer... values)
public static long product(Long... values)
public static int quotient(Integer value1, Integer value2)
public static double sum(Double... values)
public static int sum(Integer... values)
public static long sum(Long... values)