Home Reference Source
public class | source

Complex

Complex number class. (immutable)

Static Method Summary

Static Public Methods
public static

Create an entity object of this class.

public static

rand(random: Random): Complex

Create random values [0, 1) with uniform random numbers.

public static

randn(random: Random): Complex

Create random values with normal distribution.

public static

Convert number to Complex type.

Constructor Summary

Public Constructor
public

Create a complex number.

Member Summary

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.

public

Logical AND.

public

arg(): number

The argument of this complex number.

public

Reverse secant function.

public

Inverse hyperbolic secant function.

public

Arc sine function.

public

Inverse hyperbolic sine function.

public

Atan (arc tangent) function.

public

Atan (arc tangent) function.

public

Inverse hyperbolic tangent function.

public

Beta function.

public

Cumulative distribution function (CDF) of beta distribution.

public

Incomplete beta function.

public

Inverse function of cumulative distribution function (CDF) of beta distribution.

public

Probability density function (PDF) of beta distribution.

public

Cumulative distribution function (CDF) of binomial distribution.

public

Inverse function of cumulative distribution function (CDF) of binomial distribution.

public

Probability density function (PDF) of binomial distribution.

public

boolean value.

public

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 number within range.

public

Deep copy.

public

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

Divide.

public

Divide.

public

Inner product/Dot product.

public

floating point.

public

Equals.

public

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

Factorial function, x!.

public

Cumulative distribution function (CDF) of F-distribution.

public

Inverse function of cumulative distribution function (CDF) of F-distribution.

public

To integer rounded down to the nearest.

public

Floor.

public

Probability density function (PDF) of F-distribution.

public

Fraction.

public

Cumulative distribution function (CDF) of gamma distribution.

public

Inverse function of cumulative distribution function (CDF) of gamma distribution.

public

Gamma function.

public

Incomplete gamma function.

public

Log-gamma function.

public

Probability density function (PDF) of the gamma distribution.

public

Return number of decimal places for real and imaginary parts.

public

The imaginary part of this Comlex.

public

integer value.

public

Inverse number of this value.

public

Returns true if the vallue is complex number (imaginary part is not 0).

public

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

Return true if the value is integer.

public

this === NaN

public

real(this) < 0

public

this === -Infinity

public

real(this) >= 0

public

this === 1

public

Return true if this real part of the complex positive.

public

this === Infinity

public

Return true if the value is real number.

public

this === 0

public

Logarithmic function.

public

log_10(x)

public

ln(1 + x)

public

log_2(x)

public

Logit function.

public

Maximum number.

public

Minimum number.

public

Modulo, positive remainder of division.

public

Multiply.

public

Multiply.

public

Binomial coefficient, number of all combinations, nCk.

public

this * -1

public

norm.

public

Cumulative distribution function (CDF) of normal distribution.

public

Inverse function of cumulative distribution function (CDF) of normal distribution.

public

Probability density function (PDF) of normal distribution.

public

Logical Not.

public

Logical OR.

public

Cumulative distribution function (CDF) of Poisson distribution.

public

Inverse function of cumulative distribution function (CDF) of Poisson distribution.

public

Probability density function (PDF) of Poisson distribution.

public

Power function.

public

The real part of this Comlex.

public

Modulo, positive remainder of division.

public

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

  • Calculated as an integer.
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

Subtract.

public

Subtract.

public

Tangent function.

public

Hyperbolic tangent function.

public

Cumulative distribution function (CDF) of Student's t-distribution.

  • Calculate from real values.
public

Cumulative distribution function (CDF) of Student's t-distribution that can specify tail.

  • Calculate from real values.
public

Inverse of cumulative distribution function (CDF) of Student's t-distribution.

  • Calculate from real values.
public

Inverse of cumulative distribution function (CDF) of Student's t-distribution in two-sided test.

  • Calculate from real values.
public

return Complex.

public

Convert to JSON.

public

Convert to string.

public

