public final class NumberTheory extends Object
| Constructor and Description |
|---|
NumberTheory() |
| Modifier and Type | Method and Description |
|---|---|
static double |
gcd(double... numbers)
Greatest common divisor (GCD)
|
static double |
gcd(double a,
double b)
Greatest common divisor (GCD)
|
static double |
gcd(int... numbers)
Greatest common divisor (GCD)
|
static double |
gcd(int a,
int b)
Greatest common divisor (GCD)
|
static double |
lcm(double... numbers)
Latest common multiply (LCM)
|
static double |
lcm(double a,
double b)
Latest common multiply (LCM)
|
static double |
lcm(int... numbers)
Latest common multiply (LCM)
|
static double |
lcm(int a,
int b)
Latest common multiply (LCM)
|
static double |
max(double... numbers)
Maximum function.
|
static double |
max(double a,
double b)
Maximum function.
|
static double |
max(Expression f,
Argument index,
double from,
double to,
double delta)
Maximum value - iterative operator.
|
static double |
min(double... numbers)
Minimum function.
|
static double |
min(double a,
double b)
Minimum function.
|
static double |
min(Expression f,
Argument index,
double from,
double to,
double delta)
Minimum value - iterative operator.
|
static double |
piProduct(Expression f,
Argument index,
double from,
double to,
double delta)
Product operator
|
static double |
primeCount(double n)
Prime counting function
|
static long |
primeCount(long n)
Prime counting function
|
static double |
primeTest(double n)
Prime test
|
static boolean |
primeTest(long n)
Prime test
|
static double |
prod(double... numbers)
Numbers multiplication.
|
static double |
sigmaSummation(Expression f,
Argument index,
double from,
double to,
double delta)
Summation operator (SIGMA FROM i = a, to b, f(i) by delta
|
static double |
sum(double... numbers)
Adding numbers.
|
public static final double min(double a,
double b)
a - the a function parameterb - the b function parameterpublic static final double min(double... numbers)
numbers - the a function parameterpublic static final double max(double a,
double b)
a - the a function parameterb - the b function parameterpublic static final double max(double... numbers)
numbers - the a function parameterpublic static final double gcd(int a,
int b)
a - the a function parameterb - the b function parameterpublic static final double gcd(double a,
double b)
a - the a function parameterb - the b function parameterpublic static final double gcd(int... numbers)
numbers - the numberspublic static final double gcd(double... numbers)
numbers - the numberspublic static final double lcm(int a,
int b)
a - the a function parameterb - the b function parameterpublic static final double lcm(double a,
double b)
a - the a function parameterb - the b function parameterpublic static final double lcm(int... numbers)
numbers - the numberspublic static final double lcm(double... numbers)
numbers - the numberspublic static final double sum(double... numbers)
numbers - the numberspublic static final double prod(double... numbers)
numbers - the numberspublic static final boolean primeTest(long n)
n - The number to be tested.public static final double primeTest(double n)
n - The number to be tested.public static final long primeCount(long n)
n - numberpublic static final double primeCount(double n)
n - numberpublic static final double sigmaSummation(Expression f, Argument index, double from, double to, double delta)
f - the expressionindex - the name of index argumentfrom - FROM index = formto - TO index = todelta - BY deltapublic static final double piProduct(Expression f, Argument index, double from, double to, double delta)
f - the expressionindex - the name of index argumentfrom - FROM index = formto - TO index = todelta - BY deltaExpression,
Argumentpublic static final double min(Expression f, Argument index, double from, double to, double delta)
f - the expressionindex - the name of index argumentfrom - FROM index = formto - TO index = todelta - BY deltaExpression,
Argumentpublic static final double max(Expression f, Argument index, double from, double to, double delta)
f - the expressionindex - the name of index argumentfrom - FROM index = formto - TO index = todelta - BY deltaExpression,
ArgumentCopyright © 2017. All rights reserved.