Home Reference Source
public class | source

KonpeitoFloat

Extends:

KonpeitoInteger → KonpeitoFloat

Direct Subclass:

BigDecimal, Complex, Matrix

Base class for numbers (immutable).

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

log_e(10)

public static get

log_e(2)

public static get

log_10(e)

public static get

log_2(e)

public static get

PI.

public static get

0.25 * PI.

public static get

sqrt(0.5)

public static get

sqrt(2)

public static get

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

Cosine function.

public

Hyperbolic cosine function.

public

Cotangent function.

public

Hyperbolic cotangent function.

public

Cosecant function.

public

Hyperbolic cosecant function.

public

Exponential function.

public

e^x - 1

public

Logarithmic function.

public

log_10(x)

public

ln(1 + x)

public

log_2(x)

public

Logit function.

public

Reciprocal square root.

public

Secant function.

public

Hyperbolic secant function.

public

Sine function.

public

Normalized sinc function.

public

Hyperbolic sine function.

public

Square root.

public

Tangent function.

public

Hyperbolic tangent function.

Inherited Summary

From class KonpeitoInteger
public static get

-1

public static get

Negative Infinity.

public static get

Not a Number.

public static get

1

public static get

Positive infinity.

public static get

10

public static get

2

public static get

0

public static

create(number: any): KonpeitoInteger

Create an entity object of this class.

public static

valueOf(number: any): KonpeitoInteger

Create number.

public get

boolean value.

public get

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

compareTo(number: any): number

Compare values.

public

div(number: any): KonpeitoInteger

Divide.

public

divide(number: any): KonpeitoInteger

Divide.

public

equals(number: any): boolean

Equals.

public

extgcd(number: any): KonpeitoInteger[]

Extended Euclidean algorithm.

public

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

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

Multiply a multiple of ten.

public

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 static get E: KonpeitoFloat: * source

E, Napier's constant.

Return:

KonpeitoFloat

2.71...

public static get HALF: KonpeitoFloat: * source

0.5

Return:

KonpeitoFloat

0.5

public static get HALF_PI: KonpeitoFloat: * source

0.5 * PI.

Return:

KonpeitoFloat

1.57...

public static get LN10: KonpeitoFloat: * source

log_e(10)

Return:

KonpeitoFloat

ln(10)

public static get LN2: KonpeitoFloat: * source

log_e(2)

Return:

KonpeitoFloat

ln(2)

public static get LOG10E: KonpeitoFloat: * source

log_10(e)

Return:

KonpeitoFloat

log_10(e)

public static get LOG2E: KonpeitoFloat: * source

log_2(e)

Return:

KonpeitoFloat

log_2(e)

public static get PI: KonpeitoFloat: * source

PI.

Return:

KonpeitoFloat

3.14...

public static get QUARTER_PI: KonpeitoFloat: * source

0.25 * PI.

Return:

KonpeitoFloat

0.78...

public static get SQRT1_2: KonpeitoFloat: * source

sqrt(0.5)

Return:

KonpeitoFloat

sqrt(0.5)

public static get SQRT2: KonpeitoFloat: * source

sqrt(2)

Return:

KonpeitoFloat

sqrt(2)

public static get TWO_PI: KonpeitoFloat: * source

2 * PI.

Return:

KonpeitoFloat

6.28...

Public Constructors

public constructor(number: any) source

Create an number.

Override:

KonpeitoInteger#constructor

Params:

NameTypeAttributeDescription
number any
  • optional

Numeric data. See how to use the function.

Public Methods

public acos(): KonpeitoFloat source

Arc cosine function.

Return:

KonpeitoFloat

acos(A)

public acosh(): KonpeitoFloat source

Inverse hyperbolic cosine function.

Return:

KonpeitoFloat

acosh(A)

public acot(): KonpeitoFloat source

Inverse cotangent function.

Return:

KonpeitoFloat

acot(A)

public acoth(): KonpeitoFloat source

Inverse hyperbolic cotangent function.

Return:

KonpeitoFloat

