Module russell_lab::math
source · Expand description
This module implements mathematical (specialized) functions and constants
Constants§
- cos(π/8) = cos(22.5°) https://oeis.org/A144981
- Euler constant https://oeis.org/A001620
- (1+sqrt(5))/2 https://oeis.org/A001622
- ln(2.0) https://oeis.org/A002162
- ln(10.0) https://oeis.org/A002392
- (e) Napier constant https://oeis.org/A001113
- 1/3
- 1/sqrt(2) = cos(pi/4) https://oeis.org/A010503
- sin(π/8) = sin(22.5°) https://oeis.org/A182168
- sqrt(2) https://oeis.org/A002193
- sqrt(2/3) https://oeis.org/A157697
- sqrt(3) https://oeis.org/A002194
- sqt(3/2) https://oeis.org/A115754
- sqrt(6) https://oeis.org/A010464
- sqrt(EPSILON) = sqrt(powi(2,-52))
- sqrt(π) https://oeis.org/A002161
- 2/3
Functions§
- Evaluates the modified Bessel function I0(x) for any real x
- Evaluates the modified Bessel function I1(x) for any real x
- Evaluates the modified Bessel function In(x) for any real x and n ≥ 0
- Evaluates the Bessel function J0(x) for any real x
- Evaluates the Bessel function J1(x) for any real x
- Evaluates the Bessel function Jn(x) for any real x
- Evaluates the modified Bessel function K0(x) for positive real x
- Evaluates the modified Bessel function K1(x) for positive real x
- Evaluates the modified Bessel function Kn(x) for positive x and n ≥ 0
- Evaluates the Bessel function Y0(x) for positive real x
- Evaluates the Bessel function Y1(x) for positive real x
- Evaluates the Bessel function Yn(x) for positive real x
- Evaluates the Euler beta function B(a, b)
- Evaluates the boxcar function
- Computes Chebyshev-Gauss points
- Computes Chebyshev-Gauss-Lobatto points
- Evaluates the Chebyshev polynomial of first kind Tn(x) using the trigonometric functions
- Computes the first derivative of the Chebyshev T(n, x) function
- Computes the second derivative of the Chebyshev Tn(x) function
- Computes the elliptic integral of the second kind E(φ, m)
- Computes the elliptic integral of the first kind F(φ, m)
- Computes the elliptic integral of the third kind Π(n, φ, m)
- Evaluates the error function
- Evaluates the inverse error function of x
- Evaluates the complementary error function
- Evaluates the inverse of the complementary error function
- Returns the factorial of n smaller than or equal to 22 by table lookup
- (ldexp) Composes a floating-point number from a mantissa and exponent
- (frexp) Decomposes a floating-point number into a mantissa and exponent parts
- Reports if a floating-point number corresponds to an integer
- Reports if a floating-point number corresponds to a negative integer
- (modf) Splits a floating-point number into an integer and a fractional part
- Evaluates the Gamma function Γ(x)
- Evaluates the Heaviside step function (derivative of ramp(x))
- Calculates the imaginary unit (i) raised to power of n
- Evaluates the natural logarithm of the Beta function B(a, b)
- Evaluates the natural logarithm and sign of Γ(x)
- Evaluates the standard logistic (sigmoid) function
- Returns the first derivative of the standard logistic function
- (fmod) Returns the floating-point remainder of x/y
- Calculates negative one raised to the power of n
- Evaluates the ramp function (Macaulay brackets)
- Evaluates the sign function
- Evaluates the smooth ramp function
- Returns the first derivative of smooth_ramp
- Returns the second derivative of smooth_ramp
- Evaluates the superquadric function involving cos(x)
- Evaluates the superquadric function involving sin(x)
- Calculates a real number x times the imaginary unit (i) raised to the power of n