Home | History | Annotate | Download | only in math

Lines Matching defs:Log

33 //   2. Approximation of log(1+f).
34 // Let s = f/(2+f) ; based on log(1+f) = log(1+s) - log(1-s)
48 // In order to guarantee error in log below 1ulp, we compute log by
49 // log(1+f) = f - s*(f - R) (if f is not too large)
50 // log(1+f) = f - (hfsq - s*(hfsq+R)). (better accuracy)
52 // 3. Finally, log(x) = k*Ln2 + log(1+f).
59 // log(x) is NaN with signal if x < 0 (including -INF) ;
60 // log(+INF) is +INF; log(0) is -INF with signal;
61 // log(NaN) is that NaN with no signal.
73 // Log returns the natural logarithm of x.
76 // Log(+Inf) = +Inf
77 // Log(0) = -Inf
78 // Log(x < 0) = NaN
79 // Log(NaN) = NaN
80 func Log(x float64) float64
82 func log(x float64) float64 {