Static Member Summary
Static Public Members | ||
public static get |
E, Napier's constant. |
|
public static get |
0.5 |
|
public static get |
0.5 * PI. |
|
public static get |
i, j |
|
public static get |
log_e(10) |
|
public static get |
log_e(2) |
|
public static get |
log_10(e) |
|
public static get |
log_2(e) |
|
public static get |
|
|
public static get |
-1 |
|
public static get |
Negative Infinity. |
|
public static get |
Not a Number. |
|
public static get |
1 |
|
public static get |
PI. |
|
public static get |
Positive infinity. |
|
public static get |
QUARTER_PI: Complex: * 0.25 * PI. |
|
public static get |
sqrt(0.5) |
|
public static get |
sqrt(2) |
|
public static get |
10 |
|
public static get |
2 |
|
public static get |
2 * PI. |
|
public static get |
0 |
Static Method Summary
Static Public Methods | ||
public static |
create(number: KComplexInputData): Complex Create an entity object of this class. |
|
public static |
Create random values [0, 1) with uniform random numbers. |
|
public static |
Create random values with normal distribution. |
|
public static |
valueOf(number: KComplexInputData): Complex Convert number to Complex type. |
Constructor Summary
Public Constructor | ||
public |
constructor(number: KComplexInputData) Create a complex number. |
Member Summary
Public Members | ||
public get |
The argument of this complex number. |
|
public get |
booleanValue: boolean: * boolean value. |
|
public get |
doubleValue: number: * floating point. |
|
public get |
The imaginary part of this Comlex. |
|
public get |
integer value. |
|
public get |
norm. |
|
public get |
The real part of this Comlex. |
Private Members | ||
private |
The imaginary part of this Comlex. |
|
private |
The real part of this Comlex. |
Method Summary
Public Methods | ||
public |
Absolute value. |
|
public |
Arc cosine function. |
|
public |
Inverse hyperbolic cosine function. |
|
public |
Inverse cotangent function. |
|
public |
Inverse hyperbolic cotangent function. |
|
public |
Inverse cosecant function. |
|
public |
Inverse hyperbolic cosecant function. |
|
public |
add(number: KComplexInputData): Complex Add. |
|
public |
and(number: KComplexInputData): Complex Logical AND. |
|
public |
Reverse secant function. |
|
public |
Inverse hyperbolic secant function. |
|
public |
Arc sine function. |
|
public |
Inverse hyperbolic sine function. |
|
public |
Atan (arc tangent) function. |
|
public |
atan2(number: KComplexInputData): Complex Atan (arc tangent) function. |
|
public |
Inverse hyperbolic tangent function. |
|
public |
beta(y: KComplexInputData): Complex Beta function. |
|
public |
betacdf(a: KComplexInputData, b: KComplexInputData): Complex Cumulative distribution function (CDF) of beta distribution. |
|
public |
betainc(a: KComplexInputData, b: KComplexInputData, tail: string): Complex Incomplete beta function. |
|
public |
betainv(a: KComplexInputData, b: KComplexInputData): Complex Inverse function of cumulative distribution function (CDF) of beta distribution. |
|
public |
betapdf(a: KComplexInputData, b: KComplexInputData): Complex Probability density function (PDF) of beta distribution. |
|
public |
binocdf(n: KComplexInputData, p: KComplexInputData, tail: string): Complex Cumulative distribution function (CDF) of binomial distribution. |
|
public |
binoinv(n: KComplexInputData, p: KComplexInputData): Complex Inverse function of cumulative distribution function (CDF) of binomial distribution. |
|
public |
binopdf(n: KComplexInputData, p: KComplexInputData): Complex Probability density function (PDF) of binomial distribution. |
|
public |
cbrt(n: KComplexInputData): Complex Cube root. |
|
public |
Ceil. |
|
public |
Cumulative distribution function (CDF) of chi-square distribution. |
|
public |
Inverse function of cumulative distribution function (CDF) of chi-square distribution. |
|
public |
Probability density function (PDF) of chi-square distribution. |
|
public |
clip(min: KComplexInputData, max: KComplexInputData): Complex Clip number within range. |
|
public |
Deep copy. |
|
public |
compareTo(number: KComplexInputData, tolerance: KComplexInputData): number Compare values. |
|
public |
Complex conjugate. |
|
public |
Cosine function. |
|
public |
Hyperbolic cosine function. |
|
public |
Cotangent function. |
|
public |
Hyperbolic cotangent function. |
|
public |
Cosecant function. |
|
public |
Hyperbolic cosecant function. |
|
public |
div(number: KComplexInputData): Complex Divide. |
|
public |
divide(number: KComplexInputData): Complex Divide. |
|
public |
dot(number: KComplexInputData): Complex Inner product/Dot product. |
|
public |
equals(number: KComplexInputData, tolerance: KComplexInputData): boolean Equals. |
|
public |
equalsState(number: KComplexInputData): boolean Numeric type match. |
|
public |
Error function. |
|
public |
Complementary error function. |
|
public |
Inverse function of Complementary error function. |
|
public |
Inverse function of Error function. |
|
public |
Exponential function. |
|
public |
e^x - 1 |
|
public |
extgcd(number: KComplexInputData): Array<Complex> Extended Euclidean algorithm. |
|
public |
Factorization. |
|
public |
Factorial function, x!. |
|
public |
fcdf(d1: KComplexInputData, d2: KComplexInputData): Complex Cumulative distribution function (CDF) of F-distribution. |
|
public |
finv(d1: KComplexInputData, d2: KComplexInputData): Complex Inverse function of cumulative distribution function (CDF) of F-distribution. |
|
public |
To integer rounded down to the nearest. |
|
public |
Floor. |
|
public |
fpdf(d1: KComplexInputData, d2: KComplexInputData): Complex Probability density function (PDF) of F-distribution. |
|
public |
Fraction. |
|
public |
gamcdf(k: KComplexInputData, s: KComplexInputData): Complex Cumulative distribution function (CDF) of gamma distribution. |
|
public |
gaminv(k: KComplexInputData, s: KComplexInputData): Complex Inverse function of cumulative distribution function (CDF) of gamma distribution. |
|
public |
Gamma function. |
|
public |
gammainc(a: KComplexInputData, tail: string): Complex Incomplete gamma function. |
|
public |
Log-gamma function. |
|
public |
gampdf(k: KComplexInputData, s: KComplexInputData): Complex Probability density function (PDF) of the gamma distribution. |
|
public |
gcd(number: KComplexInputData): Complex Euclidean algorithm. |
|
public |
Return number of decimal places for real and imaginary parts. |
|
public |
Inverse number of this value. |
|
public |
isComplex(tolerance: KComplexInputData): boolean Returns true if the vallue is complex number (imaginary part is not 0). |
|
public |
isComplexInteger(tolerance: KComplexInputData): boolean Returns true if the vallue is complex integer (including normal integer). |
|
public |
Return true if the value is finite number. |
|
public |
this === Infinity or -Infinity |
|
public |
isInteger(tolerance: KComplexInputData): boolean Return true if the value is integer. |
|
public |
this === NaN |
|
public |
real(this) < 0 |
|
public |
this === -Infinity |
|
public |
real(this) >= 0 |
|
public |
isOne(tolerance: KComplexInputData): boolean this === 1 |
|
public |
Return true if this real part of the complex positive. |
|
public |
this === Infinity |
|
public |
Return true if the value is prime number. |
|
public |
isProbablePrime(certainty: KComplexInputData): boolean Return true if the value is prime number by Miller-Labin prime number determination method. |
|
public |
isReal(tolerance: KComplexInputData): boolean Return true if the value is real number. |
|
public |
isZero(tolerance: KComplexInputData): boolean this === 0 |
|
public |
lcm(number: KComplexInputData): Complex Least common multiple. |
|
public |
Logarithmic function. |
|
public |
log_10(x) |
|
public |
ln(1 + x) |
|
public |
log_2(x) |
|
public |
Logit function. |
|
public |
max(number: KComplexInputData): Complex Maximum number. |
|
public |
min(number: KComplexInputData): Complex Minimum number. |
|
public |
mod(number: KComplexInputData): Complex Modulo, positive remainder of division. |
|
public |
Modular multiplicative inverse. |
|
public |
modPow(exponent: KComplexInputData, m: KComplexInputData): Complex Modular exponentiation. |
|
public |
mul(number: KComplexInputData): Complex Multiply. |
|
public |
multiply(number: KComplexInputData): Complex Multiply. |
|
public |
Binomial coefficient, number of all combinations, nCk. |
|
public |
this * -1 |
|
public |
nextProbablePrime(certainty: KComplexInputData, search_max: KComplexInputData): Complex Next prime. |
|
public |
normcdf(u: KComplexInputData, s: KComplexInputData): Complex Cumulative distribution function (CDF) of normal distribution. |
|
public |
norminv(u: KComplexInputData, s: KComplexInputData): Complex Inverse function of cumulative distribution function (CDF) of normal distribution. |
|
public |
normpdf(u: KComplexInputData, s: KComplexInputData): Complex Probability density function (PDF) of normal distribution. |
|
public |
Logical Not. |
|
public |
or(number: KComplexInputData): Complex Logical OR. |
|
public |
poisscdf(lambda: KComplexInputData): Complex Cumulative distribution function (CDF) of Poisson distribution. |
|
public |
poissinv(lambda: KComplexInputData): Complex Inverse function of cumulative distribution function (CDF) of Poisson distribution. |
|
public |
poisspdf(lambda: KComplexInputData): Complex Probability density function (PDF) of Poisson distribution. |
|
public |
pow(number: KComplexInputData): Complex Power function. |
|
public |
rem(number: KComplexInputData): Complex Modulo, positive remainder of division. |
|
public |
remainder(number: KComplexInputData): Complex Remainder of division. |
|
public |
Rounding to the nearest integer. |
|
public |
Reciprocal square root. |
|
public |
Multiply a multiple of ten. |
|
public |
Secant function. |
|
public |
Hyperbolic secant function. |
|
public |
this << n
|
|
public |
The positive or negative sign of this number. |
|
public |
The positive or negative sign of this number. |
|
public |
Sine function. |
|
public |
Normalized sinc function. |
|
public |
Hyperbolic sine function. |
|
public |
Square root. |
|
public |
Square. |
|
public |
sub(number: KComplexInputData): Complex Subtract. |
|
public |
subtract(number: KComplexInputData): Complex Subtract. |
|
public |
Tangent function. |
|
public |
Hyperbolic tangent function. |
|
public |
tcdf(v: KComplexInputData): Complex Cumulative distribution function (CDF) of Student's t-distribution.
|
|
public |
tdist(v: KComplexInputData, tails: KComplexInputData): Complex Cumulative distribution function (CDF) of Student's t-distribution that can specify tail.
|
|
public |
tinv(v: KComplexInputData): Complex Inverse of cumulative distribution function (CDF) of Student's t-distribution.
|
|
public |
Inverse of cumulative distribution function (CDF) of Student's t-distribution in two-sided test.
|
|
public |
return BigDecimal. |
|
public |
return BigInteger. |
|
public |
return Complex. |
|
public |
return Fraction. |
|
public |
Convert to JSON. |
|
public |
return Matrix. |
|
public |
Convert to string. |
|
public |
tpdf(v: KComplexInputData): Complex Probability density function (PDF) of Student's t-distribution.
|
|
public |
To integer rounded down to the nearest. |
|
public |
xor(number: KComplexInputData): Complex Logical Exclusive-OR. |
Inherited Summary
From class KonpeitoInteger | ||
public static get |
-1 |
|
public static get |
Negative Infinity. |
|
public static get |
NaN: KonpeitoInteger: * Not a Number. |
|
public static get |
ONE: KonpeitoInteger: * 1 |
|
public static get |
Positive infinity. |
|
public static get |
TEN: KonpeitoInteger: * 10 |
|
public static get |
TWO: KonpeitoInteger: * 2 |
|
public static get |
ZERO: KonpeitoInteger: * 0 |
|
public static |
create(number: any): KonpeitoInteger Create an entity object of this class. |
|
public static |
valueOf(number: any): KonpeitoInteger Create number. |
|
public get |
booleanValue: boolean: * boolean value. |
|
public get |
doubleValue: number: * floating point. |
|
public get |
integer value. |
|
public |
Absolute value. |
|
public |
add(number: any): KonpeitoInteger Add. |
|
public |
and(number: any): KonpeitoInteger Logical AND. |
|
public |
Ceil. |
|
public |
Deep copy. |
|
public |
Compare values. |
|
public |
div(number: any): KonpeitoInteger Divide. |
|
public |
divide(number: any): KonpeitoInteger Divide. |
|
public |
Equals. |
|
public |
extgcd(number: any): KonpeitoInteger[] Extended Euclidean algorithm. |
|
public |
factor(): KonpeitoInteger[] Factorization. |
|
public |
Factorial function, x!. |
|
public |
To integer rounded down to the nearest. |
|
public |
Floor. |
|
public |
Fraction. |
|
public |
gcd(number: any): KonpeitoInteger Euclidean algorithm. |
|
public |
Inverse number of this value. |
|
public |
Return true if the value is finite number. |
|
public |
this === Infinity or -Infinity |
|
public |
this === NaN |
|
public |
this < 0 |
|
public |
this === -Infinity |
|
public |
this >= 0 |
|
public |
this === 1 |
|
public |
this > 0 |
|
public |
this === Infinity |
|
public |
Return true if the value is prime number. |
|
public |
isProbablePrime(certainty: any): boolean Return true if the value is prime number by Miller-Labin prime number determination method. |
|
public |
this === 0 |
|
public |
lcm(number: any): KonpeitoInteger Least common multiple. |
|
public |
mod(number: any): KonpeitoInteger Modulo, positive rem of division. |
|
public |
modInverse(m: any): KonpeitoInteger Modular multiplicative inverse. |
|
public |
modPow(exponent: any, m: any): KonpeitoInteger Modular exponentiation. |
|
public |
mul(number: any): KonpeitoInteger Multiply. |
|
public |
multiply(number: any): KonpeitoInteger Multiply. |
|
public |
this * -1 |
|
public |
nextProbablePrime(certainty: any, search_max: any): KonpeitoInteger Next prime. |
|
public |
Logical Not. |
|
public |
or(number: any): KonpeitoInteger Logical OR. |
|
public |
pow(exponent: any): KonpeitoInteger Power function. |
|
public |
rem(number: any): KonpeitoInteger Remainder of division. |
|
public |
remainder(number: any): KonpeitoInteger Remainder of division. |
|
public |
Rounding to the nearest integer. |
|
public |
scaleByPowerOfTen(n: any): KonpeitoInteger Multiply a multiple of ten. |
|
public |
shift(n: any): KonpeitoInteger this << n |
|
public |
sign(): any The positive or negative sign of this number. |
|
public |
signum(): any The positive or negative sign of this number. |
|
public |
Square. |
|
public |
sub(number: any): KonpeitoInteger Subtract. |
|
public |
subtract(number: any): KonpeitoInteger Subtract. |
|
public |
return BigDecimal. |
|
public |
return BigInteger. |
|
public |
return Complex. |
|
public |
return Fraction. |
|
public |
Convert to JSON. |
|
public |
return Matrix. |
|
public |
Convert to string. |
|
public |
xor(number: any): KonpeitoInteger Logical Exclusive-OR. |
From class KonpeitoFloat | ||
public static get |
E: KonpeitoFloat: * E, Napier's constant. |
|
public static get |
HALF: KonpeitoFloat: * 0.5 |
|
public static get |
HALF_PI: KonpeitoFloat: * 0.5 * PI. |
|
public static get |
LN10: KonpeitoFloat: * log_e(10) |
|
public static get |
LN2: KonpeitoFloat: * log_e(2) |
|
public static get |
LOG10E: KonpeitoFloat: * log_10(e) |
|
public static get |
LOG2E: KonpeitoFloat: * log_2(e) |
|
public static get |
PI: KonpeitoFloat: * PI. |
|
public static get |
0.25 * PI. |
|
public static get |
SQRT1_2: KonpeitoFloat: * sqrt(0.5) |
|
public static get |
SQRT2: KonpeitoFloat: * sqrt(2) |
|
public static get |
TWO_PI: KonpeitoFloat: * 2 * PI. |
|
public |
Arc cosine function. |
|
public |
Inverse hyperbolic cosine function. |
|
public |
Inverse cotangent function. |
|
public |
Inverse hyperbolic cotangent function. |
|
public |
Inverse cosecant function. |
|
public |
Inverse hyperbolic cosecant function. |
|
public |
Reverse secant function. |
|
public |
Inverse hyperbolic secant function. |
|
public |
Arc sine function. |
|
public |
Inverse hyperbolic sine function. |
|
public |
Atan (arc tangent) function. |
|
public |
atan2(number: any): KonpeitoFloat Atan (arc tangent) function. |
|
public |
Inverse hyperbolic tangent function. |
|
public |
Cube root. |
|
public |
cos(): KonpeitoFloat Cosine function. |
|
public |
Hyperbolic cosine function. |
|
public |
cot(): KonpeitoFloat Cotangent function. |
|
public |
Hyperbolic cotangent function. |
|
public |
csc(): KonpeitoFloat Cosecant function. |
|
public |
Hyperbolic cosecant function. |
|
public |
exp(): KonpeitoFloat Exponential function. |
|
public |
e^x - 1 |
|
public |
log(): KonpeitoFloat Logarithmic function. |
|
public |
log_10(x) |
|
public |
ln(1 + x) |
|
public |
log_2(x) |
|
public |
Logit function. |
|
public |
Reciprocal square root. |
|
public |
sec(): KonpeitoFloat Secant function. |
|
public |
Hyperbolic secant function. |
|
public |
sin(): KonpeitoFloat Sine function. |
|
public |
Normalized sinc function. |
|
public |
Hyperbolic sine function. |
|
public |
Square root. |
|
public |
tan(): KonpeitoFloat Tangent function. |
|
public |
Hyperbolic tangent function. |
Static Public Members
public static get NEGATIVE_INFINITY: Complex: * source
Negative Infinity.
Override:
KonpeitoInteger#NEGATIVE_INFINITYpublic static get POSITIVE_INFINITY: Complex: * source
Positive infinity.
Override:
KonpeitoInteger#POSITIVE_INFINITYStatic Public Methods
public static create(number: KComplexInputData): Complex source
Create an entity object of this class.
Override:
KonpeitoInteger#createParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public static rand(random: Random): Complex source
Create random values [0, 1) with uniform random numbers.
Params:
Name | Type | Attribute | Description |
random | Random |
|
Class for creating random numbers. |
public static randn(random: Random): Complex source
Create random values with normal distribution.
Params:
Name | Type | Attribute | Description |
random | Random |
|
Class for creating random numbers. |
public static valueOf(number: KComplexInputData): Complex source
Convert number to Complex type.
Override:
KonpeitoInteger#valueOfParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
Public Constructors
public constructor(number: KComplexInputData) source
Create a complex number.
Initialization can be performed as follows.
- 1200, "1200", "12e2", "1.2e3"
- "3 + 4i", "4j + 3", [3, 4].
Override:
KonpeitoFloat#constructorParams:
Name | Type | Attribute | Description |
number | KComplexInputData | Complex number. See how to use the function. |
Public Members
Private Members
Public Methods
public add(number: KComplexInputData): Complex source
Add.
Override:
KonpeitoInteger#addParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public and(number: KComplexInputData): Complex source
Logical AND.
- Calculated as an integer.
Override:
KonpeitoInteger#andParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public atan(): Complex source
Atan (arc tangent) function.
- Return the values of [-PI/2, PI/2].
Override:
KonpeitoFloat#atanpublic atan2(number: KComplexInputData): Complex source
Atan (arc tangent) function. Return the values of [-PI, PI] . Supports only real numbers.
Override:
KonpeitoFloat#atan2Params:
Name | Type | Attribute | Description |
number | KComplexInputData |
|
X |
public beta(y: KComplexInputData): Complex source
Beta function.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
y | KComplexInputData |
public betacdf(a: KComplexInputData, b: KComplexInputData): Complex source
Cumulative distribution function (CDF) of beta distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
a | KComplexInputData | ||
b | KComplexInputData |
public betainc(a: KComplexInputData, b: KComplexInputData, tail: string): Complex source
Incomplete beta function.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
a | KComplexInputData | ||
b | KComplexInputData | ||
tail | string |
|
lower (default) , "upper" |
public betainv(a: KComplexInputData, b: KComplexInputData): Complex source
Inverse function of cumulative distribution function (CDF) of beta distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
a | KComplexInputData | ||
b | KComplexInputData |
public betapdf(a: KComplexInputData, b: KComplexInputData): Complex source
Probability density function (PDF) of beta distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
a | KComplexInputData | ||
b | KComplexInputData |
public binocdf(n: KComplexInputData, p: KComplexInputData, tail: string): Complex source
Cumulative distribution function (CDF) of binomial distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
n | KComplexInputData | ||
p | KComplexInputData | ||
tail | string |
|
lower (default) , "upper" |
public binoinv(n: KComplexInputData, p: KComplexInputData): Complex source
Inverse function of cumulative distribution function (CDF) of binomial distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
n | KComplexInputData | ||
p | KComplexInputData |
public binopdf(n: KComplexInputData, p: KComplexInputData): Complex source
Probability density function (PDF) of binomial distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
n | KComplexInputData | ||
p | KComplexInputData |
public cbrt(n: KComplexInputData): Complex source
Cube root.
Override:
KonpeitoFloat#cbrtParams:
Name | Type | Attribute | Description |
n | KComplexInputData |
|
Value type(0,1,2) |
public chi2cdf(k: KComplexInputData): Complex source
Cumulative distribution function (CDF) of chi-square distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
k | KComplexInputData | The degrees of freedom. (DF) |
public chi2inv(k: KComplexInputData): Complex source
Inverse function of cumulative distribution function (CDF) of chi-square distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
k | KComplexInputData | The degrees of freedom. (DF) |
public chi2pdf(k: KComplexInputData): Complex source
Probability density function (PDF) of chi-square distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
k | KComplexInputData | The degrees of freedom. (DF) |
public clip(min: KComplexInputData, max: KComplexInputData): Complex source
Clip number within range.
Params:
Name | Type | Attribute | Description |
min | KComplexInputData | ||
max | KComplexInputData |
public compareTo(number: KComplexInputData, tolerance: KComplexInputData): number source
Compare values.
Override:
KonpeitoInteger#compareToParams:
Name | Type | Attribute | Description |
number | KComplexInputData | ||
tolerance | KComplexInputData |
|
Calculation tolerance of calculation. |
public div(number: KComplexInputData): Complex source
Divide.
Override:
KonpeitoInteger#divParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public divide(number: KComplexInputData): Complex source
Divide.
Override:
KonpeitoInteger#divideParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public dot(number: KComplexInputData): Complex source
Inner product/Dot product.
Params:
Name | Type | Attribute | Description |
number | KComplexInputData |
public equals(number: KComplexInputData, tolerance: KComplexInputData): boolean source
Equals.
Override:
KonpeitoInteger#equalsParams:
Name | Type | Attribute | Description |
number | KComplexInputData | ||
tolerance | KComplexInputData |
|
Calculation tolerance of calculation. |
public equalsState(number: KComplexInputData): boolean source
Numeric type match.
Params:
Name | Type | Attribute | Description |
number | KComplexInputData |
public erfcinv(): Complex source
Inverse function of Complementary error function.
- Calculate from real values.
public extgcd(number: KComplexInputData): Array<Complex> source
Extended Euclidean algorithm.
- Calculated as an integer.
Override:
KonpeitoInteger#extgcdParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public factor(): Complex[] source
Factorization.
- Calculated as an integer.
- Calculate up to
9007199254740991
.
Override:
KonpeitoInteger#factorpublic factorial(): Complex source
Factorial function, x!.
- Calculate from real values.
Override:
KonpeitoInteger#factorialpublic fcdf(d1: KComplexInputData, d2: KComplexInputData): Complex source
Cumulative distribution function (CDF) of F-distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
d1 | KComplexInputData | The degree of freedom of the molecules. |
|
d2 | KComplexInputData | The degree of freedom of the denominator |
public finv(d1: KComplexInputData, d2: KComplexInputData): Complex source
Inverse function of cumulative distribution function (CDF) of F-distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
d1 | KComplexInputData | The degree of freedom of the molecules. |
|
d2 | KComplexInputData | The degree of freedom of the denominator |
public fpdf(d1: KComplexInputData, d2: KComplexInputData): Complex source
Probability density function (PDF) of F-distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
d1 | KComplexInputData | The degree of freedom of the molecules. |
|
d2 | KComplexInputData | The degree of freedom of the denominator |
public gamcdf(k: KComplexInputData, s: KComplexInputData): Complex source
Cumulative distribution function (CDF) of gamma distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
k | KComplexInputData | Shape parameter. |
|
s | KComplexInputData | Scale parameter. |
public gaminv(k: KComplexInputData, s: KComplexInputData): Complex source
Inverse function of cumulative distribution function (CDF) of gamma distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
k | KComplexInputData | Shape parameter. |
|
s | KComplexInputData | Scale parameter. |
public gammainc(a: KComplexInputData, tail: string): Complex source
Incomplete gamma function.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
a | KComplexInputData | ||
tail | string |
|
lower (default) , "upper" |
public gampdf(k: KComplexInputData, s: KComplexInputData): Complex source
Probability density function (PDF) of the gamma distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
k | KComplexInputData | Shape parameter. |
|
s | KComplexInputData | Scale parameter. |
public gcd(number: KComplexInputData): Complex source
Euclidean algorithm.
- Calculated as an integer.
Override:
KonpeitoInteger#gcdParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public getDecimalPosition(): number source
Return number of decimal places for real and imaginary parts.
- Used to make a string.
public isComplex(tolerance: KComplexInputData): boolean source
Returns true if the vallue is complex number (imaginary part is not 0).
Params:
Name | Type | Attribute | Description |
tolerance | KComplexInputData |
|
Calculation tolerance of calculation. |
public isComplexInteger(tolerance: KComplexInputData): boolean source
Returns true if the vallue is complex integer (including normal integer).
Params:
Name | Type | Attribute | Description |
tolerance | KComplexInputData |
|
Calculation tolerance of calculation. |
public isFinite(): boolean source
Return true if the value is finite number.
Override:
KonpeitoInteger#isFinitepublic isInfinite(): boolean source
this === Infinity or -Infinity
Override:
KonpeitoInteger#isInfinitepublic isInteger(tolerance: KComplexInputData): boolean source
Return true if the value is integer.
Params:
Name | Type | Attribute | Description |
tolerance | KComplexInputData |
|
Calculation tolerance of calculation. |
public isNegativeInfinity(): boolean source
this === -Infinity
Override:
KonpeitoInteger#isNegativeInfinitypublic isOne(tolerance: KComplexInputData): boolean source
this === 1
Override:
KonpeitoInteger#isOneParams:
Name | Type | Attribute | Description |
tolerance | KComplexInputData |
|
Calculation tolerance of calculation. |
public isPositive(): boolean source
Return true if this real part of the complex positive.
Override:
KonpeitoInteger#isPositivepublic isPositiveInfinity(): boolean source
this === Infinity
Override:
KonpeitoInteger#isPositiveInfinitypublic isPrime(): boolean source
Return true if the value is prime number.
- Calculated as an integer.
- Calculate up to
9007199254740991
.
Override:
KonpeitoInteger#isPrimepublic isProbablePrime(certainty: KComplexInputData): boolean source
Return true if the value is prime number by Miller-Labin prime number determination method.
Attention : it takes a very long time to process.
- Calculated as an integer.
Override:
KonpeitoInteger#isProbablePrimeParams:
Name | Type | Attribute | Description |
certainty | KComplexInputData |
|
Repeat count (prime precision). |
public isReal(tolerance: KComplexInputData): boolean source
Return true if the value is real number.
Params:
Name | Type | Attribute | Description |
tolerance | KComplexInputData |
|
Calculation tolerance of calculation. |
public isZero(tolerance: KComplexInputData): boolean source
this === 0
Override:
KonpeitoInteger#isZeroParams:
Name | Type | Attribute | Description |
tolerance | KComplexInputData |
|
Calculation tolerance of calculation. |
public lcm(number: KComplexInputData): Complex source
Least common multiple.
- Calculated as an integer.
Override:
KonpeitoInteger#lcmParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public max(number: KComplexInputData): Complex source
Maximum number.
Params:
Name | Type | Attribute | Description |
number | KComplexInputData |
public min(number: KComplexInputData): Complex source
Minimum number.
Params:
Name | Type | Attribute | Description |
number | KComplexInputData |
public mod(number: KComplexInputData): Complex source
Modulo, positive remainder of division.
- Result has same sign as the Divisor.
Override:
KonpeitoInteger#modParams:
Name | Type | Attribute | Description |
number | KComplexInputData | Divided value (real number only). |
public modInverse(m: KComplexInputData): Complex source
Modular multiplicative inverse.
- Calculated as an integer.
Override:
KonpeitoInteger#modInverseParams:
Name | Type | Attribute | Description |
m | KComplexInputData |
public modPow(exponent: KComplexInputData, m: KComplexInputData): Complex source
Modular exponentiation.
- Calculated as an integer.
Override:
KonpeitoInteger#modPowParams:
Name | Type | Attribute | Description |
exponent | KComplexInputData | ||
m | KComplexInputData |
public mul(number: KComplexInputData): Complex source
Multiply.
Override:
KonpeitoInteger#mulParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public multiply(number: KComplexInputData): Complex source
Multiply.
Override:
KonpeitoInteger#multiplyParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public nchoosek(k: KComplexInputData): Complex source
Binomial coefficient, number of all combinations, nCk.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
k | KComplexInputData |
public nextProbablePrime(certainty: KComplexInputData, search_max: KComplexInputData): Complex source
Next prime.
Override:
KonpeitoInteger#nextProbablePrimeParams:
Name | Type | Attribute | Description |
certainty | KComplexInputData |
|
Repeat count (prime precision). |
search_max | KComplexInputData |
|
Search range of next prime. |
public normcdf(u: KComplexInputData, s: KComplexInputData): Complex source
Cumulative distribution function (CDF) of normal distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
u | KComplexInputData |
|
Average value. |
s | KComplexInputData |
|
Variance value. |
public norminv(u: KComplexInputData, s: KComplexInputData): Complex source
Inverse function of cumulative distribution function (CDF) of normal distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
u | KComplexInputData |
|
Average value. |
s | KComplexInputData |
|
Variance value. |
public normpdf(u: KComplexInputData, s: KComplexInputData): Complex source
Probability density function (PDF) of normal distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
u | KComplexInputData |
|
Average value. |
s | KComplexInputData |
|
Variance value. |
public not(): Complex source
Logical Not. (mutable)
- Calculated as an integer.
Override:
KonpeitoInteger#notpublic or(number: KComplexInputData): Complex source
Logical OR.
- Calculated as an integer.
Override:
KonpeitoInteger#orParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public poisscdf(lambda: KComplexInputData): Complex source
Cumulative distribution function (CDF) of Poisson distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
lambda | KComplexInputData |
public poissinv(lambda: KComplexInputData): Complex source
Inverse function of cumulative distribution function (CDF) of Poisson distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
lambda | KComplexInputData |
public poisspdf(lambda: KComplexInputData): Complex source
Probability density function (PDF) of Poisson distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
lambda | KComplexInputData |
public pow(number: KComplexInputData): Complex source
Power function.
Override:
KonpeitoInteger#powParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public rem(number: KComplexInputData): Complex source
Modulo, positive remainder of division.
- Result has same sign as the Dividend.
Override:
KonpeitoInteger#remParams:
Name | Type | Attribute | Description |
number | KComplexInputData | Divided value (real number only). |
public remainder(number: KComplexInputData): Complex source
Remainder of division.
- Result has same sign as the Dividend.
Override:
KonpeitoInteger#remainderParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public scaleByPowerOfTen(n: KComplexInputData): Complex source
Multiply a multiple of ten.
Override:
KonpeitoInteger#scaleByPowerOfTenParams:
Name | Type | Attribute | Description |
n | KComplexInputData |
public shift(n: KComplexInputData): Complex source
this << n
- Calculated as an integer.
Override:
KonpeitoInteger#shiftParams:
Name | Type | Attribute | Description |
n | KComplexInputData |
public sign(): Complex source
The positive or negative sign of this number.
- +1 if positive, -1 if negative, 0 if 0.
Override:
KonpeitoInteger#signpublic signum(): Complex source
The positive or negative sign of this number.
- +1 if positive, -1 if negative, 0 if 0.
Override:
KonpeitoInteger#signumpublic sub(number: KComplexInputData): Complex source
Subtract.
Override:
KonpeitoInteger#subParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public subtract(number: KComplexInputData): Complex source
Subtract.
Override:
KonpeitoInteger#subtractParams:
Name | Type | Attribute | Description |
number | KComplexInputData |
public tcdf(v: KComplexInputData): Complex source
Cumulative distribution function (CDF) of Student's t-distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
v | KComplexInputData | The degrees of freedom. (DF) |
public tdist(v: KComplexInputData, tails: KComplexInputData): Complex source
Cumulative distribution function (CDF) of Student's t-distribution that can specify tail.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
v | KComplexInputData | The degrees of freedom. (DF) |
|
tails | KComplexInputData | Tail. (1 = the one-tailed distribution, 2 = the two-tailed distribution.) |
public tinv(v: KComplexInputData): Complex source
Inverse of cumulative distribution function (CDF) of Student's t-distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
v | KComplexInputData | The degrees of freedom. (DF) |
public tinv2(v: KComplexInputData): Complex source
Inverse of cumulative distribution function (CDF) of Student's t-distribution in two-sided test.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
v | KComplexInputData | The degrees of freedom. (DF) |
public toBigDecimal(mc: MathContext): BigDecimal source
return BigDecimal.
Override:
KonpeitoInteger#toBigDecimalParams:
Name | Type | Attribute | Description |
mc | MathContext |
|
MathContext setting after calculation. |
public tpdf(v: KComplexInputData): Complex source
Probability density function (PDF) of Student's t-distribution.
- Calculate from real values.
Params:
Name | Type | Attribute | Description |
v | KComplexInputData | The degrees of freedom. (DF) |
public xor(number: KComplexInputData): Complex source
Logical Exclusive-OR.
- Calculated as an integer.
Override:
KonpeitoInteger#xorParams:
Name | Type | Attribute | Description |
number | KComplexInputData |