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

Function expm1

numexpr3/missing_posix_functions.hpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29inline double expm1(double x)
30{
31 double u = exp(x);
32 if (u == 1.0) {
33 return x;
34 } else if (u-1.0 == -1.0) {
35 return -1;
36 } else {
37 return (u-1.0) * x/log(u);
38 }
39}
40
41inline double asinh(double xx)
42{

Callers 1

expm1fFunction · 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…