| 17 | // Double precision versions |
| 18 | |
| 19 | inline double log1p(double x) |
| 20 | { |
| 21 | double u = 1.0 + x; |
| 22 | if (u == 1.0) { |
| 23 | return x; |
| 24 | } else { |
| 25 | return log(u) * x / (u-1.0); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | inline double expm1(double x) |
| 30 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…