Probability density function (PDF) of Student's t-distribution.

  • Calculate from real values.
public

To integer rounded down to the nearest.

public

Logical Exclusive-OR.

Private Methods
private

Static Public Methods

public static create(number: KComplexInputData): Complex source

Create an entity object of this class.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

public static rand(random: Random): Complex source

Create random values [0, 1) with uniform random numbers.

Params:

NameTypeAttributeDescription
random Random
  • optional

Class for creating random numbers.

Return:

Complex

public static randn(random: Random): Complex source

Create random values with normal distribution.

Params:

NameTypeAttributeDescription
random Random
  • optional

Class for creating random numbers.

Return:

Complex

public static valueOf(number: KComplexInputData): Complex source

Convert number to Complex type.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

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].

Params:

NameTypeAttributeDescription
number KComplexInputData

Complex number. See how to use the function.

Private Members

private _im: number source

The imaginary part of this Comlex.

private _re: number source

The real part of this Comlex.

Public Methods

public abs(): Complex source

Absolute value.

Return:

Complex

abs(A)

public acos(): Complex source

Arc cosine function.

Return:

Complex

acos(A)

public acosh(): Complex source

Inverse hyperbolic cosine function.

Return:

Complex

acosh(A)

public acot(): Complex source

Inverse cotangent function.

Return:

Complex

acot(A)

public acoth(): Complex source

Inverse hyperbolic cotangent function.

Return:

Complex

acoth(A)

public acsc(): Complex source

Inverse cosecant function.

Return:

Complex

acsc(A)

public acsch(): Complex source

Inverse hyperbolic cosecant function.

Return:

Complex

acsch(A)

public add(number: KComplexInputData): Complex source

Add.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A + B

public and(number: KComplexInputData): Complex source

Logical AND.

  • Calculated as an integer.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A & B

public arg(): number source

The argument of this complex number.

Return:

number

arg(A)

public asec(): Complex source

Reverse secant function.

Return:

Complex

asec(A)

public asech(): Complex source

Inverse hyperbolic secant function.

Return:

Complex

asech(A)

public asin(): Complex source

Arc sine function.

Return:

Complex

asin(A)

public asinh(): Complex source

Inverse hyperbolic sine function.

Return:

Complex

asinh(A)

public atan(): Complex source

Atan (arc tangent) function.

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

Return:

Complex

atan(A)

public atan2(number: KComplexInputData): Complex source

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

Params:

NameTypeAttributeDescription
number KComplexInputData
  • optional

X

Return:

Complex

atan2(Y, X)

public atanh(): Complex source

Inverse hyperbolic tangent function.

Return:

Complex

atanh(A)

public beta(y: KComplexInputData): Complex source

Beta function.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
y KComplexInputData

Return:

Complex

public betacdf(a: KComplexInputData, b: KComplexInputData): Complex source

Cumulative distribution function (CDF) of beta distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
a KComplexInputData
b KComplexInputData

Return:

Complex

public betainc(a: KComplexInputData, b: KComplexInputData, tail: string): Complex source

Incomplete beta function.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
a KComplexInputData
b KComplexInputData
tail string
  • optional
  • default: "lower"

lower (default) , "upper"

Return:

Complex

public betainv(a: KComplexInputData, b: KComplexInputData): Complex source

Inverse function of cumulative distribution function (CDF) of beta distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
a KComplexInputData
b KComplexInputData

Return:

Complex

public betapdf(a: KComplexInputData, b: KComplexInputData): Complex source

Probability density function (PDF) of beta distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
a KComplexInputData
b KComplexInputData

Return:

Complex

public binocdf(n: KComplexInputData, p: KComplexInputData, tail: string): Complex source

Cumulative distribution function (CDF) of binomial distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
n KComplexInputData
p KComplexInputData
tail string
  • optional
  • default: "lower"

lower (default) , "upper"

Return:

Complex

public binoinv(n: KComplexInputData, p: KComplexInputData): Complex source

