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 537c0b7 commit e32cf03Copy full SHA for e32cf03
lib/node_modules/@stdlib/stats/base/dists/exponential/median/src/main.c
@@ -34,5 +34,5 @@ double stdlib_base_dists_exponential_median( const double lambda ) {
34
if ( stdlib_base_is_nan( lambda ) || lambda <= 0.0 ) {
35
return 0.0 / 0.0; // NaN
36
}
37
- return STDLIB_CONSTANT_FLOAT64_LN2 / lambda;
+ return ( 1.0 / lambda ) * STDLIB_CONSTANT_FLOAT64_LN2;
38
0 commit comments