diff --git a/lib/node_modules/@stdlib/stats/base/dists/uniform/stdev/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/uniform/stdev/src/main.c index dd8bf69640cf..3eb2f08f6d0e 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/uniform/stdev/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/uniform/stdev/src/main.c @@ -19,6 +19,8 @@ #include "stdlib/stats/base/dists/uniform/stdev.h" #include "stdlib/math/base/assert/is_nan.h" +static const double SQRT_ONE_TWELFTH = 0.28867513459481287; // stdlib_base_sqrt( 1.0/12.0 ) + /** * Returns the standard deviation of a uniform distribution. * @@ -30,9 +32,6 @@ * double v = stdev( 4.0, 12.0 ); * // returns ~2.309 */ - -static const double SQRT_ONE_TWELFTH = 0.28867513459481287; // stdlib_base_sqrt( 1.0/12.0 ) - double stdlib_base_dists_uniform_stdev( const double a, const double b ) { if ( stdlib_base_is_nan( a ) || @@ -41,5 +40,5 @@ double stdlib_base_dists_uniform_stdev( const double a, const double b ) { ) { return 0.0 / 0.0; // NaN } - return SQRT_ONE_TWELFTH * ( b-a ); + return SQRT_ONE_TWELFTH * (b-a); }