From ac53d7db773ca0e612b0bf13806d7c38023bbdfc Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 15 May 2026 13:30:54 +0000 Subject: [PATCH 1/2] chore: fix doctest marker lint errors in `math/base/special/*` Propagates fix from f797ee08 ("chore: fix JavaScript lint errors") to sibling math/base/special rounding packages whose test files contain the same stdlib/doctest-marker violation, replacing `// =>` value markers with `// returns`. --- lib/node_modules/@stdlib/math/base/special/cceiln/test/test.js | 2 +- .../@stdlib/math/base/special/cceiln/test/test.native.js | 2 +- lib/node_modules/@stdlib/math/base/special/ceiln/test/test.js | 2 +- .../@stdlib/math/base/special/ceiln/test/test.native.js | 2 +- lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.js | 2 +- .../@stdlib/math/base/special/cfloorn/test/test.native.js | 2 +- lib/node_modules/@stdlib/math/base/special/croundn/test/test.js | 2 +- .../@stdlib/math/base/special/croundn/test/test.native.js | 2 +- lib/node_modules/@stdlib/math/base/special/floorb/test/test.js | 2 +- .../@stdlib/math/base/special/floorb/test/test.native.js | 2 +- lib/node_modules/@stdlib/math/base/special/floorn/test/test.js | 2 +- lib/node_modules/@stdlib/math/base/special/floornf/test/test.js | 2 +- .../@stdlib/math/base/special/floornf/test/test.native.js | 2 +- .../@stdlib/math/base/special/roundb/test/test.native.js | 2 +- lib/node_modules/@stdlib/math/base/special/roundn/test/test.js | 2 +- .../@stdlib/math/base/special/roundn/test/test.native.js | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cceiln/test/test.js b/lib/node_modules/@stdlib/math/base/special/cceiln/test/test.js index c9699bd519b7..d29088a9e4b3 100644 --- a/lib/node_modules/@stdlib/math/base/special/cceiln/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/cceiln/test/test.js @@ -164,7 +164,7 @@ tape( 'rounding components to a desired number of decimals can result in unexpec var x; var v; - x = 0.2 + 0.1; // => 0.30000000000000004 + x = 0.2 + 0.1; // returns 0.30000000000000004 v = cceiln( new Complex128( x, x ), -16 ); t.strictEqual( real( v ), 0.3000000000000001, 'returns 0.3000000000000001 and not 0.3' ); diff --git a/lib/node_modules/@stdlib/math/base/special/cceiln/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/cceiln/test/test.native.js index 11312ac0e730..e253f0c15503 100644 --- a/lib/node_modules/@stdlib/math/base/special/cceiln/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/cceiln/test/test.native.js @@ -155,7 +155,7 @@ tape( 'rounding components to a desired number of decimals can result in unexpec var x; var v; - x = 0.2 + 0.1; // => 0.30000000000000004 + x = 0.2 + 0.1; // returns 0.30000000000000004 v = cceiln( new Complex128( x, x ), -16 ); t.strictEqual( real( v ), 0.3000000000000001, 'returns 0.3000000000000001 and not 0.3' ); diff --git a/lib/node_modules/@stdlib/math/base/special/ceiln/test/test.js b/lib/node_modules/@stdlib/math/base/special/ceiln/test/test.js index 2430ce171fdf..cd1c70494cde 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceiln/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/ceiln/test/test.js @@ -124,7 +124,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec }); tape( 'rounding a numeric value to a desired number of decimals can result in unexpected behavior', function test( t ) { - var x = 0.2 + 0.1; // => 0.30000000000000004 + var x = 0.2 + 0.1; // returns 0.30000000000000004 t.strictEqual( ceiln( x, -16 ), 0.3000000000000001, 'equals 0.3000000000000001 and not 0.3' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/ceiln/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/ceiln/test/test.native.js index efa9bbc30da8..c173d6da3381 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceiln/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/ceiln/test/test.native.js @@ -115,7 +115,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec }); tape( 'rounding a numeric value to a desired number of decimals can result in unexpected behavior', opts, function test( t ) { - var x = 0.2 + 0.1; // => 0.30000000000000004 + var x = 0.2 + 0.1; // returns 0.30000000000000004 t.strictEqual( ceiln( x, -16 ), 0.3000000000000001, 'equals 0.3000000000000001 and not 0.3' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.js b/lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.js index d93ea33683b4..4e7ae286782b 100644 --- a/lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.js @@ -161,7 +161,7 @@ tape( 'rounding components to a desired number of decimals can result in unexpec var x; var v; - x = -0.2 - 0.1; // => -0.30000000000000004 + x = -0.2 - 0.1; // returns -0.30000000000000004 v = cfloorn( new Complex128( x, x ), -16 ); t.strictEqual( real( v ), -0.3000000000000001, 'returns -0.3000000000000001 and not -0.3' ); t.strictEqual( imag( v ), -0.3000000000000001, 'returns -0.3000000000000001 and not -0.3' ); diff --git a/lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.native.js index 71ced68bde84..03bb17c8d312 100644 --- a/lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/cfloorn/test/test.native.js @@ -133,7 +133,7 @@ tape( 'rounding components to a desired number of decimals can result in unexpec var x; var v; - x = -0.2 - 0.1; // => -0.30000000000000004 + x = -0.2 - 0.1; // returns -0.30000000000000004 v = cfloorn( new Complex128( x, x ), -16 ); t.strictEqual( real( v ), -0.3000000000000001, 'returns -0.3000000000000001 and not -0.3' ); t.strictEqual( imag( v ), -0.3000000000000001, 'returns -0.3000000000000001 and not -0.3' ); diff --git a/lib/node_modules/@stdlib/math/base/special/croundn/test/test.js b/lib/node_modules/@stdlib/math/base/special/croundn/test/test.js index 52f33872e78a..2cce4b1b9e49 100644 --- a/lib/node_modules/@stdlib/math/base/special/croundn/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/croundn/test/test.js @@ -160,7 +160,7 @@ tape( 'rounding components to a desired number of decimals can result in unexpec var x; var v; - x = 0.2 + 0.1; // => 0.30000000000000004 + x = 0.2 + 0.1; // returns 0.30000000000000004 v = croundn( new Complex128( x, x ), -16 ); t.strictEqual( real( v ), 0.3000000000000001, 'returns expected value' ); diff --git a/lib/node_modules/@stdlib/math/base/special/croundn/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/croundn/test/test.native.js index f03ef4281790..0ff7f700117c 100644 --- a/lib/node_modules/@stdlib/math/base/special/croundn/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/croundn/test/test.native.js @@ -153,7 +153,7 @@ tape( 'rounding components to a desired number of decimals can result in unexpec var x; var v; - x = 0.2 + 0.1; // => 0.30000000000000004 + x = 0.2 + 0.1; // returns 0.30000000000000004 v = croundn( new Complex128( x, x ), -16 ); t.strictEqual( real( v ), 0.3000000000000001, 'returns expected value' ); diff --git a/lib/node_modules/@stdlib/math/base/special/floorb/test/test.js b/lib/node_modules/@stdlib/math/base/special/floorb/test/test.js index cf7cfd8a8d50..4fa54025ee7d 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorb/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/floorb/test/test.js @@ -163,7 +163,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec tape( 'due to floating-point rounding error, rounding a numeric value can result in unexpected behavior', function test( t ) { var x; - x = -0.2 - 0.1; // => -0.30000000000000004 + x = -0.2 - 0.1; // returns -0.30000000000000004 t.strictEqual( floorb( x, -16, 10 ), -0.3000000000000001, 'equals -0.3000000000000001 and not -0.3' ); x = -24.616838129811768; diff --git a/lib/node_modules/@stdlib/math/base/special/floorb/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/floorb/test/test.native.js index b4d2d7ec9717..6a7c0486e4fc 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorb/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/floorb/test/test.native.js @@ -129,7 +129,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec tape( 'due to floating-point rounding error, rounding a numeric value can result in unexpected behavior', opts, function test( t ) { var x; - x = -0.2 - 0.1; // => -0.30000000000000004 + x = -0.2 - 0.1; // returns -0.30000000000000004 t.strictEqual( floorb( x, -16, 10 ), -0.3000000000000001, 'equals -0.3000000000000001 and not -0.3' ); x = -24.616838129811768; diff --git a/lib/node_modules/@stdlib/math/base/special/floorn/test/test.js b/lib/node_modules/@stdlib/math/base/special/floorn/test/test.js index 04ffcc2457f6..bda4a7465334 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorn/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/floorn/test/test.js @@ -124,7 +124,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec }); tape( 'rounding a numeric value to a desired number of decimals can result in unexpected behavior', function test( t ) { - var x = -0.2 - 0.1; // => -0.30000000000000004 + var x = -0.2 - 0.1; // returns -0.30000000000000004 t.strictEqual( floorn( x, -16 ), -0.3000000000000001, 'equals -0.3000000000000001 and not -0.3' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/floornf/test/test.js b/lib/node_modules/@stdlib/math/base/special/floornf/test/test.js index 1846dff56e69..b0b5c88f77c3 100644 --- a/lib/node_modules/@stdlib/math/base/special/floornf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/floornf/test/test.js @@ -124,7 +124,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec }); tape( 'rounding a numeric value to a desired number of decimals can result in unexpected behavior', function test( t ) { - var x = f32( f32( -0.2 ) - f32( 0.1 ) ); // => -0.30000001192092896 + var x = f32( f32( -0.2 ) - f32( 0.1 ) ); // returns -0.30000001192092896 t.strictEqual( floornf( x, -8 ), f32( -0.30000000 ), 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/floornf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/floornf/test/test.native.js index 435a24a962e8..52cfd4ce0f87 100644 --- a/lib/node_modules/@stdlib/math/base/special/floornf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/floornf/test/test.native.js @@ -115,7 +115,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec }); tape( 'rounding a numeric value to a desired number of decimals can result in unexpected behavior', opts, function test( t ) { - var x = f32( f32( -0.2 ) - f32( 0.1 ) ); // => -0.30000001192092896 + var x = f32( f32( -0.2 ) - f32( 0.1 ) ); // returns -0.30000001192092896 t.strictEqual( floornf( x, -8 ), f32( -0.30000000 ), 'returns expected value' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/roundb/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/roundb/test/test.native.js index 355b270ce62e..7df7b87cecab 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundb/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/roundb/test/test.native.js @@ -128,7 +128,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec tape( 'due to floating-point rounding error, rounding a numeric value can result in unexpected behavior', opts, function test( t ) { var x; - x = 0.2 + 0.1; // => 0.30000000000000004 + x = 0.2 + 0.1; // returns 0.30000000000000004 t.strictEqual( roundb( x, -16, 10 ), 0.3000000000000001, 'equals 0.3000000000000001 and not 0.3' ); x = 24.616838129811768; diff --git a/lib/node_modules/@stdlib/math/base/special/roundn/test/test.js b/lib/node_modules/@stdlib/math/base/special/roundn/test/test.js index 4894add1dc15..e498b6612ac5 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundn/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/roundn/test/test.js @@ -124,7 +124,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec }); tape( 'rounding a numeric value to a desired number of decimals can result in unexpected behavior', function test( t ) { - var x = 0.2 + 0.1; // => 0.30000000000000004 + var x = 0.2 + 0.1; // returns 0.30000000000000004 t.strictEqual( roundn( x, -16 ), 0.3000000000000001, 'equals 0.3000000000000001 and not 0.3' ); t.end(); }); diff --git a/lib/node_modules/@stdlib/math/base/special/roundn/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/roundn/test/test.native.js index 6e596eaa8b36..04d5b02988b9 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundn/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/roundn/test/test.native.js @@ -115,7 +115,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec }); tape( 'rounding a numeric value to a desired number of decimals can result in unexpected behavior', opts, function test( t ) { - var x = 0.2 + 0.1; // => 0.30000000000000004 + var x = 0.2 + 0.1; // returns 0.30000000000000004 t.strictEqual( roundn( x, -16 ), 0.3000000000000001, 'equals 0.3000000000000001 and not 0.3' ); t.end(); }); From ad0910dde86254017b1f31fb736ad73745e3e956 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 15 May 2026 13:31:00 +0000 Subject: [PATCH 2/2] docs: fix sigma lower bound in `stats/base/dists/rayleigh` C examples Propagates fix from b517ce16 ("docs: propagate description and example fixes in stats/base/dists/*") to the rayleigh stdev and skewness C examples, which still sampled the scale parameter sigma from a zero lower bound. --- .../stats/base/dists/rayleigh/skewness/examples/c/example.c | 2 +- .../stats/base/dists/rayleigh/stdev/examples/c/example.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/skewness/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/skewness/examples/c/example.c index f83b4b736afc..d9d6df12285b 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/skewness/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/skewness/examples/c/example.c @@ -31,7 +31,7 @@ int main( void ) { int i; for ( i = 0; i < 25; i++ ) { - sigma = random_uniform( 0 , 10.0 ); + sigma = random_uniform( 0.1, 10.0 ); y = stdlib_base_dists_rayleigh_skewness( sigma ); printf( "σ: %lf, skew(X;σ): %lf\n", sigma, y ); } diff --git a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/stdev/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/stdev/examples/c/example.c index 3ec4f4479b23..98cb12bc86c3 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/rayleigh/stdev/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/dists/rayleigh/stdev/examples/c/example.c @@ -31,7 +31,7 @@ int main( void ) { int i; for ( i = 0; i < 25; i++ ) { - sigma = random_uniform( 0 , 10.0 ); + sigma = random_uniform( 0.1, 10.0 ); y = stdlib_base_dists_rayleigh_stdev( sigma ); printf( "σ: %lf, SD(X;σ): %lf\n", sigma, y ); }