basic API

basic 包定义了其他包共用的函数类型以及一组数学常量。

类型别名

Func_Math : (Double) -> Double

表示单变量数学函数。

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

表示高斯-克朗罗德(Gauss-Kronrod)数值积分函数,例如 @integration.kronrod_r15()。

常量

这些常量都是具有完整双精度的 Double 值。

常量值
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_euler欧拉常数 γ\gamma