Inverse function of cumulative distribution function (CDF) of binomial distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
n KComplexInputData
p KComplexInputData

Return:

Complex

public binopdf(n: KComplexInputData, p: KComplexInputData): Complex source

Probability density function (PDF) of binomial distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
n KComplexInputData
p KComplexInputData

Return:

Complex

public booleanValue(): boolean source

boolean value.

Return:

boolean

public cbrt(n: KComplexInputData): Complex source

Cube root.

Params:

NameTypeAttributeDescription
n KComplexInputData
  • optional
  • default: 0

Value type(0,1,2)

Return:

Complex

cbrt(A)

public ceil(): Complex source

Ceil.

Return:

Complex

ceil(A)

public chi2cdf(k: KComplexInputData): Complex source

Cumulative distribution function (CDF) of chi-square distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
k KComplexInputData

The degrees of freedom. (DF)

Return:

Complex

public chi2inv(k: KComplexInputData): Complex source

Inverse function of cumulative distribution function (CDF) of chi-square distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
k KComplexInputData

The degrees of freedom. (DF)

Return:

Complex

public chi2pdf(k: KComplexInputData): Complex source

Probability density function (PDF) of chi-square distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
k KComplexInputData

The degrees of freedom. (DF)

Return:

Complex

public clip(min: KComplexInputData, max: KComplexInputData): Complex source

Clip number within range.

Params:

NameTypeAttributeDescription
min KComplexInputData
max KComplexInputData

Return:

Complex

min(max(x, min), max)

public clone(): Complex source

Deep copy.

Return:

Complex

public compareTo(number: KComplexInputData, tolerance: KComplexInputData): number source

Compare values.

Params:

NameTypeAttributeDescription
number KComplexInputData
tolerance KComplexInputData
  • optional
  • default: Number.EPSILON

Calculation tolerance of calculation.

Return:

number

A > B ? 1 : (A === B ? 0 : -1)

public conj(): Complex source

Complex conjugate.

Return:

Complex

real(A) - imag(A)j

public cos(): Complex source

Cosine function.

Return:

Complex

cos(A)

public cosh(): Complex source

Hyperbolic cosine function.

Return:

Complex

cosh(A)

public cot(): Complex source

Cotangent function.

Return:

Complex

cot(A)

public coth(): Complex source

Hyperbolic cotangent function.

Return:

Complex

coth(A)

public csc(): Complex source

Cosecant function.

Return:

Complex

csc(A)

public csch(): Complex source

Hyperbolic cosecant function.

Return:

Complex

csch(A)

public div(number: KComplexInputData): Complex source

Divide.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A / B

public divide(number: KComplexInputData): Complex source

Divide.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

fix(A / B)

public dot(number: KComplexInputData): Complex source

Inner product/Dot product.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A * conj(B)

public doubleValue(): number source

floating point.

Return:

number

public equals(number: KComplexInputData, tolerance: KComplexInputData): boolean source

Equals.

Params:

NameTypeAttributeDescription
number KComplexInputData
tolerance KComplexInputData
  • optional
  • default: Number.EPSILON

Calculation tolerance of calculation.

Return:

boolean

A === B

public equalsState(number: KComplexInputData): boolean source

Numeric type match.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

boolean

public erf(): Complex source

Error function.

  • Calculate from real values.

Return:

Complex

public erfc(): Complex source

Complementary error function.

  • Calculate from real values.

Return:

Complex

public erfcinv(): Complex source

Inverse function of Complementary error function.

  • Calculate from real values.

Return:

Complex

public erfinv(): Complex source

Inverse function of Error function.

  • Calculate from real values.

Return:

Complex

public exp(): Complex source

Exponential function.

Return:

Complex

exp(A)

public expm1(): Complex source

e^x - 1

Return:

Complex

expm1(A)

public factorial(): Complex source

Factorial function, x!.

  • Calculate from real values.

Return:

Complex

public fcdf(d1: KComplexInputData, d2: KComplexInputData): Complex source