acoth(A)

public acsc(): KonpeitoFloat source

Inverse cosecant function.

Return:

KonpeitoFloat

acsc(A)

public acsch(): KonpeitoFloat source

Inverse hyperbolic cosecant function.

Return:

KonpeitoFloat

acsch(A)

public asec(): KonpeitoFloat source

Reverse secant function.

Return:

KonpeitoFloat

asec(A)

public asech(): KonpeitoFloat source

Inverse hyperbolic secant function.

Return:

KonpeitoFloat

asech(A)

public asin(): KonpeitoFloat source

Arc sine function.

Return:

KonpeitoFloat

asin(A)

public asinh(): KonpeitoFloat source

Inverse hyperbolic sine function.

Return:

KonpeitoFloat

asinh(A)

public atan(): KonpeitoFloat source

Atan (arc tangent) function.

  • Return the values of [-PI/2, PI/2].

Return:

KonpeitoFloat

atan(A)

public atan2(number: any): KonpeitoFloat source

Atan (arc tangent) function. Return the values of [-PI, PI] . Supports only real numbers.

Params:

NameTypeAttributeDescription
number any
  • optional

X

Return:

KonpeitoFloat

atan2(Y, X)

public atanh(): KonpeitoFloat source

Inverse hyperbolic tangent function.

Return:

KonpeitoFloat

atanh(A)

public cbrt(): KonpeitoFloat source

Cube root.

Return:

KonpeitoFloat

cbrt(A)

public cos(): KonpeitoFloat source

Cosine function.

Return:

KonpeitoFloat

cos(A)

public cosh(): KonpeitoFloat source

Hyperbolic cosine function.

Return:

KonpeitoFloat

cosh(A)

public cot(): KonpeitoFloat source

Cotangent function.

Return:

KonpeitoFloat

cot(A)

public coth(): KonpeitoFloat source

Hyperbolic cotangent function.

Return:

KonpeitoFloat

coth(A)

public csc(): KonpeitoFloat source

Cosecant function.

Return:

KonpeitoFloat

csc(A)

public csch(): KonpeitoFloat source

Hyperbolic cosecant function.

Return:

KonpeitoFloat

csch(A)

public exp(): KonpeitoFloat source

Exponential function.

Return:

KonpeitoFloat

exp(A)

public expm1(): KonpeitoFloat source

e^x - 1

Return:

KonpeitoFloat

expm1(A)

public log(): KonpeitoFloat source

Logarithmic function.

Return:

KonpeitoFloat

log(A)

public log10(): KonpeitoFloat source

log_10(x)

Return:

KonpeitoFloat

log10(A)

public log1p(): KonpeitoFloat source

ln(1 + x)

Return:

KonpeitoFloat

log1p(A)

public log2(): KonpeitoFloat source

log_2(x)

Return:

KonpeitoFloat

log2(A)

public logit(): KonpeitoFloat source

Logit function.

Return:

KonpeitoFloat

logit(A)

public rsqrt(): KonpeitoFloat source

Reciprocal square root.

Return:

KonpeitoFloat

rsqrt(A)

public sec(): KonpeitoFloat source

Secant function.

Return:

KonpeitoFloat

sec(A)

public sech(): KonpeitoFloat source

Hyperbolic secant function.

Return:

KonpeitoFloat

sech(A)

public sin(): KonpeitoFloat source

Sine function.

Return:

KonpeitoFloat

sin(A)

public sinc(): KonpeitoFloat source

Normalized sinc function.

Return:

KonpeitoFloat

sinc(A)

public sinh(): KonpeitoFloat source

Hyperbolic sine function.

Return:

KonpeitoFloat

sinh(A)

public sqrt(): KonpeitoFloat source

Square root.

Return:

KonpeitoFloat

sqrt(A)

public tan(): KonpeitoFloat source

Tangent function.

Return:

KonpeitoFloat

tan(A)

public tanh(): KonpeitoFloat source

Hyperbolic tangent function.

Return:

KonpeitoFloat

tanh(A)