KonpeitoFloat
Extends:
Direct Subclass:
Base class for numbers (immutable).
Static Member Summary
Static Public Members | ||
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. |
Constructor Summary
Public Constructor | ||
public |
constructor(number: any) Create an number. |
Method Summary
Public Methods | ||
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. |
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. |
Static Public Members
Public Constructors
public constructor(number: any) source
Create an number.
Override:
KonpeitoInteger#constructorParams:
Name | Type | Attribute | Description |
number | any |
|
Numeric data. See how to use the function. |
Public Methods
public atan(): KonpeitoFloat source
Atan (arc tangent) function.
- Return the values of [-PI/2, PI/2].
public atan2(number: any): KonpeitoFloat source
Atan (arc tangent) function. Return the values of [-PI, PI] . Supports only real numbers.
Params:
Name | Type | Attribute | Description |
number | any |
|
X |