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..29b61e14cad6 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 @@ -15,6 +15,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +// stdlib_base_sqrt( 1.0/12.0 ) +static const double SQRT_ONE_TWELFTH = 0.28867513459481287; #include "stdlib/stats/base/dists/uniform/stdev.h" #include "stdlib/math/base/assert/is_nan.h" @@ -31,7 +33,7 @@ * // 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 ( @@ -41,5 +43,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 ); }