basic API

basic パッケージは、他のパッケージが共有する関数型と数学定数を定義します。

タイプエイリアス

Func_Math : (Double) -> Double

単変数の数学関数を表現します。

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

@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