Cumulative distribution function (CDF) of F-distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
d1 KComplexInputData

The degree of freedom of the molecules.

d2 KComplexInputData

The degree of freedom of the denominator

Return:

Complex

public finv(d1: KComplexInputData, d2: KComplexInputData): Complex source

Inverse function of cumulative distribution function (CDF) of F-distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
d1 KComplexInputData

The degree of freedom of the molecules.

d2 KComplexInputData

The degree of freedom of the denominator

Return:

Complex

public fix(): Complex source

To integer rounded down to the nearest.

Return:

Complex

fix(A), trunc(A)

public floor(): Complex source

Floor.

Return:

Complex

floor(A)

public fpdf(d1: KComplexInputData, d2: KComplexInputData): Complex source

Probability density function (PDF) of F-distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
d1 KComplexInputData

The degree of freedom of the molecules.

d2 KComplexInputData

The degree of freedom of the denominator

Return:

Complex

public fract(): Complex source

Fraction.

Return:

Complex

fract(A)

public gamcdf(k: KComplexInputData, s: KComplexInputData): Complex source

Cumulative distribution function (CDF) of gamma distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
k KComplexInputData

Shape parameter.

s KComplexInputData

Scale parameter.

Return:

Complex

public gaminv(k: KComplexInputData, s: KComplexInputData): Complex source

Inverse function of cumulative distribution function (CDF) of gamma distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
k KComplexInputData

Shape parameter.

s KComplexInputData

Scale parameter.

Return:

Complex

public gamma(): Complex source

Gamma function.

  • Calculate from real values.

Return:

Complex

public gammainc(a: KComplexInputData, tail: string): Complex source

Incomplete gamma function.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
a KComplexInputData
tail string
  • optional
  • default: "lower"

lower (default) , "upper"

Return:

Complex

public gammaln(): Complex source

Log-gamma function.

  • Calculate from real values.

Return:

Complex

public gampdf(k: KComplexInputData, s: KComplexInputData): Complex source

Probability density function (PDF) of the gamma distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
k KComplexInputData

Shape parameter.

s KComplexInputData

Scale parameter.

Return:

Complex

public getDecimalPosition(): number source

Return number of decimal places for real and imaginary parts.

  • Used to make a string.

Return:

number

Number of decimal places.

public imag(): number source

The imaginary part of this Comlex.

Return:

number

imag(A)

public intValue(): number source

integer value.

Return:

number

public inv(): Complex source

Inverse number of this value.

Return:

Complex

1 / A

public isComplex(tolerance: KComplexInputData): boolean source

Returns true if the vallue is complex number (imaginary part is not 0).

Params:

NameTypeAttributeDescription
tolerance KComplexInputData
  • optional
  • default: Number.EPSILON

Calculation tolerance of calculation.

Return:

boolean

imag(A) !== 0

public isComplexInteger(tolerance: KComplexInputData): boolean source

Returns true if the vallue is complex integer (including normal integer).

Params:

NameTypeAttributeDescription
tolerance KComplexInputData
  • optional
  • default: Number.EPSILON

Calculation tolerance of calculation.

Return:

boolean

real(A) === integer && imag(A) === integer

public isFinite(): boolean source

Return true if the value is finite number.

Return:

boolean

!isNaN(A) && !isInfinite(A)

public isInfinite(): boolean source

this === Infinity or -Infinity

Return:

boolean

isPositiveInfinity(A) || isNegativeInfinity(A)

public isInteger(tolerance: KComplexInputData): boolean source

Return true if the value is integer.

Params:

NameTypeAttributeDescription
tolerance KComplexInputData
  • optional
  • default: Number.EPSILON

Calculation tolerance of calculation.

Return:

boolean

public isNaN(): boolean source

this === NaN

Return:

boolean

isNaN(A)

public isNegative(): boolean source

real(this) < 0

Return:

boolean

real(x) < 0

public isNegativeInfinity(): boolean source

