We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612293d commit 3e9122cCopy full SHA for 3e9122c
lib/node_modules/@stdlib/stats/base/dists/logistic/logcdf/src/main.c
@@ -22,6 +22,12 @@
22
#include "stdlib/math/base/special/log1p.h"
23
#include "stdlib/math/base/special/exp.h"
24
25
+/**
26
+* Computes `log(1 + exp(x))` in a numerically stable manner.
27
+*
28
+* @param x input value
29
+* @return log(1 + exp(x))
30
+*/
31
double log1pexp( const double x ) {
32
if ( x <= 18.0 ) {
33
return stdlib_base_log1p( stdlib_base_exp( x ) );
0 commit comments