- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Log2E (0.37 sec)
-
src/math/exp.go
return 0 case -NearZero < x && x < NearZero: return 1 + x } // reduce; computed as r = hi - lo for extra precision. var k int switch { case x < 0: k = int(Log2e*x - 0.5) case x > 0: k = int(Log2e*x + 0.5) } hi := x - float64(k)*Ln2Hi lo := float64(k) * Ln2Lo // compute return expmulti(hi, lo, k) } // Exp2 returns 2**x, the base-2 exponential of x. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 5.4K bytes - Viewed (0)