this === -Infinity

Return:

boolean

isNegativeInfinity(A)

public isNotNegative(): boolean source

real(this) >= 0

Return:

boolean

real(x) >= 0

public isOne(tolerance: KComplexInputData): boolean source

this === 1

Params:

NameTypeAttributeDescription
tolerance KComplexInputData
  • optional
  • default: Number.EPSILON

Calculation tolerance of calculation.

Return:

boolean

A === 1

public isPositive(): boolean source

Return true if this real part of the complex positive.

Return:

boolean

real(x) > 0

public isPositiveInfinity(): boolean source

this === Infinity

Return:

boolean

isPositiveInfinity(A)

public isReal(tolerance: KComplexInputData): boolean source

Return true if the value is real number.

Params:

NameTypeAttributeDescription
tolerance KComplexInputData
  • optional
  • default: Number.EPSILON

Calculation tolerance of calculation.

Return:

boolean

imag(A) === 0

public isZero(tolerance: KComplexInputData): boolean source

this === 0

Params:

NameTypeAttributeDescription
tolerance KComplexInputData
  • optional
  • default: Number.EPSILON

Calculation tolerance of calculation.

Return:

boolean

A === 0

public log(): Complex source

Logarithmic function.

Return:

Complex

log(A)

public log10(): Complex source

log_10(x)

Return:

Complex

log10(A)

public log1p(): Complex source

ln(1 + x)

Return:

Complex

log1p(A)

public log2(): Complex source

log_2(x)

Return:

Complex

log2(A)

public logit(): Complex source

Logit function.

Return:

Complex

logit(A)

public max(number: KComplexInputData): Complex source

Maximum number.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

max([A, B])

public min(number: KComplexInputData): Complex source

Minimum number.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

min([A, B])

public mod(number: KComplexInputData): Complex source

Modulo, positive remainder of division.

  • Result has same sign as the Divisor.

Params:

NameTypeAttributeDescription
number KComplexInputData

Divided value (real number only).

Return:

Complex

A mod B

public mul(number: KComplexInputData): Complex source

Multiply.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A * B

public multiply(number: KComplexInputData): Complex source

Multiply.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A * B

public nchoosek(k: KComplexInputData): Complex source

Binomial coefficient, number of all combinations, nCk.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
k KComplexInputData

Return:

Complex

public negate(): Complex source

this * -1

Return:

Complex

A

public norm(): number source

norm.

Return:

number

|A|

public normcdf(u: KComplexInputData, s: KComplexInputData): Complex source

Cumulative distribution function (CDF) of normal distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
u KComplexInputData
  • optional
  • default: 0.0

Average value.

s KComplexInputData
  • optional
  • default: 1.0

Variance value.

Return:

Complex

public norminv(u: KComplexInputData, s: KComplexInputData): Complex source

Inverse function of cumulative distribution function (CDF) of normal distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
u KComplexInputData
  • optional
  • default: 0.0

Average value.

s KComplexInputData
  • optional
  • default: 1.0

Variance value.

Return:

Complex

public normpdf(u: KComplexInputData, s: KComplexInputData): Complex source

Probability density function (PDF) of normal distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
u KComplexInputData
  • optional
  • default: 0.0

Average value.

s KComplexInputData
  • optional
  • default: 1.0

Variance value.

Return:

Complex

public not(): Complex source

Logical Not. (mutable)

  • Calculated as an integer.

Return:

Complex

!A

public or(number: KComplexInputData): Complex source

Logical OR.

  • Calculated as an integer.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A | B

public poisscdf(lambda: KComplexInputData): Complex source

Cumulative distribution function (CDF) of Poisson distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
lambda KComplexInputData

Return:

Complex

public poissinv(lambda: KComplexInputData): Complex source

Inverse function of cumulative distribution function (CDF) of Poisson distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
lambda KComplexInputData

Return:

Complex

public poisspdf(lambda: KComplexInputData): Complex source

