basic API

The basic package defines the function types shared by the other packages and a set of mathematical constants.

Type aliases

Func_Math : (Double) -> Double

Represents a single-variable mathematical function.

Quad_GK : (Func_Math, Double, Double) -> (Double, Double, Double, Double,)

Represents a Gauss-Kronrod numerical integration function, such as @integration.kronrod_r15()

Constants

The constants are Double values with full double precision.

ConstantValue
math_eee
math_log_2_elog⁡2e\log_2 e
math_log_10_elog⁡10e\log_{10} e
math_sqrt_22\sqrt{2}
math_sqrt_1_21/2\sqrt{1/2}
math_sqrt_33\sqrt{3}
math_piπ\pi
math_pi_2π/2\pi/2
math_pi_4π/4\pi/4
math_sqrt_piπ\sqrt{\pi}
math_2_sqrt_pi2/π2/\sqrt{\pi}
math_1_pi1/π1/\pi
math_2_pi2/π2/\pi
math_ln_10ln⁡10\ln 10
math_ln_2ln⁡2\ln 2
math_ln_piln⁡π\ln \pi
math_eulerEuler’s constant γ\gamma