From 5311169aa2b0e2d9d640d9b8d1a8b8c7b12429b9 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 14 Jun 2026 20:13:11 +0000 Subject: [PATCH 1/2] style: format `if` condition in `stats/base/dists/rayleigh/median` Reformat the `if` predicate in `src/main.c` to the multi-line style used by the majority of sibling C sources in `@stdlib/stats/base/dists/rayleigh` (12 of 14 packages, 85.7% conformance), and replace the integer literal `0` with the floating-point literal `0.0` (13 of 14 packages, 92.8% conformance) to match the convention established by #12204. No behavior change. --- .../@stdlib/stats/base/dists/rayleigh/median/src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/median/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/median/src/main.c index e89e89922286..e007437bdbf3 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/median/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/median/src/main.c @@ -32,7 +32,10 @@ static const double SQRT2LN2 = 1.1774100225154747; // sqrt(2*ln(2)) * // returns ~10.597 */ double stdlib_base_dists_rayleigh_median( const double sigma ) { - if ( stdlib_base_is_nan( sigma ) || sigma < 0 ) { + if ( + stdlib_base_is_nan( sigma ) || + sigma < 0.0 + ) { return 0.0 / 0.0; // NaN } return sigma * SQRT2LN2; From 9159933ad0bdfa1feb275f81fdbe0f65a8ecef03 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 14 Jun 2026 20:13:16 +0000 Subject: [PATCH 2/2] style: format `if` condition in `stats/base/dists/rayleigh/variance` Reformat the `if` predicate in `src/main.c` to the multi-line style used by the majority of sibling C sources in `@stdlib/stats/base/dists/rayleigh` (12 of 14 packages, 85.7% conformance). No behavior change. --- .../@stdlib/stats/base/dists/rayleigh/variance/src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/variance/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/variance/src/main.c index fd7b1636cc2a..407b3ae51ea6 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/variance/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/variance/src/main.c @@ -31,7 +31,10 @@ * // returns ~34.765 */ double stdlib_base_dists_rayleigh_variance( const double sigma ) { - if ( stdlib_base_is_nan( sigma ) || sigma < 0.0 ) { + if ( + stdlib_base_is_nan( sigma ) || + sigma < 0.0 + ) { return 0.0 / 0.0; // NaN } return ( 4.0 - STDLIB_CONSTANT_FLOAT64_PI ) * sigma * sigma / 2.0;