Gambas Documentation - /comp/gb.gsl/gsl

/comp/gb.gsl/gsl

# GSL (gb.gsl)

This class provides useful mathematical functions and constants.

This class is static.

Static methods | Constants
--- | ---

This function computes the value of arccosh(x).
Acosh
This function computes the value of arcsinh(x).
Asinh
This function computes the value of arctanh(x).
Atanh
This function computes the value of exp(x) − 1 in a way that is accurate for small x.
Expm1
This function determines whether X and Y are approximately equal to a relative accuracy epsilon E.
Fcmp
This function splits the number X into its normalized fraction F and exponent E, such that `X = F (2 ^ E)` and `0.5 < F < 1`.
Frexp
This function computes the value of √(x/²+/y/²) in a way that avoids overflow.
Hypot
This function computes the value of √(x/²+/y/²+/z/²) in a way that avoids overflow.
Hypot3
This function returns `TRUE` if X is a real number, and `FALSE` if it is infinite or not-a-number.
IsFinite
This function returns `+1` if X is positive infinity, `−1` if X is negative infinity and `0` otherwise.
IsInf
This function returns TRUE if X is not-a-number.
IsNan
This function computes the value of `X (2 ^ E)`.
Ldexp
This function computes the value of log(1 + x) in a way that is accurate for small x.
Log1p

The base of exponentials, e = `Exp(1)`.
E
Euler’s constant, γ.
EULER
Twice the reciprocal of pi, 2/π = `2 / Pi`.
INV2_PI
Two divided by the square root of pi, 2/√/π/ = `2 / Sqr(Pi)`.
INV2_SQRTPI
The reciprocal of pi, 1/π = `1 / Pi`.
INV_PI
The natural logarithm of ten, ln(10) = `Log(10)`.
LN10
The natural logarithm of two, ln(2) = `Log(2)`.
LN2
The natural logarithm of pi, ln(π) = `Log(Pi)`.
LNPI
The base-10 logarithm of e, log10(e) = `Log10(Exp(1))`.
LOG10E
The base-2 logarithm of e, log2(e) = `Log2(Exp(1))`.
LOG2E
The constant pi, π = `Pi`.
PI
PI_2 PI_4
The square root of one-half, √ 1/2 = `Sqr(0.5)`.
SQRT1_2
The square root of two, √2 = `Sqr(2)`.
SQRT2
The square root of three, √3 = `Sqr(3)`.
SQRT3
The square root of π, √/π/ = `Sqr(Pi)`.
SQRTPI