// Exp returns e**x, the base-e exponential of x. // // Special cases are: // // Exp(+Inf) = +Inf // Exp(NaN) = NaN // // Very large values overflow to 0 or +Inf. // Very small values underflow to 1. func Exp(x float64) float64 { … } func exp(x float64) float64 { … } // Exp2 returns 2**x, the base-2 exponential of x. // // Special cases are the same as [Exp]. func Exp2(x float64) float64 { … } func exp2(x float64) float64 { … } // exp1 returns e**r × 2**k where r = hi - lo and |r| ≤ ln(2)/2. func expmulti(hi, lo float64, k int) float64 { … }