MCPcopy Create free account
hub / github.com/pydata/numexpr / log1p

Function log1p

numexpr3/missing_posix_functions.hpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17// Double precision versions
18
19inline 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
29inline double expm1(double x)
30{

Callers 3

asinhFunction · 0.85
log1pfFunction · 0.85
nr_logaddexpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…