Expand description
Logarithme népérien approché pour f32, sans dépendance externe.
Méthode : x = m · 2^e avec m ∈ [√2/2, √2), donc
ln(x) = e·ln(2) + ln(m)
ln(m) = 2·atanh(s) = 2·(s + s³/3 + s⁵/5 + s⁷/7 + s⁹/9 + …), s = (m-1)/(m+1)
Avec |s| ≤ 0,1716, cinq termes suffisent à la précision d’un f32.
Functions§
- ln
- Approximation du logarithme népérien de
x.