MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / expm1

Function expm1

src/myFunc.cpp:2630–2635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2628
2629#if defined(_WIN32) || (defined(__APPLE__) && defined(__MACH__))
2630double expm1(double x) {
2631 if (fabs(x) < 1e-5)
2632 return x + 0.5*x*x;
2633 else
2634 return exp(x) - 1.0;
2635}
2636double log1p(double x) {
2637 if (fabs(x) < 1e-5)
2638 return (x-x*x/2+x*x*x/3);

Callers 2

binomialcdistributionFunction · 0.85
invbinomialdistributionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected