basic API
basic 包定义了其他包共用的函数类型以及一组数学常量。
类型别名
Func_Math : (Double) -> Double
表示单变量数学函数。
Quad_GK : (Func_Math, Double, Double) -> (Double, Double, Double, Double,)
表示高斯-克朗罗德(Gauss-Kronrod)数值积分函数,例如 @integration.kronrod_r15()。
常量
这些常量都是具有完整双精度的 Double 值。
| 常量 | 值 |
|---|---|
math_e | |
math_log_2_e | |
math_log_10_e | |
math_sqrt_2 | |
math_sqrt_1_2 | |
math_sqrt_3 | |
math_pi | |
math_pi_2 | |
math_pi_4 | |
math_sqrt_pi | |
math_2_sqrt_pi | |
math_1_pi | |
math_2_pi | |
math_ln_10 | |
math_ln_2 | |
math_ln_pi | |
math_euler | 欧拉常数 |