Probability density function (PDF) of Poisson distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
lambda KComplexInputData

Return:

Complex

public pow(number: KComplexInputData): Complex source

Power function.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

pow(A, B)

public real(): number source

The real part of this Comlex.

Return:

number

real(A)

public rem(number: KComplexInputData): Complex source

Modulo, positive remainder of division.

  • Result has same sign as the Dividend.

Params:

NameTypeAttributeDescription
number KComplexInputData

Divided value (real number only).

Return:

Complex

A rem B

public remainder(number: KComplexInputData): Complex source

Remainder of division.

  • Result has same sign as the Dividend.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A % B

public round(): Complex source

Rounding to the nearest integer.

Return:

Complex

round(A)

public rsqrt(): Complex source

Reciprocal square root.

Return:

Complex

rsqrt(A)

public scaleByPowerOfTen(n: KComplexInputData): Complex source

Multiply a multiple of ten.

Params:

NameTypeAttributeDescription
n KComplexInputData

Return:

Complex

x * 10^n

public sec(): Complex source

Secant function.

Return:

Complex

sec(A)

public sech(): Complex source

Hyperbolic secant function.

Return:

Complex

sech(A)

public shift(n: KComplexInputData): Complex source

this << n

  • Calculated as an integer.

Params:

NameTypeAttributeDescription
n KComplexInputData

Return:

Complex

A << n

public sign(): Complex source

The positive or negative sign of this number.

  • +1 if positive, -1 if negative, 0 if 0.

Return:

Complex

public signum(): Complex source

The positive or negative sign of this number.

  • +1 if positive, -1 if negative, 0 if 0.

Return:

Complex

public sin(): Complex source

Sine function.

Return:

Complex

sin(A)

public sinc(): Complex source

Normalized sinc function.

Return:

Complex

sinc(A)

public sinh(): Complex source

Hyperbolic sine function.

Return:

Complex

sinh(A)

public sqrt(): Complex source

Square root.

Return:

Complex

sqrt(A)

public square(): Complex source

Square.

Return:

Complex

pow(A, 2)

public sub(number: KComplexInputData): Complex source

Subtract.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A - B

public subtract(number: KComplexInputData): Complex source

Subtract.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A - B

public tan(): Complex source

Tangent function.

Return:

Complex

tan(A)

public tanh(): Complex source

Hyperbolic tangent function.

Return:

Complex

tanh(A)

public tcdf(v: KComplexInputData): Complex source

Cumulative distribution function (CDF) of Student's t-distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
v KComplexInputData

The degrees of freedom. (DF)

Return:

Complex

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:

NameTypeAttributeDescription
v KComplexInputData

The degrees of freedom. (DF)

tails KComplexInputData

Tail. (1 = the one-tailed distribution, 2 = the two-tailed distribution.)

Return:

Complex

public tinv(v: KComplexInputData): Complex source

Inverse of cumulative distribution function (CDF) of Student's t-distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
v KComplexInputData

The degrees of freedom. (DF)

Return:

Complex

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:

NameTypeAttributeDescription
v KComplexInputData

The degrees of freedom. (DF)

Return:

Complex

public toComplex(): Complex source

return Complex.

Return:

Complex

public toJSON(): string source

Convert to JSON.

Return:

string

public toString(): string source

Convert to string.

Return:

string

public tpdf(v: KComplexInputData): Complex source

Probability density function (PDF) of Student's t-distribution.

  • Calculate from real values.

Params:

NameTypeAttributeDescription
v KComplexInputData

The degrees of freedom. (DF)

Return:

Complex

public trunc(): Complex source

To integer rounded down to the nearest.

Return:

Complex

fix(A), trunc(A)

public xor(number: KComplexInputData): Complex source

Logical Exclusive-OR.

  • Calculated as an integer.

Params:

NameTypeAttributeDescription
number KComplexInputData

Return:

Complex

A ^ B

Private Methods

private isComplexData(): boolean source

Return:

boolean

true