Skip to main content

Math

The Aleph Math module provides a comprehensive set of mathematical functions and constants for advanced numerical computations in Aleph programming.

Global Constants

NameDescription
piThe mathematical constant π (pi), approximately 3.141592653589793.

Module Functions

NameDescription
acosCalculates the arccosine (inverse cosine) of the given value.
acoshCalculates the inverse hyperbolic cosine of the given value.
asinCalculates the arcsine (inverse sine) of the given value.
asinhCalculates the inverse hyperbolic sine of the given value.
associated_legendreEvaluates the associated Legendre polynomial of degree n and order m at the given position. The associated Legendre polynomials are defined as:...
atanCalculates the arctangent (inverse tangent) of the given value.
atan2Calculates the arctangent of the quotient of its arguments.
atanhCalculates the inverse hyperbolic tangent of the given value.
betaEvaluates the beta function at the given position. The beta function is defined as:...
cbrtCalculates the cube root of the given value.
ceilRounds the given value upward to the nearest integer.
chooseCalculates the binomial coefficient (n choose k).
copysignCopies the sign of the second value to the first value.
cosCalculates the cosine of the given angle in radians.
coshCalculates the hyperbolic cosine of the given value.
erfCalculates the error function of the given value.
erfcCalculates the complementary error function of the given value.
expCalculates the exponential of the given value (e^x).
exp2Calculates 2 raised to the power of the given value.
expintEvaluates the exponential integral at the given position. The exponential integral is defined as:...
expm1Calculates e raised to the power of the given value minus 1.
floorRounds the given value downward to the nearest integer.
hermiteEvaluates the Hermite polynomial of degree n at the given position. The Hermite polynomials are defined as:...
hypotCalculates the Euclidean norm (hypotenuse) of two values.
isfiniteChecks if the given value is finite.
isgreaterChecks if the first value is greater than the second value.
isgreaterequalChecks if the first value is greater than or equal to the second value.
isinfChecks if the given value is infinite.
islessChecks if the first value is less than the second value.
islessequalChecks if the first value is less than or equal to the second value.
islessgreaterChecks if the first value is less than or greater than the second value.
isnanChecks if the given value is NaN (Not-a-Number).
isunorderedChecks if either of the two values is NaN (Not-a-Number).
laguerreEvaluates the Laguerre polynomial of degree n at the given position. The Laguerre polynomials are defined as:...
legendreEvaluates the Legendre polynomial of degree n at the given position. The Legendre polynomials are defined as:...
lgammaCalculates the natural logarithm of the absolute value of the gamma function of the given value.
logCalculates the natural logarithm (base e) of the given value.
log10Calculates the base-10 logarithm of the given value.
log1pCalculates the natural logarithm of 1 plus the given value.
log2Calculates the base-2 logarithm of the given value.
powExponentiates the left-hand side number by the right-hand side number.
riemann_zetaEvaluates the Riemann zeta function at the given position. The Riemann zeta function is defined as:...
roundRounds the given value to the nearest integer.
signbitChecks if the sign bit of the given value is set (negative).
sinCalculates the sine of the given angle in radians.
sinhCalculates the hyperbolic sine of the given value.
spherical_besselEvaluates the spherical Bessel function of the first kind at the given position. The spherical Bessel functions are defined as:...
sqrtCalculates the square root of the given value.
tanCalculates the tangent of the given angle in radians.
tanhCalculates the hyperbolic tangent of the given value.
tgammaCalculates the gamma function of the given value.
truncTruncates the given value to the nearest integer not greater in magnitude.