From b61c7b73c6e90864b35146fdea95c18d0a34e85d Mon Sep 17 00:00:00 2001 From: Vishal Gaikwad Date: Mon, 5 Jan 2026 15:26:13 +0530 Subject: [PATCH 01/19] bench: refactor to use string interpolation in buffer/from-array-buffer --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../buffer/from-arraybuffer/benchmark/benchmark.length.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/buffer/from-arraybuffer/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/buffer/from-arraybuffer/benchmark/benchmark.length.js index ca9820cc557c..dec1bff341ee 100644 --- a/lib/node_modules/@stdlib/buffer/from-arraybuffer/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/buffer/from-arraybuffer/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var isBuffer = require( '@stdlib/assert/is-buffer' ); var ArrayBuffer = require( '@stdlib/array/buffer' ); var Uint8Array = require( '@stdlib/array/uint8' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var arraybuffer2buffer = require( './../lib' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } From 96038dec3dccd05e780d3969bb3d709321f10a1d Mon Sep 17 00:00:00 2001 From: ivishal-g Date: Sun, 18 Jan 2026 13:52:09 +0530 Subject: [PATCH 02/19] docs: improve doctests for complex number instances in math/base/special/cflipsign --- .../@stdlib/math/base/special/cflipsign/README.md | 9 +-------- .../@stdlib/math/base/special/cflipsign/docs/repl.txt | 6 +----- .../math/base/special/cflipsign/docs/types/index.d.ts | 10 +--------- .../@stdlib/math/base/special/cflipsign/lib/index.js | 10 +--------- .../@stdlib/math/base/special/cflipsign/lib/main.js | 10 +--------- .../@stdlib/math/base/special/cflipsign/lib/native.js | 10 +--------- 6 files changed, 6 insertions(+), 49 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/README.md b/lib/node_modules/@stdlib/math/base/special/cflipsign/README.md index ecd0516f9d2b..65fe10322c4f 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/README.md +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/README.md @@ -46,17 +46,10 @@ Returns a double-precision complex floating-point number with the same magnitude ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); var v = cflipsign( new Complex128( -4.2, 5.5 ), -1.0 ); -// returns +// returns [ 4.2, -5.5 ] -var re = real( v ); -// returns 4.2 - -var im = imag( v ); -// returns -5.5 ``` diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/repl.txt index 067b1408dc36..58015b6199aa 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/repl.txt +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/repl.txt @@ -19,11 +19,7 @@ Examples -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( -4.2, 5.5 ), -9.0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( v ) - 4.2 - > var im = {{alias:@stdlib/complex/float64/imag}}( v ) - -5.5 + [ 4.2, -5.5 ] See Also -------- diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/types/index.d.ts index 8352d2a23899..4f3e27f9f77e 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/types/index.d.ts @@ -31,17 +31,9 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); -* // returns -* -* var re = real( v ); -* // returns 4.2 -* -* var im = imag( v ); -* // returns -5.5 +* // returns [ 4.2, -5.5 ] */ declare function cflipsign( z: Complex128, y: number ): Complex128; diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/index.js b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/index.js index 0e6964eea28d..5d33aa5197cb 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/index.js +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/index.js @@ -25,18 +25,10 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); * var cflipsign = require( '@stdlib/math/base/special/cflipsign' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); -* // returns -* -* var re = real( v ); -* // returns 4.2 -* -* var im = imag( v ); -* // returns -5.5 +* // returns [ 4.2, -5.5 ] */ // MODULES // diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/main.js index e2b8619e43e7..de6664213096 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/main.js @@ -37,17 +37,9 @@ var imag = require( '@stdlib/complex/float64/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); -* // returns -* -* var re = real( v ); -* // returns 4.2 -* -* var im = imag( v ); -* // returns -5.5 +* // returns [ 4.2, -5.5 ] */ function cflipsign( z, y ) { var re = real( z ); diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/native.js b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/native.js index 799f68d7c49c..25d06071fa6c 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/native.js +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/native.js @@ -36,17 +36,9 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); -* // returns -* -* var re = real( v ); -* // returns 4.2 -* -* var im = imag( v ); -* // returns -5.5 +* // returns [ 4.2, -5.5 ] */ function cflipsign( z, y ) { var v = addon( z, y ); From 6f352296be76c22f61df4efb82f2f791d22dd662 Mon Sep 17 00:00:00 2001 From: ivishal-g Date: Sun, 18 Jan 2026 14:30:08 +0530 Subject: [PATCH 03/19] problem --- .../@stdlib/math/base/special/cflipsign/README.md | 9 ++++++++- .../@stdlib/math/base/special/cflipsign/docs/repl.txt | 6 +++++- .../math/base/special/cflipsign/docs/types/index.d.ts | 10 +++++++++- .../@stdlib/math/base/special/cflipsign/lib/index.js | 10 +++++++++- .../@stdlib/math/base/special/cflipsign/lib/main.js | 10 +++++++++- .../@stdlib/math/base/special/cflipsign/lib/native.js | 10 +++++++++- 6 files changed, 49 insertions(+), 6 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/README.md b/lib/node_modules/@stdlib/math/base/special/cflipsign/README.md index 65fe10322c4f..ecd0516f9d2b 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/README.md +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/README.md @@ -46,10 +46,17 @@ Returns a double-precision complex floating-point number with the same magnitude ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); +var real = require( '@stdlib/complex/float64/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); var v = cflipsign( new Complex128( -4.2, 5.5 ), -1.0 ); -// returns [ 4.2, -5.5 ] +// returns +var re = real( v ); +// returns 4.2 + +var im = imag( v ); +// returns -5.5 ``` diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/repl.txt index 58015b6199aa..067b1408dc36 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/repl.txt +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/repl.txt @@ -19,7 +19,11 @@ Examples -------- > var v = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( -4.2, 5.5 ), -9.0 ) - [ 4.2, -5.5 ] + + > var re = {{alias:@stdlib/complex/float64/real}}( v ) + 4.2 + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) + -5.5 See Also -------- diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/types/index.d.ts index 4f3e27f9f77e..8352d2a23899 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/docs/types/index.d.ts @@ -31,9 +31,17 @@ import { Complex128 } from '@stdlib/types/complex'; * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); -* // returns [ 4.2, -5.5 ] +* // returns +* +* var re = real( v ); +* // returns 4.2 +* +* var im = imag( v ); +* // returns -5.5 */ declare function cflipsign( z: Complex128, y: number ): Complex128; diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/index.js b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/index.js index 5d33aa5197cb..0e6964eea28d 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/index.js +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/index.js @@ -25,10 +25,18 @@ * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cflipsign = require( '@stdlib/math/base/special/cflipsign' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); -* // returns [ 4.2, -5.5 ] +* // returns +* +* var re = real( v ); +* // returns 4.2 +* +* var im = imag( v ); +* // returns -5.5 */ // MODULES // diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/main.js index de6664213096..e2b8619e43e7 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/main.js @@ -37,9 +37,17 @@ var imag = require( '@stdlib/complex/float64/imag' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); -* // returns [ 4.2, -5.5 ] +* // returns +* +* var re = real( v ); +* // returns 4.2 +* +* var im = imag( v ); +* // returns -5.5 */ function cflipsign( z, y ) { var re = real( z ); diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/native.js b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/native.js index 25d06071fa6c..799f68d7c49c 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/native.js +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/lib/native.js @@ -36,9 +36,17 @@ var addon = require( './../src/addon.node' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); +* var real = require( '@stdlib/complex/float64/real' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 ); -* // returns [ 4.2, -5.5 ] +* // returns +* +* var re = real( v ); +* // returns 4.2 +* +* var im = imag( v ); +* // returns -5.5 */ function cflipsign( z, y ) { var v = addon( z, y ); From cc593a4ebc654407f643253b6daec88c69869be9 Mon Sep 17 00:00:00 2001 From: ivishal-g Date: Wed, 21 Jan 2026 01:10:03 +0530 Subject: [PATCH 04/19] feat: add math/base/special/acschf --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: missing_dependencies - task: lint_c_examples status: missing_dependencies - task: lint_c_benchmarks status: missing_dependencies - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed --- --- .../math/base/special/acschf/README.md | 214 +++++++++ .../special/acschf/benchmark/benchmark.js | 50 ++ .../acschf/benchmark/benchmark.native.js | 59 +++ .../acschf/benchmark/c/native/Makefile | 146 ++++++ .../acschf/benchmark/c/native/benchmark.c | 137 ++++++ .../special/acschf/benchmark/julia/REQUIRE | 2 + .../acschf/benchmark/julia/benchmark.jl | 103 ++++ .../math/base/special/acschf/binding.gyp | 170 +++++++ .../math/base/special/acschf/docs/repl.txt | 38 ++ .../base/special/acschf/docs/types/index.d.ts | 44 ++ .../base/special/acschf/docs/types/test.ts | 44 ++ .../base/special/acschf/examples/c/Makefile | 146 ++++++ .../base/special/acschf/examples/c/example.c | 31 ++ .../base/special/acschf/examples/index.js | 29 ++ .../math/base/special/acschf/include.gypi | 53 +++ .../include/stdlib/math/base/special/acschf.h | 38 ++ .../math/base/special/acschf/lib/index.js | 46 ++ .../math/base/special/acschf/lib/main.js | 56 +++ .../math/base/special/acschf/lib/native.js | 58 +++ .../math/base/special/acschf/manifest.json | 72 +++ .../math/base/special/acschf/package.json | 151 ++++++ .../math/base/special/acschf/src/Makefile | 70 +++ .../math/base/special/acschf/src/addon.c | 22 + .../math/base/special/acschf/src/main.c | 34 ++ .../acschf/test/fixtures/julia/REQUIRE | 2 + .../test/fixtures/julia/huge_negative.json | 1 + .../test/fixtures/julia/huge_positive.json | 1 + .../test/fixtures/julia/large_negative.json | 1 + .../test/fixtures/julia/large_positive.json | 1 + .../test/fixtures/julia/larger_negative.json | 1 + .../test/fixtures/julia/larger_positive.json | 1 + .../test/fixtures/julia/medium_negative.json | 1 + .../test/fixtures/julia/medium_positive.json | 1 + .../acschf/test/fixtures/julia/runner.jl | 114 +++++ .../test/fixtures/julia/small_negative.json | 1 + .../test/fixtures/julia/small_positive.json | 1 + .../acschf/test/fixtures/julia/smaller.json | 1 + .../test/fixtures/julia/tiny_negative.json | 1 + .../test/fixtures/julia/tiny_positive.json | 1 + .../math/base/special/acschf/test/test.js | 412 ++++++++++++++++ .../base/special/acschf/test/test.native.js | 441 ++++++++++++++++++ 41 files changed, 2795 insertions(+) create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/README.md create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/Makefile create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/benchmark.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/REQUIRE create mode 100755 lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/benchmark.jl create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/examples/index.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/include.gypi create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/include/stdlib/math/base/special/acschf.h create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/lib/index.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/lib/native.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/manifest.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/package.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/src/main.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/REQUIRE create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/huge_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/huge_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/large_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/large_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/larger_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/larger_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/medium_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/medium_positive.json create mode 100755 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/runner.jl create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/small_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/small_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/smaller.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/tiny_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/tiny_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/test.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/README.md b/lib/node_modules/@stdlib/math/base/special/acschf/README.md new file mode 100644 index 000000000000..14cbf31ff47c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/README.md @@ -0,0 +1,214 @@ + + +# acschf + +> Compute the [hyperbolic arccosecant][inverse-hyperbolic-functions] of a single-precision floating-point number. + +
+ +## Usage + +```javascript +var acschf = require( '@stdlib/math/base/special/acschf' ); +``` + +#### acschf( x ) + +Computes the [hyperbolic arccosecant][inverse-hyperbolic-functions] of `x`. + +```javascript +var v = acschf( 0.0 ); +// returns Infinity + +v = acschf( -0.0 ); +// returns -Infinity + +v = acschf( 1.0 ); +// returns ~0.881 + +v = acschf( -1.0 ); +// returns ~-0.881 + +v = acschf( NaN ); +// returns NaN + +v = acschf( -Infinity ); +// returns -0.0 + +v = acschf( Infinity ); +// returns 0.0 +``` + +
+ + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var acschf = require( '@stdlib/math/base/special/acschf' ); + +var x = uniform( 100, 1.0, 5.0, { + 'dtype': 'float32' +}); + +logEachMap( 'acschf(%0.4f) = %0.4f', x, acschf ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/acschf.h" +``` + +#### stdlib_base_acschf( x ) + +> Compute the [hyperbolic arccosecant][inverse-hyperbolic-functions] of a single-precision floating-point number. + +```c +float out = stdlib_base_acschf( 1.0 ); +// returns ~0.881 +``` + +The function accepts the following arguments: + +- **x**: `[in] float` input value. + +```c +float stdlib_base_acschf( const float x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/acschf.h" +#include + +int main( void ) { + const float x[] = { -5.0, -3.89, -2.78, -1.67, -0.55, 0.55, 1.67, 2.78, 3.89, 5.0 }; + + float v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_acschf( x[ i ] ); + printf( "acsch(%f) = %f\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js new file mode 100644 index 000000000000..ba2d2993a11c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js @@ -0,0 +1,50 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2022 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var pkg = require( './../package.json' ).name; +var acschf = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var x; + var i; + + x = f32( 1.234567 ); + i = 0; + + b.tic(); + while ( i < b.iterations ) { + x = acschf( x ); + i += 1; + } + b.toc(); + + if ( x !== x ) { + b.fail( 'unexpected NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.native.js new file mode 100644 index 000000000000..b6738d88401a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.native.js @@ -0,0 +1,59 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var acschf = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( acschf instanceof Error ) +}; + + +// MAIN // + +bench( pkg+'::native', opts, function benchmark( b ) { + var x; + var i; + + x = f32( 1.234567 ); + i = 0; + + b.tic(); + while ( i < b.iterations ) { + x = acschf( x ); + i += 1; + } + b.toc(); + + if ( x !== x ) { + b.fail( 'unexpected NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/Makefile b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/Makefile new file mode 100644 index 000000000000..f69e9da2b4d3 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := benchmark.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/benchmark.c new file mode 100644 index 000000000000..e8f0ccd9c5b8 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/benchmark.c @@ -0,0 +1,137 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/acschf.h" +#include +#include +#include +#include +#include + +#define NAME "acschf" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmark results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec / 1.0e6; +} + +/** +* Generates a random float on the interval [0,1). +* +* @return random float +*/ +static float rand_float( void ) { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + float x[ 100 ]; + double elapsed; + float y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 200.0f * rand_float() ) - 100.0f; + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_acschf( x[ i % 100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + + if ( y != y ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::native::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/REQUIRE b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/REQUIRE new file mode 100644 index 000000000000..98645e192e41 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/REQUIRE @@ -0,0 +1,2 @@ +julia 1.5 +BenchmarkTools 0.5.0 diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/benchmark.jl b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/benchmark.jl new file mode 100755 index 000000000000..e5be3e2e082c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/benchmark.jl @@ -0,0 +1,103 @@ +#!/usr/bin/env julia +# +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import BenchmarkTools +using Printf +using SpecialFunctions: acsch + +# Float32 version (matches stdlib acschf semantics): +acschf(x::Float32) = Float32( acsch( Float64(x) ) ) + +# Benchmark variables: +name = "acschf"; +repeats = 3; + +""" + print_version() + +Prints the TAP version. +""" +function print_version() + @printf( "TAP version 13\n" ); +end + +""" + print_summary( total, passing ) + +Print the benchmark summary. +""" +function print_summary( total, passing ) + @printf( "#\n" ); + @printf( "1..%d\n", total ); + @printf( "# total %d\n", total ); + @printf( "# pass %d\n", passing ); + @printf( "#\n" ); + @printf( "# ok\n" ); +end + +""" + print_results( iterations, elapsed ) + +Print benchmark results. +""" +function print_results( iterations, elapsed ) + rate = iterations / elapsed + + @printf( " ---\n" ); + @printf( " iterations: %d\n", iterations ); + @printf( " elapsed: %0.9f\n", elapsed ); + @printf( " rate: %0.9f\n", rate ); + @printf( " ...\n" ); +end + +""" + benchmark() + +Run a benchmark. +""" +function benchmark() + t = BenchmarkTools.@benchmark acschf( + Float32( (200.0*rand()) - 100.0 ) + ) samples=1e6 + + # Total elapsed time (seconds): + s = sum( t.times ) / 1.0e9; + + # Number of iterations: + iter = length( t.times ); + + [ iter, s ]; +end + +""" + main() + +Run benchmarks. +""" +function main() + print_version(); + for i in 1:repeats + @printf( "# julia::%s\n", name ); + results = benchmark(); + print_results( results[1], results[2] ); + @printf( "ok %d benchmark finished\n", i ); + end + print_summary( repeats, repeats ); +end + +main(); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp b/lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp new file mode 100644 index 000000000000..ec3992233442 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp @@ -0,0 +1,170 @@ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A `.gyp` file for building a Node.js native add-on. +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # List of files to include in this file: + 'includes': [ + './include.gypi', + ], + + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Target name should match the add-on export name: + 'addon_target_name%': 'addon', + + # Set variables based on the host OS: + 'conditions': [ + [ + 'OS=="win"', + { + # Define the object file suffix: + 'obj': 'obj', + }, + { + # Define the object file suffix: + 'obj': 'o', + } + ], # end condition (OS=="win") + ], # end conditions + }, # end variables + + # Define compile targets: + 'targets': [ + + # Target to generate an add-on: + { + # The target name should match the add-on export name: + 'target_name': '<(addon_target_name)', + + # Define dependencies: + 'dependencies': [], + + # Define directories which contain relevant include headers: + 'include_dirs': [ + # Local include directory: + '<@(include_dirs)', + ], + + # List of source files: + 'sources': [ + '<@(src_files)', + ], + + # Settings which should be applied when a target's object files are used as linker input: + 'link_settings': { + # Define libraries: + 'libraries': [ + '<@(libraries)', + ], + + # Define library directories: + 'library_dirs': [ + '<@(library_dirs)', + ], + }, + + # C/C++ compiler flags: + 'cflags': [ + # Enable commonly used warning options: + '-Wall', + + # Aggressive optimization: + '-O3', + ], + + # C specific compiler flags: + 'cflags_c': [ + # Specify the C standard to which a program is expected to conform: + '-std=c99', + ], + + # C++ specific compiler flags: + 'cflags_cpp': [ + # Specify the C++ standard to which a program is expected to conform: + '-std=c++11', + ], + + # Linker flags: + 'ldflags': [], + + # Apply conditions based on the host OS: + 'conditions': [ + [ + 'OS=="mac"', + { + # Linker flags: + 'ldflags': [ + '-undefined dynamic_lookup', + '-Wl,-no-pie', + '-Wl,-search_paths_first', + ], + }, + ], # end condition (OS=="mac") + [ + 'OS!="win"', + { + # C/C++ flags: + 'cflags': [ + # Generate platform-independent code: + '-fPIC', + ], + }, + ], # end condition (OS!="win") + ], # end conditions + }, # end target <(addon_target_name) + + # Target to copy a generated add-on to a standard location: + { + 'target_name': 'copy_addon', + + # Declare that the output of this target is not linked: + 'type': 'none', + + # Define dependencies: + 'dependencies': [ + # Require that the add-on be generated before building this target: + '<(addon_target_name)', + ], + + # Define a list of actions: + 'actions': [ + { + 'action_name': 'copy_addon', + 'message': 'Copying addon...', + + # Explicitly list the inputs in the command-line invocation below: + 'inputs': [], + + # Declare the expected outputs: + 'outputs': [ + '<(addon_output_dir)/<(addon_target_name).node', + ], + + # Define the command-line invocation: + 'action': [ + 'cp', + '<(PRODUCT_DIR)/<(addon_target_name).node', + '<(addon_output_dir)/<(addon_target_name).node', + ], + }, + ], # end actions + }, # end target copy_addon + ], # end targets +} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/acschf/docs/repl.txt new file mode 100644 index 000000000000..e29775029c40 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/docs/repl.txt @@ -0,0 +1,38 @@ +{{alias}}( x ) + Computes the hyperbolic arccosecant of a single-precision floating-point + number. + + The hyperbolic arccosecant is defined as + + acsch(x) = asinh(1/x) + + If `x` is zero, the function returns positive or negative infinity, + depending on the sign of `x`. + + Parameters + ---------- + x: number + Input value. + + Returns + ------- + y: number + Hyperbolic arccosecant. + + Examples + -------- + > var y = {{alias}}( 1.0 ) + ~0.8814 + + > y = {{alias}}( -1.0 ) + ~-0.8814 + + > y = {{alias}}( 0.0 ) + Infinity + + > y = {{alias}}( NaN ) + NaN + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/index.d.ts new file mode 100644 index 000000000000..14056ee4122b --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/index.d.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2022 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Computes the hyperbolic arccosecant of a single-precision floating-point number. +* +* @param x - input value +* @returns hyperbolic arccosecant +* +* @example +* var v = acschf( 0.0 ); +* // returns Infinity +* +* @example +* var v = acschf( -1.0 ); +* // returns ~-0.881 +* +* @example +* var v = acschf( 1.0 ); +* // returns ~0.881 +*/ +declare function acschf( x: number ): number; + + +// EXPORTS // + +export = acschf; diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/test.ts new file mode 100644 index 000000000000..59e7363dd151 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/test.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2022 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import acschf = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + acschf( 8 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + acschf( true ); // $ExpectError + acschf( false ); // $ExpectError + acschf( null ); // $ExpectError + acschf( undefined ); // $ExpectError + acschf( '5' ); // $ExpectError + acschf( [] ); // $ExpectError + acschf( {} ); // $ExpectError + acschf( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + acschf(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/Makefile b/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/Makefile new file mode 100644 index 000000000000..6aed70daf167 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := example.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled examples. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/example.c new file mode 100644 index 000000000000..810707091c6f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/example.c @@ -0,0 +1,31 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/acschf.h" +#include + +int main( void ) { + const float x[] = { -5.0f, -3.89f, -2.78f, -1.67f, -0.55f, 0.55f, 1.67f, 2.78f, 3.89f, 5.0f }; + + float v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_acschf( x[ i ] ); + printf( "acschf(%f) = %f\n", x[ i ], v ); + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/examples/index.js b/lib/node_modules/@stdlib/math/base/special/acschf/examples/index.js new file mode 100644 index 000000000000..317448161f82 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/examples/index.js @@ -0,0 +1,29 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2022 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var acschf = require( './../lib' ); + +var x = uniform( 100, 1.0, 5.0, { + 'dtype': 'float32' +}); + +logEachMap( 'acschf(%0.4f) = %0.4f', x, acschf ); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/include.gypi b/lib/node_modules/@stdlib/math/base/special/acschf/include.gypi new file mode 100644 index 000000000000..575cb043c0bf --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A GYP include file for building a Node.js native add-on. +# +# Main documentation: +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Source directory: + 'src_dir': './src', + + # Include directories: + 'include_dirs': [ + '=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "acschf", + "hyperbolic", + "inverse", + "cosecant", + "csc", + "arc", + "arccosecant", + "trig", + "trigonometry", + "angle" + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "acsch", + "alias": "acschf", + "pkg_desc": "compute the hyperbolic arccosecant of a single-precision floating-point number", + "desc": "computes the hyperbolic arccosecant of a single-precision floating-point number", + "short_desc": "hyperbolic arccosecant", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + 0.5, + 5 + ] + }, + "example_values": [ + -5, + -3.7, + -2.9, + -2.1, + -1.7, + -1.3, + -1.1, + -0.7, + -0.51, + -0.25, + 0.25, + 0.51, + 0.7, + 1.1, + 1.3, + 1.7, + 2.1, + 2.9, + 3.7, + 5 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "hyperbolic arccosecant", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "acsch", + "hyperbolic", + "inverse", + "cosecant", + "csc", + "arc", + "arccosecant", + "angle", + "asinh" + ], + "extra_keywords": [ + "math.asinh" + ] + } + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile b/lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile new file mode 100644 index 000000000000..bcf18aa46655 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile @@ -0,0 +1,70 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + + +# RULES # + +#/ +# Removes generated files for building an add-on. +# +# @example +# make clean-addon +#/ +clean-addon: + $(QUIET) -rm -f *.o *.node + +.PHONY: clean-addon + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: clean-addon + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c b/lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c new file mode 100644 index 000000000000..6a37b431f3fc --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c @@ -0,0 +1,22 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/acschf.h" +#include "stdlib/math/base/napi/unary.h" + +STDLIB_MATH_BASE_NAPI_MODULE_F_F( stdlib_base_acschf ) diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/src/main.c b/lib/node_modules/@stdlib/math/base/special/acschf/src/main.c new file mode 100644 index 000000000000..d774b378ce0f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/src/main.c @@ -0,0 +1,34 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/acschf.h" +#include "stdlib/math/base/special/asinhf.h" + +/** +* Computes the hyperbolic arccosecant of a single-precision floating-point number. +* +* @param x input value +* @return output value +* +* @example +* float out = stdlib_base_acschf( 1.0f ); +* // returns ~0.881f +*/ +float stdlib_base_acschf( const float x ) { + return stdlib_base_asinhf( 1.0f / x ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000000..308c3be89c85 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/REQUIRE @@ -0,0 +1,2 @@ +julia 1.5 +JSON 0.21 diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/huge_negative.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/huge_negative.json new file mode 100644 index 000000000000..ada599e16e22 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/huge_negative.json @@ -0,0 +1 @@ +{"expected":[-1.0e-200,-5.019974849926002e-206,-2.509993725015688e-206,-1.6733305500268516e-206,-1.2549984375269452e-206,-1.003999002024992e-206,-8.36665975022794e-207,-7.171423500207668e-207,-6.274996125189893e-207,-5.5777747223967364e-207,-5.0199975301612156e-207,-4.563634326595951e-207,-4.1833316251395865e-207,-3.8615370090064635e-207,-3.58571303583717e-207,-3.3466655801159086e-207,-3.1374990469846644e-207,-2.9529403340140812e-207,-2.7888881389878562e-207,-2.642104591507096e-207,-2.5099993950901458e-207,-2.3904756429434362e-207,-2.281817683967051e-207,-2.1826082411002838e-207,-2.091666250076472e-207,-2.0079996168736732e-207,-1.9307688772900055e-207,-1.85925893216741e-207,-1.7928568393520922e-207,-1.7310342004209735e-207,-1.6733330700622636e-207,-1.619354592672254e-207,-1.5687497695898776e-207,-1.5212119050156414e-207,-1.4764703850034883e-207,-1.4342855229110461e-207,-1.3944442639413815e-207,-1.3567565862454559e-207,-1.3210524702714879e-207,-1.287179334368197e-207,-1.2549998550475168e-207,-1.2243901062332101e-207,-1.1952379643310801e-207,-1.1674417358474984e-207,-1.1409089721508387e-207,-1.1155554422647029e-207,-1.0913042396446232e-207,-1.0680850029832605e-207,-1.04583323441494e-207,-1.0244897012053398e-207,-1.0039999092384082e-207,-9.8431363844599e-208,-9.653845318417232e-208,-9.471697310793945e-208,-9.296295525048076e-208,-9.127271985474441e-208,-8.964285000344445e-208,-8.807016856294298e-208,-8.655171751224783e-208,-8.508473937414584e-208,-8.366666050322268e-208,-8.229507601768385e-208,-8.096773618938647e-208,-7.968253413005834e-208,-7.843749463193396e-208,-7.723076403848556e-208,-7.606060103599666e-208,-7.492536826977087e-208,-7.382352470008681e-208,-7.275361862285264e-208,-7.171428128849008e-208,-7.07042210600677e-208,-6.972221805825642e-208,-6.876711924642546e-208,-6.7837833914244195e-208,-6.693332952259577e-208,-6.605262787652375e-208,-6.519480159639082e-208,-6.435897086048672e-208,-6.354430039503303e-208,-6.274999668993768e-208,-6.197530542078969e-208,-6.1219509059488565e-208,-6.048192465759923e-208,-5.976190178803869e-208,-5.90588206320555e-208,-5.837209019967563e-208,-5.770114667287634e-208,-5.704545186172533e-208,-5.640449176460055e-208,-5.577777522439518e-208,-5.516483267332459e-208,-5.456521495959368e-208,-5.397849224976309e-208,-5.340425300117711e-208,-5.284210299929096e-208,-5.229166445516502e-208,-5.175257515878423e-208,-5.122448768421499e-208,-5.070706864293447e-208,-5.019999798196008e-208,-4.970296832367423e-208,-4.921568434448297e-208,-4.8737862189669224e-208,-4.826922892200451e-208,-4.780952200186855e-208,-4.7358488796796086e-208,-4.691588611852571e-208,-4.648147978576824e-208,-4.60550442110429e-208,-4.563636201004964e-208,-4.522522363215654e-208,-4.482142701068245e-208,-4.442477723174882e-208,-4.403508622056022e-208,-4.365217244405298e-208,-4.3275860628923946e-208,-4.290598149411941e-208,-4.254237149692622e-208,-4.218487259186503e-208,-4.183333200163893e-208,-4.1487601999439965e-208,-4.114753970196188e-208,-4.0813006872509785e-208,-4.048386973363687e-208,-4.015999878877444e-208,-3.9841268652355795e-208,-3.952755788796581e-208,-3.921874885407718e-208,-3.8914727556961756e-208,-3.8615383510390566e-208,-3.832060960175984e-208,-3.8030301964302143e-208,-3.77443598550625e-208,-3.746268553833819e-208,-3.718518417429907e-208,-3.6911763712521655e-208,-3.6642334790185974e-208,-3.637681063469862e-208,-3.6115106970519154e-208,-3.5857141929979613e-208,-3.560283596789902e-208,-3.5352111779805616e-208,-3.5104894223590417e-208,-3.4861110244425173e-208,-3.462068880278718e-208,-3.438356080544194e-208,-3.4149659039242926e-208,-3.3918918107615066e-208,-3.3691274369595984e-208,-3.3466665881315573e-208,-3.3245032339800905e-208,-3.3026315028999326e-208,-3.281045676791834e-208,-3.2597401860785986e-208,-3.2387096049140495e-208,-3.2179486465762673e-208,-3.1974521590368795e-208,-3.1772151206986077e-208,-3.157232636293661e-208,-3.1374999329359393e-208,-3.1180123563203596e-208,-3.0987653670629493e-208,-3.0797545371756573e-208,-3.0609755466701383e-208,-3.0424241802850332e-208,-3.024096324331544e-208,-3.005987963652337e-208,-2.98809517868906e-208,-2.9704141426539696e-208,-2.952941118801385e-208,-2.9356724577948783e-208,-2.918604595166307e-208,-2.9017340488629767e-208,-2.8850574168793775e-208,-2.8685713749701234e-208,-2.8522726744408582e-208,-2.8361581400140456e-208,-2.820224667766697e-208,-2.8044692231372315e-208,-2.7888888389987665e-208,-2.7734806137962833e-208,-2.7582417097452006e-208,-2.7431693510890154e-208,-2.7282608224137533e-208,-2.7135134670170936e-208,-2.698924685330097e-208,-2.6844919333895745e-208,-2.6702127213592132e-208,-2.6560846120976465e-208,-2.6421052197717457e-208,-2.6282722085134735e-208,-2.614583291118707e-208,-2.6010362277865185e-208,-2.587628824897439e-208,-2.5743589338293235e-208,-2.561224449809455e-208,-2.5482233108016187e-208,-2.5353534964268957e-208,-2.5226130269169975e-208,-2.5099999620990004e-208,-2.4975124004103865e-208,-2.4851484779433395e-208,-2.4729063675172906e-208,-2.4607842777787394e-208,-2.4487804523274247e-208,-2.436893168867943e-208,-2.425120738385961e-208,-2.4134615043481884e-208,-2.4019138419253227e-208,-2.3904761572371887e-208,-2.379146886619349e-208,-2.367924495910467e-208,-2.3568074797597483e-208,-2.3457943609537956e-208,-2.33488368976225e-208,-2.324074043301612e-208,-2.3133640249166475e-208,-2.3027522635788237e-208,-2.2922374133012244e-208,-2.2818181525694216e-208,-2.2714931837878014e-208,-2.261261232740849e-208,-2.2511210480689338e-208,-2.2410714007581317e-208,-2.2311110836436547e-208,-2.221238910926463e-208,-2.2114537177026534e-208,-2.2017543595052328e-208,-2.192139711857898e-208,-2.182608669840454e-208,-2.173160147665524e-208,-2.1637930782662015e-208,-2.1545064128943253e-208,-2.1452991207290528e-208,-2.1361701884954283e-208,-2.1271186200926463e-208,-2.1181434362317296e-208,-2.1092436740823393e-208,-2.1004183869284506e-208,-2.091666643832639e-208,-2.0829875293087243e-208,-2.0743801430025273e-208,-2.0658435993805146e-208,-2.0573770274260955e-208,-2.048979570343357e-208,-2.0406503852680287e-208,-2.0323886429854614e-208,-2.0241935276554375e-208,-2.0160642365436046e-208,-2.00799997975936e-208,-1.99999998e-208,-1.9920634723009578e-208,-1.984189703791967e-208,-1.976377933458987e-208,-1.9686274319117264e-208,-1.9609374811566166e-208,-1.9533073743750855e-208,-1.945736415706989e-208,-1.9382239200390575e-208,-1.9307692127982252e-208,-1.9233716297497104e-208,-1.9160305167997206e-208,-1.9087452298026575e-208,-1.9015151343727046e-208,-1.8943396056996799e-208,-1.8872180283690431e-208,-1.8801497961859477e-208,-1.8731343120032303e-208,-1.8661709875532403e-208,-1.8592592432834023e-208,-1.8523985081954225e-208,-1.845588219688041e-208,-1.8388278234032393e-208,-1.8321167730758168e-208,-1.8254545303862484e-208,-1.8188405648167406e-208,-1.8122743535104067e-208,-1.8057553811334816e-208,-1.7992831397404967e-208,-1.7928571286423468e-208,-1.7864768542771747e-208,-1.7801418300839998e-208,-1.7738515763790282e-208,-1.7676056202345766e-208,-1.7614034953605416e-208,-1.7552447419883613e-208,-1.7491289067573966e-208,-1.7430555426036844e-208,-1.737024208650998e-208,-1.7310344701041617e-208,-1.7250858981445661e-208,-1.719178069827829e-208,-1.7133105679835526e-208,-1.7074829811171271e-208,-1.7016949033135306e-208,-1.695945934143079e-208,-1.6902356785690802e-208,-1.6845637468573488e-208,-1.6789297544875337e-208,-1.6733333220662223e-208,-1.6677740752417744e-208,-1.66225164462085e-208,-1.6567656656865886e-208,-1.651315778718404e-208,-1.6459016287133568e-208,-1.6405228653090692e-208,-1.6351791427081457e-208,-1.6298701196040649e-208,-1.6245954591085138e-208,-1.619354828680125e-208,-1.6141479000545902e-208,-1.6089743491761178e-208,-1.6038338561302046e-208,-1.5987261050776909e-208,-1.5936507841900732e-208,-1.5886075855860441e-208,-1.5835962052692336e-208,-1.5786163430671257e-208,-1.5736677025711226e-208,-1.5687499910777346e-208,-1.5638629195308666e-208,-1.5590062024651828e-208,-1.554179557950522e-208,-1.549382707537342e-208,-1.5446153762031718e-208,-1.539877292300049e-208,-1.5351681875029224e-208,-1.5304877967589976e-208,-1.5258358582380058e-208,-1.5212121132833792e-208,-1.5166163063643084e-208,-1.5120481850286688e-208,-1.5075074998567936e-208,-1.502994004416078e-208,-1.4985074552163957e-208,-1.4940476116663124e-208,-1.4896142360300787e-208,-1.4852070933853856e-208,-1.4808259515818692e-208,-1.4764705812003461e-208,-1.4721407555127666e-208,-1.4678362504428714e-208,-1.4635568445275353e-208,-1.459302318878786e-208,-1.455072457146482e-208,-1.4508670454816398e-208,-1.4466858725003944e-208,-1.4425287292485799e-208,-1.43839540916692e-208,-1.4342857080568164e-208,-1.4301994240467204e-208,-1.426136357559078e-208,-1.4220963112778372e-208,-1.4180790901165055e-208,-1.4140845011867488e-208,-1.4101123537675169e-208,-1.4061624592746903e-208,-1.4022346312312351e-208,-1.3983286852378551e-208,-1.3944444389441359e-208,-1.3905817120201658e-208,-1.3867403261286286e-208,-1.3829201048973583e-208,-1.379120873892344e-208,-1.3753424605911804e-208,-1.371584694356953e-208,-1.3678474064125506e-208,-1.3641304298153947e-208,-1.3604335994325837e-208,-1.3567567519164355e-208,-1.3530997256804297e-208,-1.3494623608755348e-208,-1.3458444993669186e-208,-1.34224598471103e-208,-1.338666662133049e-208,-1.335106378504697e-208,-1.331564982322397e-208,-1.328042323685787e-208,-1.3245382542765644e-208,-1.3210526273376732e-208,-1.317585297652813e-208,-1.314136121526274e-208,-1.3107049567630839e-208,-1.3072916626494683e-208,-1.3038960999336144e-208,-1.300518130806733e-208,-1.2971576188844153e-208,-1.2938144291882772e-208,-1.290488428127887e-208,-1.2871794834829718e-208,-1.2838874643858948e-208,-1.2806122413044044e-208,-1.2773536860246424e-208,-1.2741116716344147e-208,-1.2708860725067136e-208,-1.2676767642834915e-208,-1.264483623859678e-208,-1.2613065293674402e-208,-1.2581453601606774e-208,-1.25499999679975e-208,-1.2518703210364363e-208,-1.248756215799114e-208,-1.2456575651781613e-208,-1.2425742544115774e-208,-1.2395061698708123e-208,-1.2364531990468102e-208,-1.2334152305362544e-208,-1.230392154028018e-208,-1.2273838602898118e-208,-1.2243902411550268e-208,-1.221411189509771e-208,-1.2184465992800925e-208,-1.2154963654193905e-208,-1.212560383896007e-208,-1.2096385516809988e-208,-1.2067307667360855e-208,-1.2038369280017714e-208,-1.2009569353856369e-208,-1.198090689750799e-208,-1.1952380929045352e-208,-1.1923990475870708e-208,-1.1895734574605244e-208,-1.186761227098011e-208,-1.1839622619728996e-208,-1.1811764684482216e-208,-1.1784037537662282e-208,-1.175644026038096e-208,-1.1728971942337758e-208,-1.1701631681719833e-208,-1.16744185851033e-208,-1.1647331767355904e-208,-1.1620370351541067e-208,-1.1593533468823236e-208,-1.1566820258374567e-208,-1.1540229867282864e-208,-1.151376145046082e-208,-1.1487414170556478e-208,-1.1461187197864932e-208,-1.143507971024123e-208,-1.1409090893014463e-208,-1.1383219938903028e-208,-1.1357466047931041e-208,-1.1331828427345871e-208,-1.1306306291536808e-208,-1.1280898861954804e-208,-1.125560536703332e-208,-1.1230425042110215e-208,-1.1205357129350686e-208,-1.1180400877671242e-208,-1.1155555542664692e-208,-1.1130820386526123e-208,-1.1106194677979874e-208,-1.1081677692207456e-208,-1.1057268710776457e-208,-1.1032967021570342e-208,-1.100877191871922e-208,-1.0984682702531494e-208,-1.0960698679426404e-208,-1.0936819161867468e-208,-1.0913043468296786e-208,-1.088937092307019e-208,-1.0865800856393246e-208,-1.084233260425808e-208,-1.081896550838102e-208,-1.0795698916141057e-208,-1.0772532180519074e-208,-1.0749464660037874e-208,-1.0726495718702974e-208,-1.0703624725944146e-208,-1.0680851056557719e-208,-1.065817409064961e-208,-1.0635593213579073e-208,-1.061310781590317e-208,-1.059071729332194e-208,-1.0568421046624266e-208,-1.0546218481634418e-208,-1.0524109009159271e-208,-1.0502092044936188e-208,-1.0480167009581548e-208,-1.045833332853993e-208,-1.043659043203392e-208,-1.0414937755014549e-208,-1.0393374737112336e-208,-1.0371900822588962e-208,-1.035051546028951e-208,-1.032921810359532e-208,-1.030800821037741e-208,-1.0286885242950484e-208,-1.0265848668027484e-208,-1.0244897956674718e-208,-1.0224032584267528e-208,-1.0203252030446493e-208,-1.0182555779074177e-208,-1.0161943318192398e-208,-1.0141414139980003e-208,-1.0120967740711173e-208,-1.0100603620714225e-208,-1.0080321284330898e-208,-1.0060120239876146e-208,-1.00399999995984e-208,-1.001996007964032e-208,-1.0e-208],"x":[-1.0e200,-1.9920418525896414e205,-3.9840737051792828e205,-5.9761055577689245e205,-7.9681374103585654e205,-9.960169262948207e205,-1.1952201115537848e206,-1.3944232968127489e206,-1.5936264820717132e206,-1.792829667330677e206,-1.9920328525896414e206,-2.1912360378486056e206,-2.3904392231075695e206,-2.5896424083665338e206,-2.788845593625498e206,-2.988048778884462e206,-3.1872519641434262e206,-3.3864551494023905e206,-3.5856583346613544e206,-3.784861519920318e206,-3.984064705179283e206,-4.183267890438247e206,-4.382471075697211e206,-4.5816742609561754e206,-4.780877446215139e206,-4.980080631474103e206,-5.179283816733068e206,-5.378487001992032e206,-5.577690187250996e206,-5.77689337250996e206,-5.976096557768924e206,-6.175299743027888e206,-6.374502928286853e206,-6.573706113545817e206,-6.77290929880478e206,-6.972112484063744e206,-7.171315669322708e206,-7.370518854581674e206,-7.569722039840638e206,-7.768925225099602e206,-7.968128410358565e206,-8.16733159561753e206,-8.366534780876493e206,-8.565737966135459e206,-8.764941151394423e206,-8.964144336653386e206,-9.16334752191235e206,-9.362550707171314e206,-9.561753892430278e206,-9.760957077689244e206,-9.960160262948207e206,-1.0159363448207171e207,-1.0358566633466135e207,-1.0557769818725099e207,-1.0756973003984063e207,-1.0956176189243027e207,-1.1155379374501992e207,-1.1354582559760956e207,-1.155378574501992e207,-1.1752988930278884e207,-1.1952192115537848e207,-1.2151395300796812e207,-1.2350598486055777e207,-1.2549801671314741e207,-1.2749004856573705e207,-1.294820804183267e207,-1.3147411227091633e207,-1.3346614412350597e207,-1.354581759760956e207,-1.3745020782868525e207,-1.3944223968127489e207,-1.4143427153386455e207,-1.434263033864542e207,-1.4541833523904383e207,-1.4741036709163347e207,-1.494023989442231e207,-1.5139443079681275e207,-1.533864626494024e207,-1.5537849450199203e207,-1.5737052635458167e207,-1.593625582071713e207,-1.6135459005976094e207,-1.6334662191235058e207,-1.6533865376494022e207,-1.673306856175299e207,-1.6932271747011953e207,-1.7131474932270917e207,-1.733067811752988e207,-1.7529881302788845e207,-1.7729084488047809e207,-1.7928287673306772e207,-1.8127490858565736e207,-1.83266940438247e207,-1.8525897229083664e207,-1.8725100414342628e207,-1.8924303599601592e207,-1.912350678486056e207,-1.9322709970119523e207,-1.9521913155378487e207,-1.972111634063745e207,-1.9920319525896414e207,-2.0119522711155378e207,-2.0318725896414342e207,-2.0517929081673306e207,-2.071713226693227e207,-2.0916335452191234e207,-2.1115538637450198e207,-2.1314741822709162e207,-2.1513945007968126e207,-2.1713148193227092e207,-2.1912351378486056e207,-2.211155456374502e207,-2.2310757749003984e207,-2.2509960934262948e207,-2.2709164119521912e207,-2.2908367304780876e207,-2.310757049003984e207,-2.3306773675298804e207,-2.3505976860557768e207,-2.3705180045816732e207,-2.3904383231075696e207,-2.4103586416334662e207,-2.4302789601593626e207,-2.450199278685259e207,-2.4701195972111554e207,-2.4900399157370518e207,-2.5099602342629482e207,-2.5298805527888446e207,-2.549800871314741e207,-2.5697211898406374e207,-2.589641508366534e207,-2.60956182689243e207,-2.6294821454183265e207,-2.649402463944223e207,-2.6693227824701193e207,-2.6892431009960157e207,-2.709163419521912e207,-2.7290837380478085e207,-2.749004056573705e207,-2.768924375099601e207,-2.788844693625498e207,-2.8087650121513946e207,-2.828685330677291e207,-2.8486056492031874e207,-2.868525967729084e207,-2.88844628625498e207,-2.9083666047808766e207,-2.928286923306773e207,-2.9482072418326694e207,-2.968127560358566e207,-2.988047878884462e207,-3.0079681974103585e207,-3.027888515936255e207,-3.0478088344621513e207,-3.0677291529880477e207,-3.087649471513944e207,-3.1075697900398405e207,-3.127490108565737e207,-3.147410427091633e207,-3.1673307456175297e207,-3.187251064143426e207,-3.2071713826693224e207,-3.227091701195219e207,-3.247012019721115e207,-3.2669323382470116e207,-3.2868526567729086e207,-3.306772975298805e207,-3.3266932938247014e207,-3.346613612350598e207,-3.366533930876494e207,-3.3864542494023905e207,-3.406374567928287e207,-3.4262948864541833e207,-3.4462152049800797e207,-3.466135523505976e207,-3.4860558420318725e207,-3.505976160557769e207,-3.525896479083665e207,-3.5458167976095617e207,-3.565737116135458e207,-3.5856574346613544e207,-3.605577753187251e207,-3.625498071713147e207,-3.6454183902390436e207,-3.66533870876494e207,-3.6852590272908364e207,-3.705179345816733e207,-3.725099664342629e207,-3.7450199828685256e207,-3.764940301394422e207,-3.784860619920319e207,-3.8047809384462153e207,-3.8247012569721117e207,-3.844621575498008e207,-3.8645418940239045e207,-3.884462212549801e207,-3.904382531075697e207,-3.9243028496015937e207,-3.94422316812749e207,-3.9641434866533865e207,-3.984063805179283e207,-4.003984123705179e207,-4.0239044422310756e207,-4.043824760756972e207,-4.0637450792828684e207,-4.083665397808765e207,-4.103585716334661e207,-4.1235060348605576e207,-4.143426353386454e207,-4.1633466719123504e207,-4.183266990438247e207,-4.203187308964143e207,-4.2231076274900395e207,-4.243027946015936e207,-4.2629482645418323e207,-4.282868583067729e207,-4.3027889015936257e207,-4.322709220119522e207,-4.3426295386454185e207,-4.362549857171315e207,-4.382470175697211e207,-4.4023904942231076e207,-4.422310812749004e207,-4.4422311312749004e207,-4.462151449800797e207,-4.482071768326693e207,-4.5019920868525896e207,-4.521912405378486e207,-4.5418327239043824e207,-4.561753042430279e207,-4.581673360956175e207,-4.6015936794820715e207,-4.621513998007968e207,-4.6414343165338643e207,-4.6613546350597607e207,-4.681274953585657e207,-4.7011952721115535e207,-4.72111559063745e207,-4.741035909163346e207,-4.7609562276892427e207,-4.7808765462151396e207,-4.800796864741036e207,-4.8207171832669324e207,-4.840637501792829e207,-4.860557820318725e207,-4.8804781388446216e207,-4.900398457370518e207,-4.9203187758964144e207,-4.940239094422311e207,-4.960159412948207e207,-4.9800797314741035e207,-5.00000005e207,-5.0199203685258963e207,-5.0398406870517927e207,-5.059761005577689e207,-5.0796813241035855e207,-5.099601642629482e207,-5.119521961155378e207,-5.139442279681275e207,-5.159362598207171e207,-5.179282916733067e207,-5.199203235258964e207,-5.21912355378486e207,-5.239043872310757e207,-5.258964190836653e207,-5.278884509362549e207,-5.298804827888446e207,-5.318725146414342e207,-5.338645464940239e207,-5.358565783466135e207,-5.378486101992031e207,-5.398406420517928e207,-5.418326739043824e207,-5.43824705756972e207,-5.458167376095617e207,-5.478087694621513e207,-5.49800801314741e207,-5.517928331673307e207,-5.537848650199204e207,-5.5577689687251e207,-5.577689287250996e207,-5.597609605776893e207,-5.617529924302789e207,-5.637450242828686e207,-5.657370561354582e207,-5.677290879880478e207,-5.697211198406375e207,-5.717131516932271e207,-5.737051835458168e207,-5.756972153984064e207,-5.77689247250996e207,-5.796812791035857e207,-5.816733109561753e207,-5.83665342808765e207,-5.856573746613546e207,-5.876494065139442e207,-5.896414383665339e207,-5.916334702191235e207,-5.936255020717131e207,-5.956175339243028e207,-5.976095657768924e207,-5.996015976294821e207,-6.015936294820717e207,-6.035856613346613e207,-6.05577693187251e207,-6.075697250398406e207,-6.095617568924303e207,-6.115537887450199e207,-6.135458205976095e207,-6.155378524501992e207,-6.175298843027888e207,-6.195219161553785e207,-6.215139480079681e207,-6.235059798605577e207,-6.254980117131474e207,-6.27490043565737e207,-6.294820754183266e207,-6.314741072709163e207,-6.334661391235059e207,-6.354581709760956e207,-6.374502028286852e207,-6.394422346812748e207,-6.414342665338645e207,-6.434262983864541e207,-6.454183302390438e207,-6.474103620916334e207,-6.49402393944223e207,-6.513944257968128e207,-6.533864576494024e207,-6.553784895019921e207,-6.573705213545817e207,-6.593625532071714e207,-6.61354585059761e207,-6.633466169123506e207,-6.653386487649403e207,-6.673306806175299e207,-6.693227124701195e207,-6.713147443227092e207,-6.733067761752988e207,-6.752988080278885e207,-6.772908398804781e207,-6.792828717330677e207,-6.812749035856574e207,-6.83266935438247e207,-6.852589672908367e207,-6.872509991434263e207,-6.892430309960159e207,-6.912350628486056e207,-6.932270947011952e207,-6.952191265537849e207,-6.972111584063745e207,-6.992031902589641e207,-7.011952221115538e207,-7.031872539641434e207,-7.05179285816733e207,-7.071713176693227e207,-7.091633495219123e207,-7.11155381374502e207,-7.131474132270916e207,-7.151394450796812e207,-7.171314769322709e207,-7.191235087848605e207,-7.211155406374502e207,-7.231075724900398e207,-7.250996043426294e207,-7.270916361952191e207,-7.290836680478087e207,-7.310756999003984e207,-7.33067731752988e207,-7.350597636055776e207,-7.370517954581673e207,-7.390438273107569e207,-7.410358591633466e207,-7.430278910159362e207,-7.450199228685258e207,-7.470119547211155e207,-7.490039865737051e207,-7.509960184262949e207,-7.529880502788845e207,-7.549800821314741e207,-7.569721139840638e207,-7.589641458366534e207,-7.609561776892431e207,-7.629482095418327e207,-7.649402413944223e207,-7.66932273247012e207,-7.689243050996016e207,-7.709163369521913e207,-7.729083688047809e207,-7.749004006573705e207,-7.768924325099602e207,-7.788844643625498e207,-7.808764962151395e207,-7.828685280677291e207,-7.848605599203187e207,-7.868525917729084e207,-7.88844623625498e207,-7.908366554780876e207,-7.928286873306773e207,-7.948207191832669e207,-7.968127510358566e207,-7.988047828884462e207,-8.007968147410358e207,-8.027888465936255e207,-8.047808784462151e207,-8.067729102988048e207,-8.087649421513944e207,-8.10756974003984e207,-8.127490058565737e207,-8.147410377091633e207,-8.16733069561753e207,-8.187251014143426e207,-8.207171332669322e207,-8.227091651195219e207,-8.247011969721115e207,-8.266932288247012e207,-8.286852606772908e207,-8.306772925298804e207,-8.326693243824701e207,-8.346613562350597e207,-8.366533880876493e207,-8.38645419940239e207,-8.406374517928286e207,-8.426294836454183e207,-8.446215154980079e207,-8.466135473505975e207,-8.486055792031872e207,-8.505976110557769e207,-8.525896429083666e207,-8.545816747609562e207,-8.565737066135459e207,-8.585657384661355e207,-8.605577703187251e207,-8.625498021713148e207,-8.645418340239044e207,-8.66533865876494e207,-8.685258977290837e207,-8.705179295816733e207,-8.72509961434263e207,-8.745019932868526e207,-8.764940251394422e207,-8.784860569920319e207,-8.804780888446215e207,-8.824701206972112e207,-8.844621525498008e207,-8.864541844023904e207,-8.884462162549801e207,-8.904382481075697e207,-8.924302799601594e207,-8.94422311812749e207,-8.964143436653386e207,-8.984063755179283e207,-9.003984073705179e207,-9.023904392231076e207,-9.043824710756972e207,-9.063745029282868e207,-9.083665347808765e207,-9.103585666334661e207,-9.123505984860557e207,-9.143426303386454e207,-9.16334662191235e207,-9.183266940438247e207,-9.203187258964143e207,-9.223107577490039e207,-9.243027896015936e207,-9.262948214541832e207,-9.282868533067729e207,-9.302788851593625e207,-9.322709170119521e207,-9.342629488645418e207,-9.362549807171314e207,-9.38247012569721e207,-9.402390444223107e207,-9.422310762749003e207,-9.4422310812749e207,-9.462151399800796e207,-9.482071718326693e207,-9.50199203685259e207,-9.521912355378486e207,-9.541832673904383e207,-9.561752992430279e207,-9.581673310956176e207,-9.601593629482072e207,-9.621513948007968e207,-9.641434266533865e207,-9.661354585059761e207,-9.681274903585658e207,-9.701195222111554e207,-9.72111554063745e207,-9.741035859163347e207,-9.760956177689243e207,-9.78087649621514e207,-9.800796814741036e207,-9.820717133266932e207,-9.840637451792829e207,-9.860557770318725e207,-9.880478088844621e207,-9.900398407370518e207,-9.920318725896414e207,-9.940239044422311e207,-9.960159362948207e207,-9.980079681474103e207,-1.0e208]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/huge_positive.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/huge_positive.json new file mode 100644 index 000000000000..d408d2259c5a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/huge_positive.json @@ -0,0 +1 @@ +{"expected":[1.0e-300,5.0199748499260014e-306,2.5099937250156875e-306,1.6733305500268516e-306,1.2549984375269454e-306,1.003999002024992e-306,8.366659750227939e-307,7.171423500207668e-307,6.2749961251898935e-307,5.5777747223967356e-307,5.0199975301612154e-307,4.563634326595951e-307,4.183331625139586e-307,3.861537009006463e-307,3.585713035837171e-307,3.346665580115908e-307,3.1374990469846647e-307,2.952940334014081e-307,2.788888138987856e-307,2.642104591507096e-307,2.5099993950901456e-307,2.3904756429434363e-307,2.2818176839670507e-307,2.1826082411002836e-307,2.0916662500764718e-307,2.007999616873673e-307,1.9307688772900056e-307,1.85925893216741e-307,1.7928568393520923e-307,1.7310342004209736e-307,1.6733330700622637e-307,1.6193545926722538e-307,1.5687497695898777e-307,1.5212119050156414e-307,1.4764703850034881e-307,1.4342855229110458e-307,1.3944442639413815e-307,1.356756586245456e-307,1.3210524702714877e-307,1.287179334368197e-307,1.2549998550475168e-307,1.22439010623321e-307,1.1952379643310803e-307,1.1674417358474985e-307,1.1409089721508388e-307,1.1155554422647027e-307,1.0913042396446232e-307,1.0680850029832604e-307,1.04583323441494e-307,1.0244897012053398e-307,1.0039999092384082e-307,9.8431363844599e-308,9.653845318417233e-308,9.471697310793945e-308,9.296295525048074e-308,9.12727198547444e-308,8.964285000344444e-308,8.807016856294298e-308,8.655171751224784e-308,8.508473937414583e-308,8.366666050322267e-308,8.229507601768385e-308,8.096773618938646e-308,7.968253413005834e-308,7.843749463193397e-308,7.723076403848555e-308,7.606060103599666e-308,7.492536826977087e-308,7.382352470008681e-308,7.275361862285263e-308,7.171428128849006e-308,7.070422106006771e-308,6.972221805825643e-308,6.876711924642545e-308,6.78378339142442e-308,6.693332952259577e-308,6.605262787652375e-308,6.519480159639082e-308,6.435897086048671e-308,6.354430039503302e-308,6.274999668993767e-308,6.197530542078968e-308,6.121950905948856e-308,6.048192465759922e-308,5.97619017880387e-308,5.90588206320555e-308,5.837209019967564e-308,5.770114667287633e-308,5.704545186172533e-308,5.640449176460055e-308,5.577777522439517e-308,5.516483267332459e-308,5.456521495959369e-308,5.397849224976308e-308,5.340425300117711e-308,5.284210299929095e-308,5.229166445516502e-308,5.175257515878424e-308,5.1224487684215e-308,5.070706864293448e-308,5.019999798196008e-308,4.970296832367423e-308,4.921568434448296e-308,4.873786218966922e-308,4.826922892200451e-308,4.780952200186855e-308,4.735848879679608e-308,4.69158861185257e-308,4.648147978576823e-308,4.60550442110429e-308,4.563636201004964e-308,4.522522363215654e-308,4.482142701068245e-308,4.4424777231748815e-308,4.4035086220560225e-308,4.365217244405298e-308,4.327586062892395e-308,4.2905981494119407e-308,4.254237149692621e-308,4.218487259186502e-308,4.183333200163893e-308,4.1487601999439974e-308,4.114753970196188e-308,4.081300687250978e-308,4.0483869733636873e-308,4.0159998788774436e-308,3.984126865235579e-308,3.952755788796581e-308,3.9218748854077183e-308,3.891472755696175e-308,3.861538351039056e-308,3.832060960175983e-308,3.8030301964302143e-308,3.77443598550625e-308,3.746268553833819e-308,3.7185184174299063e-308,3.6911763712521654e-308,3.664233479018597e-308,3.637681063469862e-308,3.6115106970519153e-308,3.585714192997961e-308,3.560283596789902e-308,3.5352111779805616e-308,3.5104894223590417e-308,3.486111024442518e-308,3.462068880278718e-308,3.4383560805441937e-308,3.414965903924293e-308,3.391891810761507e-308,3.3691274369595983e-308,3.3466665881315576e-308,3.3245032339800904e-308,3.3026315028999325e-308,3.2810456767918336e-308,3.2597401860785983e-308,3.23870960491405e-308,3.217948646576267e-308,3.197452159036879e-308,3.1772151206986073e-308,3.1572326362936607e-308,3.137499932935939e-308,3.1180123563203597e-308,3.098765367062949e-308,3.079754537175657e-308,3.060975546670138e-308,3.0424241802850334e-308,3.0240963243315443e-308,3.0059879636523373e-308,2.9880951786890605e-308,2.97041414265397e-308,2.9529411188013853e-308,2.9356724577948783e-308,2.9186045951663073e-308,2.901734048862977e-308,2.8850574168793774e-308,2.8685713749701233e-308,2.852272674440858e-308,2.8361581400140456e-308,2.8202246677666973e-308,2.804469223137231e-308,2.788888838998766e-308,2.773480613796283e-308,2.7582417097452005e-308,2.743169351089015e-308,2.7282608224137534e-308,2.713513467017094e-308,2.6989246853300965e-308,2.684491933389574e-308,2.670212721359213e-308,2.6560846120976464e-308,2.642105219771746e-308,2.6282722085134736e-308,2.614583291118707e-308,2.6010362277865185e-308,2.587628824897439e-308,2.5743589338293234e-308,2.561224449809455e-308,2.5482233108016185e-308,2.5353534964268957e-308,2.5226130269169975e-308,2.5099999620990007e-308,2.4975124004103863e-308,2.4851484779433393e-308,2.4729063675172905e-308,2.4607842777787393e-308,2.448780452327425e-308,2.4368931688679427e-308,2.425120738385961e-308,2.4134615043481885e-308,2.4019138419253227e-308,2.3904761572371884e-308,2.3791468866193485e-308,2.367924495910467e-308,2.356807479759748e-308,2.345794360953795e-308,2.33488368976225e-308,2.324074043301612e-308,2.3133640249166474e-308,2.302752263578824e-308,2.2922374133012245e-308,2.2818181525694215e-308,2.2714931837878016e-308,2.261261232740849e-308,2.251121048068934e-308,2.2410714007581317e-308,2.231111083643655e-308,2.221238910926463e-308,2.211453717702653e-308,2.201754359505233e-308,2.1921397118578976e-308,2.182608669840454e-308,2.173160147665524e-308,2.1637930782662015e-308,2.1545064128943254e-308,2.1452991207290524e-308,2.136170188495428e-308,2.1271186200926457e-308,2.1181434362317293e-308,2.109243674082339e-308,2.1004183869284505e-308,2.091666643832639e-308,2.082987529308724e-308,2.0743801430025275e-308,2.065843599380515e-308,2.0573770274260954e-308,2.0489795703433574e-308,2.0406503852680285e-308,2.032388642985461e-308,2.024193527655437e-308,2.0160642365436043e-308,2.00799997975936e-308,1.99999998e-308,1.9920634723009577e-308,1.984189703791967e-308,1.976377933458987e-308,1.9686274319117267e-308,1.9609374811566163e-308,1.953307374375085e-308,1.945736415706989e-308,1.938223920039057e-308,1.9307692127982247e-308,1.92337162974971e-308,1.9160305167997205e-308,1.9087452298026575e-308,1.9015151343727044e-308,1.89433960569968e-308,1.887218028369043e-308,1.8801497961859476e-308,1.87313431200323e-308,1.86617098755324e-308,1.859259243283402e-308,1.852398508195422e-308,1.845588219688041e-308,1.838827823403239e-308,1.832116773075817e-308,1.825454530386248e-308,1.8188405648167404e-308,1.812274353510407e-308,1.8057553811334817e-308,1.799283139740497e-308,1.792857128642347e-308,1.786476854277175e-308,1.7801418300839997e-308,1.773851576379028e-308,1.767605620234577e-308,1.761403495360542e-308,1.7552447419883614e-308,1.7491289067573967e-308,1.7430555426036845e-308,1.737024208650998e-308,1.731034470104162e-308,1.725085898144566e-308,1.7191780698278286e-308,1.7133105679835524e-308,1.707482981117127e-308,1.7016949033135307e-308,1.695945934143079e-308,1.69023567856908e-308,1.684563746857349e-308,1.6789297544875336e-308,1.6733333220662223e-308,1.6677740752417747e-308,1.66225164462085e-308,1.6567656656865886e-308,1.6513157787184035e-308,1.6459016287133565e-308,1.640522865309069e-308,1.6351791427081456e-308,1.629870119604065e-308,1.624595459108514e-308,1.6193548286801248e-308,1.6141479000545904e-308,1.6089743491761176e-308,1.6038338561302044e-308,1.5987261050776905e-308,1.593650784190073e-308,1.588607585586044e-308,1.583596205269233e-308,1.5786163430671255e-308,1.5736677025711226e-308,1.5687499910777345e-308,1.563862919530866e-308,1.5590062024651827e-308,1.554179557950522e-308,1.549382707537342e-308,1.544615376203172e-308,1.539877292300049e-308,1.5351681875029223e-308,1.530487796758998e-308,1.525835858238006e-308,1.521212113283379e-308,1.5166163063643086e-308,1.512048185028669e-308,1.507507499856794e-308,1.502994004416078e-308,1.498507455216396e-308,1.4940476116663124e-308,1.4896142360300783e-308,1.485207093385386e-308,1.4808259515818693e-308,1.476470581200346e-308,1.4721407555127665e-308,1.4678362504428715e-308,1.463556844527535e-308,1.459302318878786e-308,1.455072457146482e-308,1.4508670454816397e-308,1.4466858725003944e-308,1.4425287292485796e-308,1.43839540916692e-308,1.4342857080568163e-308,1.43019942404672e-308,1.426136357559078e-308,1.422096311277837e-308,1.4180790901165055e-308,1.4140845011867487e-308,1.4101123537675166e-308,1.40616245927469e-308,1.402234631231235e-308,1.3983286852378553e-308,1.3944444389441358e-308,1.3905817120201655e-308,1.3867403261286285e-308,1.3829201048973584e-308,1.379120873892344e-308,1.3753424605911806e-308,1.371584694356953e-308,1.3678474064125505e-308,1.3641304298153946e-308,1.3604335994325834e-308,1.3567567519164357e-308,1.3530997256804295e-308,1.349462360875535e-308,1.3458444993669186e-308,1.3422459847110297e-308,1.338666662133049e-308,1.3351063785046965e-308,1.331564982322397e-308,1.328042323685787e-308,1.3245382542765645e-308,1.321052627337673e-308,1.317585297652813e-308,1.314136121526274e-308,1.310704956763084e-308,1.307291662649468e-308,1.3038960999336143e-308,1.300518130806733e-308,1.297157618884415e-308,1.2938144291882773e-308,1.290488428127887e-308,1.287179483482972e-308,1.283887464385895e-308,1.2806122413044047e-308,1.2773536860246425e-308,1.274111671634415e-308,1.2708860725067137e-308,1.2676767642834913e-308,1.264483623859678e-308,1.26130652936744e-308,1.2581453601606775e-308,1.25499999679975e-308,1.2518703210364366e-308,1.248756215799114e-308,1.2456575651781613e-308,1.2425742544115773e-308,1.2395061698708126e-308,1.23645319904681e-308,1.2334152305362545e-308,1.230392154028018e-308,1.2273838602898116e-308,1.224390241155027e-308,1.221411189509771e-308,1.2184465992800926e-308,1.21549636541939e-308,1.212560383896007e-308,1.209638551680999e-308,1.2067307667360853e-308,1.203836928001771e-308,1.2009569353856366e-308,1.198090689750799e-308,1.195238092904535e-308,1.1923990475870706e-308,1.189573457460524e-308,1.186761227098011e-308,1.1839622619728997e-308,1.1811764684482214e-308,1.178403753766228e-308,1.175644026038096e-308,1.172897194233776e-308,1.1701631681719834e-308,1.16744185851033e-308,1.16473317673559e-308,1.1620370351541066e-308,1.1593533468823235e-308,1.1566820258374566e-308,1.1540229867282865e-308,1.151376145046082e-308,1.148741417055648e-308,1.1461187197864934e-308,1.143507971024123e-308,1.1409090893014463e-308,1.138321993890303e-308,1.1357466047931043e-308,1.133182842734587e-308,1.130630629153681e-308,1.12808988619548e-308,1.125560536703332e-308,1.1230425042110214e-308,1.1205357129350684e-308,1.1180400877671244e-308,1.115555554266469e-308,1.113082038652612e-308,1.110619467797987e-308,1.1081677692207457e-308,1.1057268710776455e-308,1.1032967021570343e-308,1.100877191871922e-308,1.0984682702531495e-308,1.0960698679426404e-308,1.093681916186747e-308,1.0913043468296788e-308,1.088937092307019e-308,1.086580085639325e-308,1.0842332604258076e-308,1.081896550838102e-308,1.0795698916141057e-308,1.0772532180519075e-308,1.074946466003787e-308,1.0726495718702973e-308,1.0703624725944145e-308,1.0680851056557716e-308,1.065817409064961e-308,1.063559321357907e-308,1.0613107815903167e-308,1.059071729332194e-308,1.056842104662427e-308,1.0546218481634417e-308,1.0524109009159273e-308,1.050209204493619e-308,1.048016700958155e-308,1.045833332853993e-308,1.043659043203392e-308,1.041493775501455e-308,1.0393374737112336e-308,1.0371900822588965e-308,1.035051546028951e-308,1.032921810359532e-308,1.030800821037741e-308,1.028688524295048e-308,1.0265848668027483e-308,1.024489795667472e-308,1.022403258426753e-308,1.020325203044649e-308,1.018255577907418e-308,1.0161943318192396e-308,1.014141413998e-308,1.0120967740711173e-308,1.0100603620714223e-308,1.0080321284330897e-308,1.0060120239876145e-308,1.00399999995984e-308,1.0019960079640323e-308,1.0e-308],"x":[1.0e300,1.9920418525896416e305,3.9840737051792825e305,5.9761055577689246e305,7.968137410358565e305,9.960169262948207e305,1.195220111553785e306,1.394423296812749e306,1.593626482071713e306,1.7928296673306772e306,1.9920328525896414e306,2.1912360378486056e306,2.39043922310757e306,2.5896424083665337e306,2.788845593625498e306,2.988048778884462e306,3.187251964143426e306,3.3864551494023906e306,3.5856583346613545e306,3.784861519920319e306,3.984064705179283e306,4.183267890438247e306,4.382471075697211e306,4.581674260956175e306,4.78087744621514e306,4.9800806314741036e306,5.1792838167330675e306,5.378487001992032e306,5.577690187250996e306,5.77689337250996e306,5.976096557768924e306,6.175299743027889e306,6.374502928286852e306,6.573706113545817e306,6.772909298804781e306,6.972112484063746e306,7.171315669322709e306,7.370518854581673e306,7.569722039840638e306,7.768925225099601e306,7.968128410358566e306,8.16733159561753e306,8.366534780876494e306,8.565737966135458e306,8.764941151394423e306,8.964144336653387e306,9.16334752191235e306,9.362550707171315e306,9.56175389243028e306,9.760957077689243e306,9.960160262948207e306,1.0159363448207172e307,1.0358566633466135e307,1.05577698187251e307,1.0756973003984064e307,1.0956176189243029e307,1.1155379374501992e307,1.1354582559760956e307,1.155378574501992e307,1.1752988930278885e307,1.1952192115537849e307,1.2151395300796812e307,1.2350598486055778e307,1.254980167131474e307,1.2749004856573704e307,1.294820804183267e307,1.3147411227091633e307,1.3346614412350597e307,1.3545817597609562e307,1.3745020782868526e307,1.3944223968127491e307,1.4143427153386455e307,1.4342630338645418e307,1.4541833523904384e307,1.4741036709163347e307,1.494023989442231e307,1.5139443079681276e307,1.533864626494024e307,1.5537849450199202e307,1.5737052635458168e307,1.5936255820717132e307,1.6135459005976095e307,1.633466219123506e307,1.6533865376494024e307,1.6733068561752987e307,1.6932271747011953e307,1.7131474932270916e307,1.7330678117529882e307,1.7529881302788845e307,1.7729084488047808e307,1.7928287673306774e307,1.8127490858565737e307,1.83266940438247e307,1.8525897229083667e307,1.872510041434263e307,1.8924303599601593e307,1.912350678486056e307,1.9322709970119522e307,1.9521913155378485e307,1.972111634063745e307,1.9920319525896414e307,2.0119522711155378e307,2.0318725896414343e307,2.0517929081673307e307,2.071713226693227e307,2.0916335452191236e307,2.11155386374502e307,2.1314741822709165e307,2.1513945007968128e307,2.1713148193227091e307,2.1912351378486057e307,2.211155456374502e307,2.2310757749003984e307,2.250996093426295e307,2.2709164119521913e307,2.2908367304780876e307,2.310757049003984e307,2.3306773675298807e307,2.350597686055777e307,2.3705180045816734e307,2.3904383231075697e307,2.410358641633466e307,2.4302789601593624e307,2.450199278685259e307,2.4701195972111555e307,2.490039915737052e307,2.509960234262948e307,2.5298805527888445e307,2.549800871314741e307,2.5697211898406377e307,2.589641508366534e307,2.6095618268924303e307,2.6294821454183267e307,2.649402463944223e307,2.6693227824701193e307,2.689243100996016e307,2.7091634195219125e307,2.729083738047809e307,2.749004056573705e307,2.7689243750996014e307,2.7888446936254983e307,2.8087650121513946e307,2.828685330677291e307,2.848605649203187e307,2.8685259677290836e307,2.88844628625498e307,2.9083666047808767e307,2.928286923306773e307,2.9482072418326694e307,2.9681275603585657e307,2.988047878884462e307,3.0079681974103584e307,3.027888515936255e307,3.0478088344621515e307,3.067729152988048e307,3.087649471513944e307,3.1075697900398405e307,3.1274901085657373e307,3.1474104270916337e307,3.16733074561753e307,3.1872510641434263e307,3.2071713826693226e307,3.227091701195219e307,3.247012019721116e307,3.266932338247012e307,3.2868526567729084e307,3.306772975298805e307,3.326693293824701e307,3.3466136123505974e307,3.366533930876494e307,3.3864542494023906e307,3.406374567928287e307,3.426294886454183e307,3.4462152049800796e307,3.4661355235059764e307,3.4860558420318727e307,3.505976160557769e307,3.5258964790836654e307,3.5458167976095617e307,3.565737116135458e307,3.585657434661355e307,3.605577753187251e307,3.6254980717131475e307,3.645418390239044e307,3.66533870876494e307,3.6852590272908365e307,3.7051793458167333e307,3.7250996643426296e307,3.745019982868526e307,3.7649403013944223e307,3.7848606199203186e307,3.804780938446215e307,3.824701256972112e307,3.844621575498008e307,3.8645418940239044e307,3.8844622125498007e307,3.904382531075697e307,3.924302849601594e307,3.94422316812749e307,3.9641434866533866e307,3.984063805179283e307,4.003984123705179e307,4.0239044422310755e307,4.0438247607569724e307,4.0637450792828687e307,4.083665397808765e307,4.1035857163346613e307,4.1235060348605577e307,4.143426353386454e307,4.163346671912351e307,4.183266990438247e307,4.2031873089641435e307,4.22310762749004e307,4.243027946015936e307,4.262948264541833e307,4.2828685830677293e307,4.3027889015936256e307,4.322709220119522e307,4.3426295386454183e307,4.3625498571713146e307,4.3824701756972114e307,4.4023904942231077e307,4.422310812749004e307,4.4422311312749004e307,4.4621514498007967e307,4.482071768326693e307,4.50199208685259e307,4.521912405378486e307,4.541832723904383e307,4.561753042430279e307,4.581673360956175e307,4.601593679482072e307,4.621513998007968e307,4.641434316533864e307,4.661354635059761e307,4.681274953585658e307,4.701195272111554e307,4.72111559063745e307,4.741035909163347e307,4.760956227689243e307,4.780876546215139e307,4.800796864741036e307,4.820717183266932e307,4.840637501792828e307,4.860557820318725e307,4.880478138844621e307,4.900398457370518e307,4.920318775896415e307,4.940239094422311e307,4.960159412948207e307,4.980079731474104e307,5.00000005e307,5.019920368525896e307,5.039840687051793e307,5.059761005577689e307,5.079681324103585e307,5.099601642629482e307,5.119521961155379e307,5.139442279681275e307,5.159362598207172e307,5.179282916733068e307,5.199203235258964e307,5.219123553784861e307,5.239043872310757e307,5.258964190836653e307,5.27888450936255e307,5.298804827888446e307,5.318725146414342e307,5.338645464940239e307,5.358565783466136e307,5.378486101992032e307,5.398406420517929e307,5.418326739043825e307,5.438247057569721e307,5.458167376095618e307,5.478087694621514e307,5.49800801314741e307,5.517928331673307e307,5.537848650199203e307,5.557768968725099e307,5.577689287250997e307,5.597609605776893e307,5.617529924302789e307,5.637450242828686e307,5.657370561354582e307,5.677290879880478e307,5.697211198406374e307,5.717131516932271e307,5.737051835458167e307,5.756972153984063e307,5.77689247250996e307,5.796812791035857e307,5.816733109561753e307,5.83665342808765e307,5.856573746613546e307,5.876494065139442e307,5.896414383665339e307,5.916334702191235e307,5.936255020717131e307,5.956175339243028e307,5.976095657768924e307,5.99601597629482e307,6.015936294820717e307,6.035856613346614e307,6.05577693187251e307,6.075697250398407e307,6.095617568924303e307,6.115537887450199e307,6.135458205976096e307,6.155378524501992e307,6.175298843027888e307,6.195219161553785e307,6.215139480079681e307,6.235059798605577e307,6.254980117131475e307,6.274900435657371e307,6.294820754183267e307,6.314741072709164e307,6.33466139123506e307,6.354581709760956e307,6.374502028286853e307,6.394422346812749e307,6.414342665338645e307,6.434262983864542e307,6.454183302390438e307,6.474103620916334e307,6.494023939442232e307,6.513944257968128e307,6.533864576494024e307,6.553784895019921e307,6.573705213545817e307,6.593625532071713e307,6.61354585059761e307,6.633466169123506e307,6.653386487649402e307,6.673306806175299e307,6.693227124701195e307,6.713147443227092e307,6.733067761752988e307,6.752988080278885e307,6.772908398804781e307,6.792828717330677e307,6.812749035856574e307,6.83266935438247e307,6.852589672908366e307,6.872509991434263e307,6.892430309960159e307,6.912350628486055e307,6.932270947011953e307,6.952191265537849e307,6.972111584063745e307,6.992031902589642e307,7.011952221115538e307,7.031872539641434e307,7.051792858167331e307,7.071713176693227e307,7.091633495219123e307,7.11155381374502e307,7.131474132270916e307,7.151394450796812e307,7.17131476932271e307,7.191235087848606e307,7.211155406374502e307,7.231075724900399e307,7.250996043426295e307,7.270916361952191e307,7.290836680478088e307,7.310756999003984e307,7.33067731752988e307,7.350597636055777e307,7.370517954581673e307,7.39043827310757e307,7.410358591633467e307,7.430278910159363e307,7.450199228685259e307,7.470119547211156e307,7.490039865737052e307,7.509960184262948e307,7.529880502788845e307,7.549800821314741e307,7.569721139840637e307,7.589641458366534e307,7.60956177689243e307,7.629482095418327e307,7.649402413944224e307,7.66932273247012e307,7.689243050996016e307,7.709163369521913e307,7.729083688047809e307,7.749004006573705e307,7.768924325099601e307,7.788844643625498e307,7.808764962151394e307,7.82868528067729e307,7.848605599203188e307,7.868525917729084e307,7.88844623625498e307,7.908366554780877e307,7.928286873306773e307,7.948207191832669e307,7.968127510358566e307,7.988047828884462e307,8.007968147410358e307,8.027888465936255e307,8.047808784462151e307,8.067729102988047e307,8.087649421513945e307,8.107569740039841e307,8.127490058565737e307,8.147410377091634e307,8.16733069561753e307,8.187251014143426e307,8.207171332669323e307,8.227091651195219e307,8.247011969721115e307,8.266932288247012e307,8.286852606772908e307,8.306772925298805e307,8.326693243824702e307,8.346613562350598e307,8.366533880876494e307,8.386454199402391e307,8.406374517928287e307,8.426294836454183e307,8.44621515498008e307,8.466135473505976e307,8.486055792031872e307,8.505976110557769e307,8.525896429083666e307,8.545816747609562e307,8.565737066135459e307,8.585657384661355e307,8.605577703187251e307,8.625498021713148e307,8.645418340239044e307,8.66533865876494e307,8.685258977290837e307,8.705179295816733e307,8.725099614342629e307,8.745019932868526e307,8.764940251394423e307,8.784860569920319e307,8.804780888446215e307,8.824701206972112e307,8.844621525498008e307,8.864541844023904e307,8.884462162549801e307,8.904382481075697e307,8.924302799601593e307,8.94422311812749e307,8.964143436653386e307,8.984063755179283e307,9.00398407370518e307,9.023904392231075e307,9.043824710756972e307,9.063745029282868e307,9.083665347808765e307,9.103585666334662e307,9.123505984860558e307,9.143426303386455e307,9.16334662191235e307,9.183266940438248e307,9.203187258964143e307,9.22310757749004e307,9.243027896015936e307,9.262948214541833e307,9.282868533067728e307,9.302788851593626e307,9.322709170119523e307,9.342629488645418e307,9.362549807171316e307,9.38247012569721e307,9.402390444223108e307,9.422310762749004e307,9.4422310812749e307,9.462151399800796e307,9.482071718326694e307,9.501992036852589e307,9.521912355378486e307,9.541832673904382e307,9.561752992430279e307,9.581673310956176e307,9.601593629482072e307,9.621513948007969e307,9.641434266533864e307,9.661354585059762e307,9.681274903585657e307,9.701195222111554e307,9.72111554063745e307,9.741035859163347e307,9.760956177689242e307,9.78087649621514e307,9.800796814741037e307,9.820717133266932e307,9.84063745179283e307,9.860557770318725e307,9.880478088844622e307,9.900398407370517e307,9.920318725896415e307,9.94023904442231e307,9.960159362948207e307,9.980079681474103e307,1.0e308]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/large_negative.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/large_negative.json new file mode 100644 index 000000000000..aa5f5403dca4 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/large_negative.json @@ -0,0 +1 @@ +{"expected":[-0.32745015023725843,-0.32228220501757976,-0.317272386683515,-0.3124136500429473,-0.30769935672565835,-0.3031232466029938,-0.2986794115555974,-0.29436227136958615,-0.2901665515644846,-0.28608726297654286,-0.2821196829390524,-0.2782593379172548,-0.2745019874696298,-0.27084360941999,-0.2672803861360766,-0.26380869182040123,-0.2604250807280673,-0.2571262762343455,-0.2539091606819807,-0.2507707659446741,-0.2477082646489839,-0.2447189620021126,-0.2418002881777449,-0.23894979121633422,-0.23616513040005896,-0.233444070066118,-0.2307844738251565,-0.2281842991544351,-0.22564159233791684,-0.2231544837277625,-0.22072118330383614,-0.2183399765097308,-0.216009220345571,-0.21372733969942823,-0.21149282390063295,-0.20930422347958236,-0.2071601471198436,-0.2050592587894541,-0.20300027503931994,-0.20098196245753583,-0.1990031352692899,-0.19706265307278792,-0.19515941870233972,-0.19329237621039916,-0.19146050896094657,-0.18966283782715046,-0.18789841948675062,-0.1861663448090685,-0.1844657373279805,-0.18279575179558286,-0.18115557281164252,-0.17954441352426334,-0.1779615143975094,-0.17640614204201288,-0.1748775881048603,-0.17337516821529744,-0.17189822098302027,-0.17044610704603122,-0.16901820816523483,-0.16761392636313044,-0.16623268310412634,-0.16487391851415778,-0.1635370906374371,-0.16222167472829832,-0.16092716257622758,-0.15965306186228406,-0.15839889554523037,-0.15716420127578884,-0.15594853083753865,-0.15475144961305537,-0.1535725360739786,-0.1524113812937703,-0.15126758848199823,-0.15014077253904828,-0.14903055963022988,-0.1479365867783013,-0.14685850147349372,-0.1457959613001678,-0.1447486335792827,-0.1437161950259048,-0.1426983314210256,-0.14169473729699794,-0.1407051156359385,-0.13972917758047806,-0.13876664215627746,-0.13781723600575385,-0.13688069313249654,-0.13595675465587448,-0.13504516857536697,-0.1341456895441721,-0.13325807865167058,-0.13238210321434454,-0.13151753657477194,-0.13066415790833558,-0.1298217520373042,-0.12899010925196158,-0.12816902513847303,-0.12735830041319784,-0.1265577407631667,-0.12576715669246008,-0.12498636337423422,-0.1242151805081555,-0.12345343218301351,-0.12270094674429595,-0.12195755666651785,-0.1212230984301074,-0.12049741240266042,-0.11978034272438426,-0.11907173719755963,-0.11837144717985787,-0.11767932748135736,-0.11699523626511117,-0.11631903495112404,-0.11565058812360322,-0.11498976344135406,-0.11433643155119712,-0.11369046600428852,-0.11305174317523091,-0.1124201421838675,-0.11179554481965587,-0.11117783546852315,-0.11056690104210817,-0.1099626309093005,-0.1093649168299901,-0.10877365289094452,-0.10818873544373496,-0.10761006304463518,-0.1070375363964206,-0.10647105829199799,-0.10591053355979911,-0.10535586901087435,-0.10480697338762507,-0.10426375731411565,-0.10372613324790905,-0.10319401543337196,-0.10266731985639682,-0.1021459642004918,-0.10162986780419023,-0.10111895161973389,-0.10061313817298566,-0.10011235152452942,-0.09961651723191638,-0.09912556231301861,-0.09863941521045212,-0.09815800575703339,-0.09768126514223459,-0.09720912587960374,-0.09674152177511809,-0.09627838789643918,-0.09581966054304042,-0.09536527721717779,-0.0949151765956766,-0.09446929850250768,-0.09402758388212691,-0.09358997477355396,-0.09315641428516636,-0.09272684657018579,-0.09230121680283478,-0.09187947115514235,-0.09146155677437846,-0.091047421761097,-0.09063701514776869,-0.09023028687798529,-0.08982718778621761,-0.08942766957810985,-0.08903168481129424,-0.08863918687670962,-0.08825012998040899,-0.08786446912584081,-0.08748216009659004,-0.08710315943956486,-0.08672742444861593,-0.08635491314857514,-0.08598558427970121,-0.08561939728252065,-0.08525631228305183,-0.0848962900784012,-0.0845392921227208,-0.08418528051351655,-0.08383421797829697,-0.0834860678615527,-0.08314079411205731,-0.08279836127047999,-0.08245873445730147,-0.08212187936102444,-0.0817877622266702,-0.08145634984455333,-0.08112760953932671,-0.08080150915928938,-0.08047801706594986,-0.08015710212383755,-0.07983873369055605,-0.07952288160707115,-0.07920951618822702,-0.078898608213485,-0.07859012891787814,-0.0782840499831764,-0.07798034352925604,-0.07767898210566845,-0.07737993868340264,-0.07708318664683629,-0.07678869978587041,-0.0764964522882428,-0.07620641873201538,-0.07591857407823109,-0.07563289366373571,-0.07534935319416045,-0.07506792873706089,-0.07478859671520864,-0.07451133390003126,-0.07423611740519705,-0.07396292468034087,-0.07369173350492719,-0.07342252198224719,-0.07315526853354644,-0.07288995189227947,-0.07262655109848881,-0.07236504549330461,-0.07210541471356222,-0.07184763868653482,-0.07159169762477803,-0.0713375720210839,-0.07108524264354162,-0.07083469053070202,-0.07058589698684384,-0.0703388435773388,-0.07009351212411324,-0.0698498847012042,-0.0696079436304073,-0.06936767147701454,-0.0691290510456396,-0.06889206537612866,-0.06865669773955489,-0.06842293163429422,-0.06819075078218083,-0.06796013912474037,-0.06773108081949887,-0.06750356023636608,-0.06727756195409082,-0.0670530707567874,-0.06683007163053074,-0.0666085497600192,-0.06638849052530324,-0.06616987949857848,-0.06595270244104161,-0.06573694529980796,-0.06552259420488896,-0.06530963546622849,-0.06509805557079655,-0.06488784117973906,-0.06467897912558251,-0.06447145640949227,-0.06426526019858322,-0.06406037782328189,-0.06385679677473835,-0.06365450470228749,-0.06345348941095806,-0.06325373885902857,-0.06305524115562922,-0.0628579845583885,-0.06266195747112376,-0.06246714844157484,-0.062273546159179474,-0.06208113945289,-0.06188991728903014,-0.061699868769191264,-0.06151098312816712,-0.06132324973192626,-0.06113665807562135,-0.06095119778163467,-0.060766858597658874,-0.06058363039481244,-0.06040150316578901,-0.060220467023039834,-0.06004051219698878,-0.05986162903427913,-0.05968380799605154,-0.05950703965625245,-0.05933131469997254,-0.05915662392181417,-0.05898295822428787,-0.058810308616236505,-0.058638666211287306,-0.05846802222633063,-0.05829836798002517,-0.05812969489132918,-0.05796199447805683,-0.05779525835545957,-0.05762947823483178,-0.05746464592214034,-0.057300753316677444,-0.057137792409736564,-0.056975755283310635,-0.05681463410881247,-0.05665442114581667,-0.05649510874082263,-0.05633668932603854,-0.0561791554181855,-0.05602249961732166,-0.055866714605685965,-0.055711793146561085,-0.055557728083155115,-0.05540451233750176,-0.05525213890937866,-0.05510060087524337,-0.05494989138718687,-0.05480000367190407,-0.054650931029681146,-0.0545026668333993,-0.05435520452755455,-0.05420853762729355,-0.05406265971746478,-0.053917564451684996,-0.05377324555142073,-0.05362969680508438,-0.05348691206714467,-0.05334488525725141,-0.05320361035937394,-0.053063081420953354,-0.05292329255206797,-0.052784237924611954,-0.052645911771486975,-0.05250830838580623,-0.052371422120111144,-0.05223524738560015,-0.05209977865136942,-0.05196501044366543,-0.051830937345149014,-0.05169755399417077,-0.05156485508405757,-0.051432835362410154,-0.051301489630411166,-0.05117081274214409,-0.0510407996039223,-0.05091144517362835,-0.050782744460063325,-0.05065469252230599,-0.050527284469081495,-0.050400515458139734,-0.05027438069564286,-0.05014887543556204,-0.05002399497908319,-0.04989973467402152,-0.049776089914244835,-0.04965305613910528,-0.0495306288328795,-0.04940880352421715,-0.04928757578559736,-0.04916694123279316,-0.04904689552434397,-0.04892743436103544,-0.04880855348538717,-0.04869024868114764,-0.04857251577279654,-0.0484553506250544,-0.048338749142399016,-0.048222707268589106,-0.04810722098619463,-0.04799228631613393,-0.047877899317217296,-0.04776405608569734,-0.047650752754825436,-0.04753798549441466,-0.04742575051040881,-0.047314044044457534,-0.04720286237349746,-0.047092201809339165,-0.046982058698259936,-0.04687242942060225,-0.04676331039037784,-0.04665469805487724,-0.04654658889428483,-0.04643897942129908,-0.046331866180758144,-0.04622524574927064,-0.04611911473485133,-0.04601346977656205,-0.04590830754415737,-0.0458036247377351,-0.04569941808739169,-0.04559568435288221,-0.0454924203232849,-0.045389622816670416,-0.04528728867977544,-0.045185414787680594,-0.045083998043492945,-0.044983035378032485,-0.044882523749523014,-0.04478246014328702,-0.04468284157144473,-0.04458366507261706,-0.0444849277116326,-0.04438662657923837,-0.044288758791814514,-0.044191321491092714,-0.0440943118438782,-0.043997727041775604,-0.04390156430091822,-0.043805820861700935,-0.043710493988516556,-0.04361558096949559,-0.043521079116249424,-0.04342698576361683,-0.043333298269413685,-0.043240014014186014,-0.04314713040096614,-0.04305464485503196,-0.04296255482366939,-0.04287085777593776,-0.0427795512024382,-0.042688632615085084,-0.04259809954688024,-0.04250794955169009,-0.04241818020402564,-0.042328789098825155,-0.042239773851239705,-0.04215113209642125,-0.04206286148931349,-0.04197495970444538,-0.04188742443572703,-0.04180025339624834,-0.04171344431808012,-0.041626994952077515,-0.04154090306768608,-0.04145516645275013,-0.041369782913323445,-0.04128475027348241,-0.04120006637514133,-0.04111572907787006,-0.04103173625871392,-0.04094808581201573,-0.040864775649240015,-0.040781803698799475,-0.04069916790588333,-0.040616866232288,-0.04053489665624967,-0.04045325717227888,-0.040371945790997184,-0.04029096053897578,-0.040210299458575904,-0.040129960607791414,-0.04004994206009294,-0.039970241904274215,-0.03989085824429997,-0.03981178919915571,-0.039733032902699444,-0.03965458750351486,-0.03957645116476652,-0.039498622064056556,-0.039421098393283206,-0.039343878358500874,-0.03926696017978194,-0.039190342091080126,-0.039114022340095464,-0.039037999188140854,-0.03896227091001016,-0.038886835793847836,-0.03881169214102007,-0.03873683826598741,-0.038662272496178846,-0.03858799317186741,-0.038513998646047064,-0.03844028728431117,-0.03836685746473225,-0.03829370757774309,-0.03822083602601933,-0.03814824122436322,-0.038075921599588884,-0.03800387559040871,-0.03793210164732113,-0.03786059823249965,-0.03778936381968312,-0.03771839689406721,-0.03764769595219719,-0.037577259501861825,-0.03750708606198846,-0.0374371741625394,-0.03736752234440926,-0.03729812915932359,-0.03722899316973859,-0.03716011294874194,-0.0370914870799547,-0.03702311415743431,-0.03695499278557869,-0.036887121579031366,-0.03681949916258765,-0.036752124171101776,-0.03668499524939523,-0.036618111052165864,-0.0365514702438982,-0.03648507149877452,-0.0364189135005871,-0.03635299494265127,-0.03628731452771952,-0.036221870967896384,-0.03615666298455438,-0.036091689308250886,-0.03602694867864569,-0.03596243984441966,-0.03589816156319416,-0.035834112601451425,-0.03577029173445561,-0.035706697746174874],"x":[-3.0,-3.049800796812749,-3.099601593625498,-3.149402390438247,-3.199203187250996,-3.249003984063745,-3.298804780876494,-3.348605577689243,-3.398406374501992,-3.448207171314741,-3.49800796812749,-3.547808764940239,-3.597609561752988,-3.647410358565737,-3.697211155378486,-3.747011952191235,-3.7968127490039842,-3.846613545816733,-3.896414342629482,-3.946215139442231,-3.99601593625498,-4.0458167330677295,-4.095617529880478,-4.145418326693227,-4.195219123505976,-4.245019920318725,-4.294820717131474,-4.344621513944223,-4.394422310756972,-4.444223107569721,-4.49402390438247,-4.543824701195219,-4.5936254980079685,-4.643426294820717,-4.693227091633466,-4.743027888446215,-4.792828685258964,-4.842629482071713,-4.892430278884462,-4.942231075697211,-4.99203187250996,-5.04183266932271,-5.091633466135458,-5.1414342629482075,-5.191235059760956,-5.241035856573705,-5.290836653386454,-5.340637450199203,-5.390438247011952,-5.440239043824701,-5.49003984063745,-5.539840637450199,-5.589641434262949,-5.639442231075697,-5.6892430278884465,-5.739043824701195,-5.788844621513944,-5.838645418326693,-5.888446215139442,-5.938247011952191,-5.98804780876494,-6.03784860557769,-6.087649402390438,-6.137450199203188,-6.187250996015936,-6.2370517928286855,-6.286852589641434,-6.336653386454183,-6.386454183266932,-6.436254980079681,-6.48605577689243,-6.535856573705179,-6.585657370517929,-6.635458167330677,-6.685258964143427,-6.735059760956175,-6.7848605577689245,-6.834661354581673,-6.884462151394422,-6.934262948207171,-6.98406374501992,-7.03386454183267,-7.083665338645418,-7.133466135458168,-7.183266932270916,-7.233067729083666,-7.282868525896414,-7.3326693227091635,-7.382470119521912,-7.432270916334661,-7.48207171314741,-7.531872509960159,-7.581673306772909,-7.631474103585657,-7.681274900398407,-7.731075697211155,-7.780876494023905,-7.830677290836653,-7.8804780876494025,-7.930278884462151,-7.9800796812749,-8.02988047808765,-8.079681274900398,-8.129482071713147,-8.179282868525897,-8.229083665338646,-8.278884462151394,-8.328685258964143,-8.378486055776893,-8.428286852589641,-8.47808764940239,-8.52788844621514,-8.577689243027889,-8.627490039840637,-8.677290836653386,-8.727091633466136,-8.776892430278885,-8.826693227091633,-8.876494023904382,-8.926294820717132,-8.97609561752988,-9.025896414342629,-9.07569721115538,-9.125498007968128,-9.175298804780876,-9.225099601593625,-9.274900398406375,-9.324701195219124,-9.374501992031872,-9.42430278884462,-9.474103585657371,-9.52390438247012,-9.573705179282868,-9.623505976095618,-9.673306772908367,-9.723107569721115,-9.772908366533864,-9.822709163346614,-9.872509960159363,-9.922310756972111,-9.97211155378486,-10.02191235059761,-10.071713147410359,-10.121513944223107,-10.171314741035857,-10.221115537848606,-10.270916334661354,-10.320717131474103,-10.370517928286853,-10.420318725099602,-10.47011952191235,-10.5199203187251,-10.569721115537849,-10.619521912350598,-10.669322709163346,-10.719123505976096,-10.768924302788845,-10.818725099601593,-10.868525896414342,-10.918326693227092,-10.96812749003984,-11.01792828685259,-11.06772908366534,-11.117529880478088,-11.167330677290837,-11.217131474103585,-11.266932270916335,-11.316733067729084,-11.366533864541832,-11.41633466135458,-11.466135458167331,-11.51593625498008,-11.565737051792828,-11.615537848605578,-11.665338645418327,-11.715139442231076,-11.764940239043824,-11.814741035856574,-11.864541832669323,-11.914342629482071,-11.96414342629482,-12.01394422310757,-12.063745019920319,-12.113545816733067,-12.163346613545817,-12.213147410358566,-12.262948207171315,-12.312749003984063,-12.362549800796813,-12.412350597609562,-12.46215139442231,-12.51195219123506,-12.56175298804781,-12.611553784860558,-12.661354581673306,-12.711155378486056,-12.760956175298805,-12.810756972111554,-12.860557768924302,-12.910358565737052,-12.9601593625498,-13.00996015936255,-13.0597609561753,-13.109561752988048,-13.159362549800797,-13.209163346613545,-13.258964143426295,-13.308764940239044,-13.358565737051793,-13.408366533864541,-13.458167330677291,-13.50796812749004,-13.557768924302788,-13.607569721115539,-13.657370517928287,-13.707171314741036,-13.756972111553784,-13.806772908366534,-13.856573705179283,-13.906374501992032,-13.95617529880478,-14.00597609561753,-14.055776892430279,-14.105577689243027,-14.155378486055778,-14.205179282868526,-14.254980079681275,-14.304780876494023,-14.354581673306773,-14.404382470119522,-14.45418326693227,-14.50398406374502,-14.55378486055777,-14.603585657370518,-14.653386454183266,-14.703187250996017,-14.752988047808765,-14.802788844621514,-14.852589641434262,-14.902390438247012,-14.952191235059761,-15.00199203187251,-15.05179282868526,-15.101593625498008,-15.151394422310757,-15.201195219123505,-15.250996015936256,-15.300796812749004,-15.350597609561753,-15.400398406374501,-15.450199203187251,-15.5,-15.549800796812749,-15.599601593625499,-15.649402390438247,-15.699203187250996,-15.749003984063744,-15.798804780876495,-15.848605577689243,-15.898406374501992,-15.94820717131474,-15.99800796812749,-16.04780876494024,-16.09760956175299,-16.147410358565736,-16.197211155378486,-16.247011952191237,-16.296812749003983,-16.346613545816734,-16.39641434262948,-16.44621513944223,-16.49601593625498,-16.545816733067728,-16.595617529880478,-16.64541832669323,-16.695219123505975,-16.745019920318725,-16.794820717131476,-16.844621513944222,-16.894422310756973,-16.94422310756972,-16.99402390438247,-17.04382470119522,-17.093625498007967,-17.143426294820717,-17.193227091633467,-17.243027888446214,-17.292828685258964,-17.342629482071715,-17.39243027888446,-17.44223107569721,-17.49203187250996,-17.54183266932271,-17.59163346613546,-17.641434262948206,-17.691235059760956,-17.741035856573706,-17.790836653386453,-17.840637450199203,-17.890438247011954,-17.9402390438247,-17.99003984063745,-18.0398406374502,-18.089641434262948,-18.139442231075698,-18.189243027888445,-18.239043824701195,-18.288844621513945,-18.338645418326692,-18.388446215139442,-18.438247011952193,-18.48804780876494,-18.53784860557769,-18.58764940239044,-18.637450199203187,-18.687250996015937,-18.737051792828684,-18.786852589641434,-18.836653386454184,-18.88645418326693,-18.93625498007968,-18.98605577689243,-19.03585657370518,-19.08565737051793,-19.13545816733068,-19.185258964143426,-19.235059760956176,-19.284860557768923,-19.334661354581673,-19.384462151394423,-19.43426294820717,-19.48406374501992,-19.53386454183267,-19.583665338645417,-19.633466135458168,-19.683266932270918,-19.733067729083665,-19.782868525896415,-19.83266932270916,-19.882470119521912,-19.932270916334662,-19.98207171314741,-20.03187250996016,-20.08167330677291,-20.131474103585656,-20.181274900398407,-20.231075697211157,-20.280876494023904,-20.330677290836654,-20.3804780876494,-20.43027888446215,-20.4800796812749,-20.529880478087648,-20.5796812749004,-20.62948207171315,-20.679282868525895,-20.729083665338646,-20.778884462151396,-20.828685258964143,-20.878486055776893,-20.92828685258964,-20.97808764940239,-21.02788844621514,-21.077689243027887,-21.127490039840637,-21.177290836653388,-21.227091633466134,-21.276892430278885,-21.326693227091635,-21.37649402390438,-21.426294820717132,-21.47609561752988,-21.52589641434263,-21.57569721115538,-21.625498007968126,-21.675298804780876,-21.725099601593627,-21.774900398406373,-21.824701195219124,-21.874501992031874,-21.92430278884462,-21.97410358565737,-22.02390438247012,-22.073705179282868,-22.12350597609562,-22.173306772908365,-22.223107569721115,-22.272908366533866,-22.322709163346612,-22.372509960159363,-22.422310756972113,-22.47211155378486,-22.52191235059761,-22.57171314741036,-22.621513944223107,-22.671314741035857,-22.721115537848604,-22.770916334661354,-22.820717131474105,-22.87051792828685,-22.9203187250996,-22.970119521912352,-23.0199203187251,-23.06972111553785,-23.1195219123506,-23.169322709163346,-23.219123505976096,-23.268924302788843,-23.318725099601593,-23.368525896414344,-23.41832669322709,-23.46812749003984,-23.51792828685259,-23.567729083665338,-23.617529880478088,-23.66733067729084,-23.717131474103585,-23.766932270916335,-23.816733067729082,-23.866533864541832,-23.916334661354583,-23.96613545816733,-24.01593625498008,-24.06573705179283,-24.115537848605577,-24.165338645418327,-24.215139442231077,-24.264940239043824,-24.314741035856574,-24.36454183266932,-24.41434262948207,-24.46414342629482,-24.51394422310757,-24.56374501992032,-24.61354581673307,-24.663346613545816,-24.713147410358566,-24.762948207171316,-24.812749003984063,-24.862549800796813,-24.91235059760956,-24.96215139442231,-25.01195219123506,-25.061752988047807,-25.111553784860558,-25.161354581673308,-25.211155378486055,-25.260956175298805,-25.310756972111555,-25.360557768924302,-25.410358565737052,-25.4601593625498,-25.50996015936255,-25.5597609561753,-25.609561752988046,-25.659362549800797,-25.709163346613547,-25.758964143426294,-25.808764940239044,-25.858565737051794,-25.90836653386454,-25.95816733067729,-26.00796812749004,-26.05776892430279,-26.10756972111554,-26.157370517928285,-26.207171314741036,-26.256972111553786,-26.306772908366533,-26.356573705179283,-26.406374501992033,-26.45617529880478,-26.50597609561753,-26.55577689243028,-26.605577689243027,-26.655378486055778,-26.705179282868524,-26.754980079681275,-26.804780876494025,-26.85458167330677,-26.904382470119522,-26.954183266932272,-27.00398406374502,-27.05378486055777,-27.10358565737052,-27.153386454183266,-27.203187250996017,-27.252988047808763,-27.302788844621514,-27.352589641434264,-27.40239043824701,-27.45219123505976,-27.50199203187251,-27.551792828685258,-27.60159362549801,-27.65139442231076,-27.701195219123505,-27.750996015936256,-27.800796812749002,-27.850597609561753,-27.900398406374503,-27.95019920318725,-28.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/large_positive.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/large_positive.json new file mode 100644 index 000000000000..dcb11fa80b1a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/large_positive.json @@ -0,0 +1 @@ +{"expected":[0.32745015023725843,0.32228220501757976,0.317272386683515,0.3124136500429473,0.30769935672565835,0.3031232466029938,0.2986794115555974,0.29436227136958615,0.2901665515644846,0.28608726297654286,0.2821196829390524,0.2782593379172548,0.2745019874696298,0.27084360941999,0.2672803861360766,0.26380869182040123,0.2604250807280673,0.2571262762343455,0.2539091606819807,0.2507707659446741,0.2477082646489839,0.2447189620021126,0.2418002881777449,0.23894979121633422,0.23616513040005896,0.233444070066118,0.2307844738251565,0.2281842991544351,0.22564159233791684,0.2231544837277625,0.22072118330383614,0.2183399765097308,0.216009220345571,0.21372733969942823,0.21149282390063295,0.20930422347958236,0.2071601471198436,0.2050592587894541,0.20300027503931994,0.20098196245753583,0.1990031352692899,0.19706265307278792,0.19515941870233972,0.19329237621039916,0.19146050896094657,0.18966283782715046,0.18789841948675062,0.1861663448090685,0.1844657373279805,0.18279575179558286,0.18115557281164252,0.17954441352426334,0.1779615143975094,0.17640614204201288,0.1748775881048603,0.17337516821529744,0.17189822098302027,0.17044610704603122,0.16901820816523483,0.16761392636313044,0.16623268310412634,0.16487391851415778,0.1635370906374371,0.16222167472829832,0.16092716257622758,0.15965306186228406,0.15839889554523037,0.15716420127578884,0.15594853083753865,0.15475144961305537,0.1535725360739786,0.1524113812937703,0.15126758848199823,0.15014077253904828,0.14903055963022988,0.1479365867783013,0.14685850147349372,0.1457959613001678,0.1447486335792827,0.1437161950259048,0.1426983314210256,0.14169473729699794,0.1407051156359385,0.13972917758047806,0.13876664215627746,0.13781723600575385,0.13688069313249654,0.13595675465587448,0.13504516857536697,0.1341456895441721,0.13325807865167058,0.13238210321434454,0.13151753657477194,0.13066415790833558,0.1298217520373042,0.12899010925196158,0.12816902513847303,0.12735830041319784,0.1265577407631667,0.12576715669246008,0.12498636337423422,0.1242151805081555,0.12345343218301351,0.12270094674429595,0.12195755666651785,0.1212230984301074,0.12049741240266042,0.11978034272438426,0.11907173719755963,0.11837144717985787,0.11767932748135736,0.11699523626511117,0.11631903495112404,0.11565058812360322,0.11498976344135406,0.11433643155119712,0.11369046600428852,0.11305174317523091,0.1124201421838675,0.11179554481965587,0.11117783546852315,0.11056690104210817,0.1099626309093005,0.1093649168299901,0.10877365289094452,0.10818873544373496,0.10761006304463518,0.1070375363964206,0.10647105829199799,0.10591053355979911,0.10535586901087435,0.10480697338762507,0.10426375731411565,0.10372613324790905,0.10319401543337196,0.10266731985639682,0.1021459642004918,0.10162986780419023,0.10111895161973389,0.10061313817298566,0.10011235152452942,0.09961651723191638,0.09912556231301861,0.09863941521045212,0.09815800575703339,0.09768126514223459,0.09720912587960374,0.09674152177511809,0.09627838789643918,0.09581966054304042,0.09536527721717779,0.0949151765956766,0.09446929850250768,0.09402758388212691,0.09358997477355396,0.09315641428516636,0.09272684657018579,0.09230121680283478,0.09187947115514235,0.09146155677437846,0.091047421761097,0.09063701514776869,0.09023028687798529,0.08982718778621761,0.08942766957810985,0.08903168481129424,0.08863918687670962,0.08825012998040899,0.08786446912584081,0.08748216009659004,0.08710315943956486,0.08672742444861593,0.08635491314857514,0.08598558427970121,0.08561939728252065,0.08525631228305183,0.0848962900784012,0.0845392921227208,0.08418528051351655,0.08383421797829697,0.0834860678615527,0.08314079411205731,0.08279836127047999,0.08245873445730147,0.08212187936102444,0.0817877622266702,0.08145634984455333,0.08112760953932671,0.08080150915928938,0.08047801706594986,0.08015710212383755,0.07983873369055605,0.07952288160707115,0.07920951618822702,0.078898608213485,0.07859012891787814,0.0782840499831764,0.07798034352925604,0.07767898210566845,0.07737993868340264,0.07708318664683629,0.07678869978587041,0.0764964522882428,0.07620641873201538,0.07591857407823109,0.07563289366373571,0.07534935319416045,0.07506792873706089,0.07478859671520864,0.07451133390003126,0.07423611740519705,0.07396292468034087,0.07369173350492719,0.07342252198224719,0.07315526853354644,0.07288995189227947,0.07262655109848881,0.07236504549330461,0.07210541471356222,0.07184763868653482,0.07159169762477803,0.0713375720210839,0.07108524264354162,0.07083469053070202,0.07058589698684384,0.0703388435773388,0.07009351212411324,0.0698498847012042,0.0696079436304073,0.06936767147701454,0.0691290510456396,0.06889206537612866,0.06865669773955489,0.06842293163429422,0.06819075078218083,0.06796013912474037,0.06773108081949887,0.06750356023636608,0.06727756195409082,0.0670530707567874,0.06683007163053074,0.0666085497600192,0.06638849052530324,0.06616987949857848,0.06595270244104161,0.06573694529980796,0.06552259420488896,0.06530963546622849,0.06509805557079655,0.06488784117973906,0.06467897912558251,0.06447145640949227,0.06426526019858322,0.06406037782328189,0.06385679677473835,0.06365450470228749,0.06345348941095806,0.06325373885902857,0.06305524115562922,0.0628579845583885,0.06266195747112376,0.06246714844157484,0.062273546159179474,0.06208113945289,0.06188991728903014,0.061699868769191264,0.06151098312816712,0.06132324973192626,0.06113665807562135,0.06095119778163467,0.060766858597658874,0.06058363039481244,0.06040150316578901,0.060220467023039834,0.06004051219698878,0.05986162903427913,0.05968380799605154,0.05950703965625245,0.05933131469997254,0.05915662392181417,0.05898295822428787,0.058810308616236505,0.058638666211287306,0.05846802222633063,0.05829836798002517,0.05812969489132918,0.05796199447805683,0.05779525835545957,0.05762947823483178,0.05746464592214034,0.057300753316677444,0.057137792409736564,0.056975755283310635,0.05681463410881247,0.05665442114581667,0.05649510874082263,0.05633668932603854,0.0561791554181855,0.05602249961732166,0.055866714605685965,0.055711793146561085,0.055557728083155115,0.05540451233750176,0.05525213890937866,0.05510060087524337,0.05494989138718687,0.05480000367190407,0.054650931029681146,0.0545026668333993,0.05435520452755455,0.05420853762729355,0.05406265971746478,0.053917564451684996,0.05377324555142073,0.05362969680508438,0.05348691206714467,0.05334488525725141,0.05320361035937394,0.053063081420953354,0.05292329255206797,0.052784237924611954,0.052645911771486975,0.05250830838580623,0.052371422120111144,0.05223524738560015,0.05209977865136942,0.05196501044366543,0.051830937345149014,0.05169755399417077,0.05156485508405757,0.051432835362410154,0.051301489630411166,0.05117081274214409,0.0510407996039223,0.05091144517362835,0.050782744460063325,0.05065469252230599,0.050527284469081495,0.050400515458139734,0.05027438069564286,0.05014887543556204,0.05002399497908319,0.04989973467402152,0.049776089914244835,0.04965305613910528,0.0495306288328795,0.04940880352421715,0.04928757578559736,0.04916694123279316,0.04904689552434397,0.04892743436103544,0.04880855348538717,0.04869024868114764,0.04857251577279654,0.0484553506250544,0.048338749142399016,0.048222707268589106,0.04810722098619463,0.04799228631613393,0.047877899317217296,0.04776405608569734,0.047650752754825436,0.04753798549441466,0.04742575051040881,0.047314044044457534,0.04720286237349746,0.047092201809339165,0.046982058698259936,0.04687242942060225,0.04676331039037784,0.04665469805487724,0.04654658889428483,0.04643897942129908,0.046331866180758144,0.04622524574927064,0.04611911473485133,0.04601346977656205,0.04590830754415737,0.0458036247377351,0.04569941808739169,0.04559568435288221,0.0454924203232849,0.045389622816670416,0.04528728867977544,0.045185414787680594,0.045083998043492945,0.044983035378032485,0.044882523749523014,0.04478246014328702,0.04468284157144473,0.04458366507261706,0.0444849277116326,0.04438662657923837,0.044288758791814514,0.044191321491092714,0.0440943118438782,0.043997727041775604,0.04390156430091822,0.043805820861700935,0.043710493988516556,0.04361558096949559,0.043521079116249424,0.04342698576361683,0.043333298269413685,0.043240014014186014,0.04314713040096614,0.04305464485503196,0.04296255482366939,0.04287085777593776,0.0427795512024382,0.042688632615085084,0.04259809954688024,0.04250794955169009,0.04241818020402564,0.042328789098825155,0.042239773851239705,0.04215113209642125,0.04206286148931349,0.04197495970444538,0.04188742443572703,0.04180025339624834,0.04171344431808012,0.041626994952077515,0.04154090306768608,0.04145516645275013,0.041369782913323445,0.04128475027348241,0.04120006637514133,0.04111572907787006,0.04103173625871392,0.04094808581201573,0.040864775649240015,0.040781803698799475,0.04069916790588333,0.040616866232288,0.04053489665624967,0.04045325717227888,0.040371945790997184,0.04029096053897578,0.040210299458575904,0.040129960607791414,0.04004994206009294,0.039970241904274215,0.03989085824429997,0.03981178919915571,0.039733032902699444,0.03965458750351486,0.03957645116476652,0.039498622064056556,0.039421098393283206,0.039343878358500874,0.03926696017978194,0.039190342091080126,0.039114022340095464,0.039037999188140854,0.03896227091001016,0.038886835793847836,0.03881169214102007,0.03873683826598741,0.038662272496178846,0.03858799317186741,0.038513998646047064,0.03844028728431117,0.03836685746473225,0.03829370757774309,0.03822083602601933,0.03814824122436322,0.038075921599588884,0.03800387559040871,0.03793210164732113,0.03786059823249965,0.03778936381968312,0.03771839689406721,0.03764769595219719,0.037577259501861825,0.03750708606198846,0.0374371741625394,0.03736752234440926,0.03729812915932359,0.03722899316973859,0.03716011294874194,0.0370914870799547,0.03702311415743431,0.03695499278557869,0.036887121579031366,0.03681949916258765,0.036752124171101776,0.03668499524939523,0.036618111052165864,0.0365514702438982,0.03648507149877452,0.0364189135005871,0.03635299494265127,0.03628731452771952,0.036221870967896384,0.03615666298455438,0.036091689308250886,0.03602694867864569,0.03596243984441966,0.03589816156319416,0.035834112601451425,0.03577029173445561,0.035706697746174874],"x":[3.0,3.049800796812749,3.099601593625498,3.149402390438247,3.199203187250996,3.249003984063745,3.298804780876494,3.348605577689243,3.398406374501992,3.448207171314741,3.49800796812749,3.547808764940239,3.597609561752988,3.647410358565737,3.697211155378486,3.747011952191235,3.7968127490039842,3.846613545816733,3.896414342629482,3.946215139442231,3.99601593625498,4.0458167330677295,4.095617529880478,4.145418326693227,4.195219123505976,4.245019920318725,4.294820717131474,4.344621513944223,4.394422310756972,4.444223107569721,4.49402390438247,4.543824701195219,4.5936254980079685,4.643426294820717,4.693227091633466,4.743027888446215,4.792828685258964,4.842629482071713,4.892430278884462,4.942231075697211,4.99203187250996,5.04183266932271,5.091633466135458,5.1414342629482075,5.191235059760956,5.241035856573705,5.290836653386454,5.340637450199203,5.390438247011952,5.440239043824701,5.49003984063745,5.539840637450199,5.589641434262949,5.639442231075697,5.6892430278884465,5.739043824701195,5.788844621513944,5.838645418326693,5.888446215139442,5.938247011952191,5.98804780876494,6.03784860557769,6.087649402390438,6.137450199203188,6.187250996015936,6.2370517928286855,6.286852589641434,6.336653386454183,6.386454183266932,6.436254980079681,6.48605577689243,6.535856573705179,6.585657370517929,6.635458167330677,6.685258964143427,6.735059760956175,6.7848605577689245,6.834661354581673,6.884462151394422,6.934262948207171,6.98406374501992,7.03386454183267,7.083665338645418,7.133466135458168,7.183266932270916,7.233067729083666,7.282868525896414,7.3326693227091635,7.382470119521912,7.432270916334661,7.48207171314741,7.531872509960159,7.581673306772909,7.631474103585657,7.681274900398407,7.731075697211155,7.780876494023905,7.830677290836653,7.8804780876494025,7.930278884462151,7.9800796812749,8.02988047808765,8.079681274900398,8.129482071713147,8.179282868525897,8.229083665338646,8.278884462151394,8.328685258964143,8.378486055776893,8.428286852589641,8.47808764940239,8.52788844621514,8.577689243027889,8.627490039840637,8.677290836653386,8.727091633466136,8.776892430278885,8.826693227091633,8.876494023904382,8.926294820717132,8.97609561752988,9.025896414342629,9.07569721115538,9.125498007968128,9.175298804780876,9.225099601593625,9.274900398406375,9.324701195219124,9.374501992031872,9.42430278884462,9.474103585657371,9.52390438247012,9.573705179282868,9.623505976095618,9.673306772908367,9.723107569721115,9.772908366533864,9.822709163346614,9.872509960159363,9.922310756972111,9.97211155378486,10.02191235059761,10.071713147410359,10.121513944223107,10.171314741035857,10.221115537848606,10.270916334661354,10.320717131474103,10.370517928286853,10.420318725099602,10.47011952191235,10.5199203187251,10.569721115537849,10.619521912350598,10.669322709163346,10.719123505976096,10.768924302788845,10.818725099601593,10.868525896414342,10.918326693227092,10.96812749003984,11.01792828685259,11.06772908366534,11.117529880478088,11.167330677290837,11.217131474103585,11.266932270916335,11.316733067729084,11.366533864541832,11.41633466135458,11.466135458167331,11.51593625498008,11.565737051792828,11.615537848605578,11.665338645418327,11.715139442231076,11.764940239043824,11.814741035856574,11.864541832669323,11.914342629482071,11.96414342629482,12.01394422310757,12.063745019920319,12.113545816733067,12.163346613545817,12.213147410358566,12.262948207171315,12.312749003984063,12.362549800796813,12.412350597609562,12.46215139442231,12.51195219123506,12.56175298804781,12.611553784860558,12.661354581673306,12.711155378486056,12.760956175298805,12.810756972111554,12.860557768924302,12.910358565737052,12.9601593625498,13.00996015936255,13.0597609561753,13.109561752988048,13.159362549800797,13.209163346613545,13.258964143426295,13.308764940239044,13.358565737051793,13.408366533864541,13.458167330677291,13.50796812749004,13.557768924302788,13.607569721115539,13.657370517928287,13.707171314741036,13.756972111553784,13.806772908366534,13.856573705179283,13.906374501992032,13.95617529880478,14.00597609561753,14.055776892430279,14.105577689243027,14.155378486055778,14.205179282868526,14.254980079681275,14.304780876494023,14.354581673306773,14.404382470119522,14.45418326693227,14.50398406374502,14.55378486055777,14.603585657370518,14.653386454183266,14.703187250996017,14.752988047808765,14.802788844621514,14.852589641434262,14.902390438247012,14.952191235059761,15.00199203187251,15.05179282868526,15.101593625498008,15.151394422310757,15.201195219123505,15.250996015936256,15.300796812749004,15.350597609561753,15.400398406374501,15.450199203187251,15.5,15.549800796812749,15.599601593625499,15.649402390438247,15.699203187250996,15.749003984063744,15.798804780876495,15.848605577689243,15.898406374501992,15.94820717131474,15.99800796812749,16.04780876494024,16.09760956175299,16.147410358565736,16.197211155378486,16.247011952191237,16.296812749003983,16.346613545816734,16.39641434262948,16.44621513944223,16.49601593625498,16.545816733067728,16.595617529880478,16.64541832669323,16.695219123505975,16.745019920318725,16.794820717131476,16.844621513944222,16.894422310756973,16.94422310756972,16.99402390438247,17.04382470119522,17.093625498007967,17.143426294820717,17.193227091633467,17.243027888446214,17.292828685258964,17.342629482071715,17.39243027888446,17.44223107569721,17.49203187250996,17.54183266932271,17.59163346613546,17.641434262948206,17.691235059760956,17.741035856573706,17.790836653386453,17.840637450199203,17.890438247011954,17.9402390438247,17.99003984063745,18.0398406374502,18.089641434262948,18.139442231075698,18.189243027888445,18.239043824701195,18.288844621513945,18.338645418326692,18.388446215139442,18.438247011952193,18.48804780876494,18.53784860557769,18.58764940239044,18.637450199203187,18.687250996015937,18.737051792828684,18.786852589641434,18.836653386454184,18.88645418326693,18.93625498007968,18.98605577689243,19.03585657370518,19.08565737051793,19.13545816733068,19.185258964143426,19.235059760956176,19.284860557768923,19.334661354581673,19.384462151394423,19.43426294820717,19.48406374501992,19.53386454183267,19.583665338645417,19.633466135458168,19.683266932270918,19.733067729083665,19.782868525896415,19.83266932270916,19.882470119521912,19.932270916334662,19.98207171314741,20.03187250996016,20.08167330677291,20.131474103585656,20.181274900398407,20.231075697211157,20.280876494023904,20.330677290836654,20.3804780876494,20.43027888446215,20.4800796812749,20.529880478087648,20.5796812749004,20.62948207171315,20.679282868525895,20.729083665338646,20.778884462151396,20.828685258964143,20.878486055776893,20.92828685258964,20.97808764940239,21.02788844621514,21.077689243027887,21.127490039840637,21.177290836653388,21.227091633466134,21.276892430278885,21.326693227091635,21.37649402390438,21.426294820717132,21.47609561752988,21.52589641434263,21.57569721115538,21.625498007968126,21.675298804780876,21.725099601593627,21.774900398406373,21.824701195219124,21.874501992031874,21.92430278884462,21.97410358565737,22.02390438247012,22.073705179282868,22.12350597609562,22.173306772908365,22.223107569721115,22.272908366533866,22.322709163346612,22.372509960159363,22.422310756972113,22.47211155378486,22.52191235059761,22.57171314741036,22.621513944223107,22.671314741035857,22.721115537848604,22.770916334661354,22.820717131474105,22.87051792828685,22.9203187250996,22.970119521912352,23.0199203187251,23.06972111553785,23.1195219123506,23.169322709163346,23.219123505976096,23.268924302788843,23.318725099601593,23.368525896414344,23.41832669322709,23.46812749003984,23.51792828685259,23.567729083665338,23.617529880478088,23.66733067729084,23.717131474103585,23.766932270916335,23.816733067729082,23.866533864541832,23.916334661354583,23.96613545816733,24.01593625498008,24.06573705179283,24.115537848605577,24.165338645418327,24.215139442231077,24.264940239043824,24.314741035856574,24.36454183266932,24.41434262948207,24.46414342629482,24.51394422310757,24.56374501992032,24.61354581673307,24.663346613545816,24.713147410358566,24.762948207171316,24.812749003984063,24.862549800796813,24.91235059760956,24.96215139442231,25.01195219123506,25.061752988047807,25.111553784860558,25.161354581673308,25.211155378486055,25.260956175298805,25.310756972111555,25.360557768924302,25.410358565737052,25.4601593625498,25.50996015936255,25.5597609561753,25.609561752988046,25.659362549800797,25.709163346613547,25.758964143426294,25.808764940239044,25.858565737051794,25.90836653386454,25.95816733067729,26.00796812749004,26.05776892430279,26.10756972111554,26.157370517928285,26.207171314741036,26.256972111553786,26.306772908366533,26.356573705179283,26.406374501992033,26.45617529880478,26.50597609561753,26.55577689243028,26.605577689243027,26.655378486055778,26.705179282868524,26.754980079681275,26.804780876494025,26.85458167330677,26.904382470119522,26.954183266932272,27.00398406374502,27.05378486055777,27.10358565737052,27.153386454183266,27.203187250996017,27.252988047808763,27.302788844621514,27.352589641434264,27.40239043824701,27.45219123505976,27.50199203187251,27.551792828685258,27.60159362549801,27.65139442231076,27.701195219123505,27.750996015936256,27.800796812749002,27.850597609561753,27.900398406374503,27.95019920318725,28.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/larger_negative.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/larger_negative.json new file mode 100644 index 000000000000..643fcc4c413e --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/larger_negative.json @@ -0,0 +1 @@ +{"expected":[-0.035706697746174874,-0.035524803739635645,-0.03534475313496004,-0.035166518056279794,-0.034990071186844614,-0.034815385755076776,-0.03464243552104107,-0.0344711947633156,-0.034301638266249615,-0.034133741307595264,-0.03396747964650042,-0.03380282951185036,-0.03363976759094665,-0.033478271018511675,-0.0333183173660082,-0.03315988463126334,-0.033002951228386805,-0.03284749597797397,-0.03269349809758416,-0.03254093719248531,-0.03238979324665639,-0.03224004661403908,-0.03209167801003094,-0.03194466850321208,-0.03179899950729802,-0.031654652773311594,-0.03151161038196683,-0.031369854736258286,-0.031229368554249366,-0.03109013486205331,-0.03095213698700103,-0.030815358550989984,-0.03067978346400832,-0.030545395917829336,-0.030412180379870556,-0.03028012158721286,-0.03014920454077452,-0.030019414499635733,-0.02989073697550886,-0.029763157727350303,-0.029636662756109582,-0.02951123829961174,-0.029386870827568943,-0.029263547036717706,-0.02914125384607786,-0.029019978392329924,-0.028899708025307228,-0.028780430303599697,-0.028662132990265887,-0.02854480404865035,-0.028428431638303168,-0.028313004110998876,-0.028198510006851887,-0.028084938050525754,-0.027972277147533545,-0.027860516380626966,-0.027749645006271507,-0.027639652451205476,-0.02753052830908044,-0.027422262337180852,-0.027314844453220848,-0.027208264732215826,-0.027102513403427096,-0.02699758084737732,-0.026893457592935092,-0.026790134314466595,-0.0266876018290527,-0.026585851093769607,-0.026484873203031507,-0.026384659385993468,-0.026285201004013065,-0.026186489548169156,-0.026088516636836354,-0.02599127401331365,-0.02589475354350592,-0.02579894721365682,-0.025703847128131816,-0.02560944550725001,-0.025515734685163625,-0.025422707107783722,-0.02533035533075123,-0.025238672017451943,-0.02514764993707445,-0.025057281962709958,-0.02496756106949287,-0.024878480332781183,-0.024790032926375626,-0.02470221212077672,-0.024615011281478652,-0.024528423867299178,-0.024442443428744624,-0.024357063606409164,-0.02427227812940746,-0.024188080813839954,-0.02410446556128996,-0.024021426357351817,-0.023938957270189302,-0.023857052449123707,-0.023775706123250674,-0.023694912600085338,-0.023614666264234894,-0.023534961576098086,-0.023455793070590904,-0.023377155355897926,-0.023299043112248664,-0.02322145109071835,-0.02314437411205262,-0.02306780706551548,-0.02299174490776006,-0.022916182661721667,-0.022841115415532527,-0.022766538321457818,-0.022692446594852447,-0.02261883551313815,-0.022545700414800387,-0.02247303669840466,-0.022400839821631782,-0.02232910530033165,-0.02225782870759517,-0.022187005672843835,-0.022116631880936707,-0.022046703071294253,-0.021977215037038787,-0.021908163624151097,-0.021839544730642917,-0.02177135430574489,-0.021703588349109723,-0.0216362429100301,-0.02156931408667118,-0.021502798025317262,-0.021436690919632316,-0.021370989009934144,-0.02130568858248185,-0.021240785968776255,-0.021176277544873168,-0.02111215973070901,-0.021048428989438754,-0.020985081826785733,-0.020922114790403207,-0.02085952446924734,-0.02079730749296144,-0.02073546053127113,-0.020673980293390314,-0.020612863527437693,-0.020552107019863517,-0.020491707594886527,-0.020431662113940742,-0.02037196747513197,-0.02031262061270379,-0.020253618496512856,-0.0201949581315133,-0.020136636557250107,-0.020078650847361143,-0.020020998109087904,-0.019963675482794537,-0.01990668014149517,-0.019850009290389256,-0.019793660166404926,-0.019737630037749976,-0.019681916203470543,-0.019626515993017193,-0.01957142676581833,-0.019516645910860737,-0.0194621708462772,-0.019407999018940955,-0.019354127904066917,-0.01930055500481952,-0.019247277851927067,-0.01919429400330243,-0.019141601043669985,-0.019089196584198716,-0.019037078262141287,-0.01898524374047902,-0.018933690707572656,-0.01888241687681881,-0.018831419986311944,-0.018780697798511846,-0.01873024809991646,-0.018680068700739936,-0.018630157434595885,-0.018580512158185684,-0.01853113075099173,-0.018482011114975598,-0.018433151174280973,-0.01838454887494127,-0.01833620218459189,-0.018288109092186984,-0.01824026760772067,-0.018192675761952604,-0.018145331606137842,-0.018098233211760927,-0.01805137867027405,-0.018004766092839342,-0.01795839361007507,-0.01791225937180581,-0.017866361546816412,-0.01782069832260977,-0.01777526790516829,-0.017730068518718948,-0.017685098405502014,-0.017640355825543207,-0.01759583905642933,-0.0175515463930873,-0.01750747614756648,-0.017463626648824313,-0.01741999624251514,-0.0173765832907822,-0.01733338617205271,-0.017290403280836007,-0.01724763302752468,-0.017205073838198644,-0.017162724154432107,-0.017120582433103392,-0.01707864714620755,-0.017036916780671672,-0.016995389838173003,-0.016954064834959592,-0.016912940301673653,-0.016872014783177416,-0.016831286838381535,-0.016790755040075985,-0.01675041797476335,-0.016710274242494563,-0.01667032245670696,-0.01663056124406468,-0.016590989244301312,-0.016551605110064833,-0.016512407506764658,-0.016473395112420988,-0.016434566617516154,-0.016395920724848165,-0.016357456149386242,-0.01631917161812843,-0.016281065869961163,-0.016243137655520854,-0.016205385737057303,-0.016167808888299166,-0.01613040589432112,-0.016093175551413,-0.016056116666950667,-0.01601922805926869,-0.015982508557534757,-0.015945957001625845,-0.01590957224200604,-0.01587335313960605,-0.015837298565704348,-0.015801407401809978,-0.015765678539546853,-0.01573011088053973,-0.015694703336301637,-0.015659454828122865,-0.01562436428696144,-0.015589430653335066,-0.015554652877214494,-0.01552002991791836,-0.01548556074400937,-0.015451244333191894,-0.015417079672210935,-0.015383065756752395,-0.015349201591344688,-0.015315486189261637,-0.015281918572426646,-0.015248497771318153,-0.015215222824876272,-0.01518209278041071,-0.01514910669350983,-0.01511626362795097,-0.01508356265561183,-0.015051002856383087,-0.015018583318082096,-0.014986303136367734,-0.014954161414656305,-0.014922157264038543,-0.014890289803197685,-0.01485855815832859,-0.014826961463057864,-0.014795498858365038,-0.014764169492504715,-0.01473297252092975,-0.014701907106215325,-0.014670972417984067,-0.01464016763283206,-0.014609491934255791,-0.014578944512580017,-0.014548524564886551,-0.014518231294943909,-0.014488063913137866,-0.014458021636402831,-0.014428103688154127,-0.014398309298221073,-0.014368637702780906,-0.014339088144293514,-0.014309659871436975,-0.014280352139043898,-0.01425116420803852,-0.014222095345374596,-0.014193144823974033,-0.014164311922666288,-0.014135595926128489,-0.014106996124826274,-0.014078511814955374,-0.014050142298383883,-0.014021886882595229,-0.013993744880631825,-0.013965715611039412,-0.013937798397812062,-0.013909992570337827,-0.013882297463345053,-0.013854712416849345,-0.013827236776101122,-0.013799869891533832,-0.013772611118712768,-0.013745459818284497,-0.013718415355926864,-0.013691477102299612,-0.013664644432995556,-0.01363791672849237,-0.013611293374104886,-0.013584773759937985,-0.01355835728084004,-0.013532043336356886,-0.013505831330686321,-0.013479720672633151,-0.013453710775564749,-0.013427801057367132,-0.013401990940401518,-0.013376279851461429,-0.01335066722173024,-0.013325152486739256,-0.01329973508632624,-0.01327441446459441,-0.013249190069871944,-0.013224061354671903,-0.013199027775652624,-0.013174088793578563,-0.013149243873281593,-0.013124492483622713,-0.01309983409745421,-0.013075268191582235,-0.01305079424672981,-0.013026411747500233,-0.013002120182340912,-0.01297791904350759,-0.012953807827028976,-0.012929786032671753,-0.012905853163905998,-0.012882008727870977,-0.012858252235341313,-0.01283458320069352,-0.012811001141872926,-0.012787505580360958,-0.012764096041142764,-0.012740772052675209,-0.012717533146855222,-0.012694378858988477,-0.012671308727758424,-0.012648322295195661,-0.01262541910664762,-0.012602598710748602,-0.01257986065939014,-0.012557204507691641,-0.012534629813971408,-0.012512136139717914,-0.012489723049561436,-0.012467390111245941,-0.012445136895601321,-0.012422962976515902,-0.012400867930909236,-0.012378851338705215,-0.012356912782805426,-0.012335051849062844,-0.01231326812625575,-0.012291561206061955,-0.012269930683033298,-0.0122483761545704,-0.012226897220897677,-0.012205493485038648,-0.012184164552791454,-0.012162910032704694,-0.012141729536053443,-0.012120622676815582,-0.01209958907164833,-0.012078628339865062,-0.012057740103412316,-0.012036923986847088,-0.012016179617314325,-0.011995506624524685,-0.01197490464073248,-0.011954373300713894,-0.011933912241745387,-0.011913521103582356,-0.011893199528437969,-0.011872947160962264,-0.011852763648221427,-0.011832648639677293,-0.011812601787167053,-0.011792622744883165,-0.011772711169353498,-0.011752866719421603,-0.011733089056227277,-0.011713377843187246,-0.011693732745976088,-0.011674153432507335,-0.011654639572914741,-0.011635190839533788,-0.011615806906883325,-0.011596487451647423,-0.011577232152657397,-0.011558040690874015,-0.01153891274936987,-0.01151984801331195,-0.011500846169944344,-0.011481906908571166,-0.011463029920539606,-0.01144421489922317,-0.011425461540005072,-0.01140676954026181,-0.011388138599346882,-0.01136956841857466,-0.011351058701204439,-0.011332609152424638,-0.01131421947933713,-0.011295889390941765,-0.011277618598121006,-0.011259406813624742,-0.01124125375205522,-0.011223159129852155,-0.011205122665277949,-0.011187144078403091,-0.011169223091091652,-0.011151359426986968,-0.011133552811497407,-0.011115802971782331,-0.011098109636738138,-0.011080472536984473,-0.011062891404850552,-0.011045365974361628,-0.011027895981225574,-0.0110104811628196,-0.010993121258177092,-0.010975816007974584,-0.010958565154518837,-0.01094136844173406,-0.010924225615149228,-0.01090713642188554,-0.01089010061064398,-0.010873117931693002,-0.010856188136856333,-0.010839310979500876,-0.010822486214524737,-0.010805713598345364,-0.010788992888887789,-0.01077232384557299,-0.010755706229306343,-0.010739139802466192,-0.010722624328892542,-0.010706159573875808,-0.010689745304145723,-0.010673381287860304,-0.010657067294594959,-0.010640803095331648,-0.010624588462448176,-0.010608423169707582,-0.010592306992247615,-0.010576239706570302,-0.010560221090531619,-0.010544250923331258,-0.010528328985502485,-0.010512455058902075,-0.010496628926700367,-0.01048085037337137,-0.010465119184683007,-0.010449435147687402,-0.010433798050711271,-0.01041820768334641,-0.010402663836440252,-0.010387166302086515,-0.010371714873615935,-0.010356309345587077,-0.010340949513777238,-0.010325635175173412,-0.010310366127963348,-0.010295142171526703,-0.01027996310642623,-0.010264828734399087,-0.010249738858348198,-0.010234693282333705,-0.010219691811564482,-0.010204734252389725,-0.01018982041229063,-0.010174950099872125,-0.010160123124854686,-0.01014533929806623,-0.010130598431434051,-0.010115900337976868,-0.010101244831796894,-0.01008663172807203,-0.010072060843048063,-0.010057531994030993,-0.010043044999379382,-0.010028599678496784,-0.010014195851824252,-0.009999833340832886],"x":[-28.0,-28.143426294820717,-28.286852589641434,-28.43027888446215,-28.573705179282868,-28.717131474103585,-28.860557768924302,-29.00398406374502,-29.147410358565736,-29.290836653386453,-29.43426294820717,-29.577689243027887,-29.721115537848604,-29.86454183266932,-30.00796812749004,-30.15139442231076,-30.294820717131476,-30.438247011952193,-30.58167330677291,-30.725099601593627,-30.868525896414344,-31.01195219123506,-31.155378486055778,-31.298804780876495,-31.44223107569721,-31.58565737051793,-31.729083665338646,-31.872509960159363,-32.01593625498008,-32.1593625498008,-32.30278884462152,-32.44621513944223,-32.58964143426295,-32.733067729083665,-32.876494023904385,-33.0199203187251,-33.16334661354582,-33.30677290836653,-33.45019920318725,-33.59362549800797,-33.73705179282869,-33.8804780876494,-34.02390438247012,-34.167330677290835,-34.310756972111555,-34.45418326693227,-34.59760956175299,-34.7410358565737,-34.88446215139442,-35.02788844621514,-35.17131474103586,-35.31474103585657,-35.45816733067729,-35.601593625498005,-35.745019920318725,-35.88844621513944,-36.03187250996016,-36.17529880478088,-36.31872509960159,-36.462151394422314,-36.60557768924303,-36.74900398406375,-36.89243027888446,-37.03585657370518,-37.179282868525895,-37.322709163346616,-37.46613545816733,-37.60956175298805,-37.75298804780876,-37.896414342629484,-38.0398406374502,-38.18326693227092,-38.32669322709163,-38.47011952191235,-38.613545816733065,-38.756972111553786,-38.9003984063745,-39.04382470119522,-39.18725099601593,-39.330677290836654,-39.47410358565737,-39.61752988047809,-39.7609561752988,-39.90438247011952,-40.04780876494024,-40.191235059760956,-40.33466135458168,-40.47808764940239,-40.62151394422311,-40.764940239043824,-40.908366533864545,-41.05179282868526,-41.19521912350598,-41.33864541832669,-41.48207171314741,-41.625498007968126,-41.76892430278885,-41.91235059760956,-42.05577689243028,-42.199203187250994,-42.342629482071715,-42.48605577689243,-42.62948207171315,-42.77290836653386,-42.91633466135458,-43.059760956175296,-43.20318725099602,-43.34661354581673,-43.49003984063745,-43.633466135458164,-43.776892430278885,-43.9203187250996,-44.06374501992032,-44.20717131474104,-44.35059760956175,-44.49402390438247,-44.63745019920319,-44.78087649402391,-44.92430278884462,-45.06772908366534,-45.211155378486055,-45.354581673306775,-45.49800796812749,-45.64143426294821,-45.78486055776892,-45.92828685258964,-46.07171314741036,-46.21513944223108,-46.35856573705179,-46.50199203187251,-46.645418326693225,-46.788844621513945,-46.93227091633466,-47.07569721115538,-47.21912350597609,-47.36254980079681,-47.50597609561753,-47.64940239043825,-47.79282868525896,-47.93625498007968,-48.0796812749004,-48.223107569721115,-48.366533864541836,-48.50996015936255,-48.65338645418327,-48.79681274900398,-48.940239043824704,-49.08366533864542,-49.22709163346614,-49.37051792828685,-49.51394422310757,-49.657370517928285,-49.800796812749006,-49.94422310756972,-50.08764940239044,-50.23107569721115,-50.374501992031874,-50.51792828685259,-50.66135458167331,-50.80478087649402,-50.94820717131474,-51.091633466135455,-51.235059760956176,-51.37848605577689,-51.52191235059761,-51.66533864541832,-51.808764940239044,-51.95219123505976,-52.09561752988048,-52.2390438247012,-52.38247011952191,-52.52589641434263,-52.669322709163346,-52.81274900398407,-52.95617529880478,-53.0996015936255,-53.243027888446214,-53.386454183266935,-53.52988047808765,-53.67330677290837,-53.81673306772908,-53.9601593625498,-54.103585657370516,-54.24701195219124,-54.39043824701195,-54.53386454183267,-54.677290836653384,-54.820717131474105,-54.96414342629482,-55.10756972111554,-55.25099601593625,-55.39442231075697,-55.537848605577686,-55.68127490039841,-55.82470119521912,-55.96812749003984,-56.11155378486056,-56.254980079681275,-56.398406374501995,-56.54183266932271,-56.68525896414343,-56.82868525896414,-56.97211155378486,-57.11553784860558,-57.2589641434263,-57.40239043824701,-57.54581673306773,-57.689243027888445,-57.832669322709165,-57.97609561752988,-58.1195219123506,-58.26294820717131,-58.40637450199203,-58.54980079681275,-58.69322709163347,-58.83665338645418,-58.9800796812749,-59.123505976095615,-59.266932270916335,-59.41035856573705,-59.55378486055777,-59.69721115537848,-59.8406374501992,-59.98406374501992,-60.12749003984064,-60.27091633466136,-60.41434262948207,-60.55776892430279,-60.701195219123505,-60.844621513944226,-60.98804780876494,-61.13147410358566,-61.27490039840637,-61.418326693227094,-61.56175298804781,-61.70517928286853,-61.84860557768924,-61.99203187250996,-62.135458167330675,-62.278884462151396,-62.42231075697211,-62.56573705179283,-62.70916334661354,-62.852589641434264,-62.99601593625498,-63.1394422310757,-63.28286852589641,-63.42629482071713,-63.569721115537845,-63.713147410358566,-63.85657370517928,-64.0,-64.14342629482071,-64.28685258964144,-64.43027888446215,-64.57370517928287,-64.71713147410358,-64.86055776892431,-65.00398406374502,-65.14741035856574,-65.29083665338645,-65.43426294820718,-65.57768924302789,-65.7211155378486,-65.86454183266932,-66.00796812749005,-66.15139442231076,-66.29482071713147,-66.43824701195219,-66.58167330677291,-66.72509960159363,-66.86852589641434,-67.01195219123505,-67.15537848605578,-67.2988047808765,-67.44223107569721,-67.58565737051792,-67.72908366533865,-67.87250996015936,-68.01593625498008,-68.1593625498008,-68.30278884462152,-68.44621513944223,-68.58964143426294,-68.73306772908367,-68.87649402390439,-69.0199203187251,-69.16334661354581,-69.30677290836654,-69.45019920318725,-69.59362549800797,-69.73705179282868,-69.88047808764941,-70.02390438247012,-70.16733067729083,-70.31075697211155,-70.45418326693228,-70.59760956175299,-70.7410358565737,-70.88446215139442,-71.02788844621514,-71.17131474103586,-71.31474103585657,-71.45816733067728,-71.60159362549801,-71.74501992031873,-71.88844621513944,-72.03187250996017,-72.17529880478088,-72.3187250996016,-72.4621513944223,-72.60557768924303,-72.74900398406375,-72.89243027888446,-73.03585657370517,-73.1792828685259,-73.32270916334662,-73.46613545816733,-73.60956175298804,-73.75298804780877,-73.89641434262948,-74.0398406374502,-74.18326693227091,-74.32669322709164,-74.47011952191235,-74.61354581673307,-74.75697211155378,-74.9003984063745,-75.04382470119522,-75.18725099601593,-75.33067729083665,-75.47410358565737,-75.61752988047809,-75.7609561752988,-75.90438247011951,-76.04780876494024,-76.19123505976096,-76.33466135458167,-76.4780876494024,-76.62151394422311,-76.76494023904382,-76.90836653386454,-77.05179282868527,-77.19521912350598,-77.33864541832669,-77.4820717131474,-77.62549800796813,-77.76892430278885,-77.91235059760956,-78.05577689243027,-78.199203187251,-78.34262948207171,-78.48605577689243,-78.62948207171314,-78.77290836653387,-78.91633466135458,-79.0597609561753,-79.20318725099601,-79.34661354581674,-79.49003984063745,-79.63346613545816,-79.77689243027888,-79.9203187250996,-80.06374501992032,-80.20717131474103,-80.35059760956176,-80.49402390438247,-80.63745019920319,-80.7808764940239,-80.92430278884463,-81.06772908366534,-81.21115537848605,-81.35458167330677,-81.4980079681275,-81.64143426294821,-81.78486055776892,-81.92828685258964,-82.07171314741036,-82.21513944223108,-82.35856573705179,-82.5019920318725,-82.64541832669323,-82.78884462151395,-82.93227091633466,-83.07569721115537,-83.2191235059761,-83.36254980079681,-83.50597609561753,-83.64940239043824,-83.79282868525897,-83.93625498007968,-84.0796812749004,-84.22310756972112,-84.36653386454184,-84.50996015936255,-84.65338645418326,-84.79681274900399,-84.9402390438247,-85.08366533864542,-85.22709163346613,-85.37051792828686,-85.51394422310757,-85.65737051792829,-85.800796812749,-85.94422310756973,-86.08764940239044,-86.23107569721115,-86.37450199203187,-86.5179282868526,-86.66135458167331,-86.80478087649402,-86.94820717131473,-87.09163346613546,-87.23505976095618,-87.37848605577689,-87.5219123505976,-87.66533864541833,-87.80876494023904,-87.95219123505976,-88.09561752988049,-88.2390438247012,-88.38247011952191,-88.52589641434263,-88.66932270916335,-88.81274900398407,-88.95617529880478,-89.0996015936255,-89.24302788844622,-89.38645418326693,-89.52988047808765,-89.67330677290836,-89.81673306772909,-89.9601593625498,-90.10358565737052,-90.24701195219123,-90.39043824701196,-90.53386454183267,-90.67729083665338,-90.8207171314741,-90.96414342629483,-91.10756972111554,-91.25099601593625,-91.39442231075697,-91.5378486055777,-91.6812749003984,-91.82470119521912,-91.96812749003983,-92.11155378486056,-92.25498007968127,-92.39840637450199,-92.54183266932272,-92.68525896414343,-92.82868525896414,-92.97211155378486,-93.11553784860558,-93.2589641434263,-93.40239043824701,-93.54581673306772,-93.68924302788845,-93.83266932270917,-93.97609561752988,-94.11952191235059,-94.26294820717132,-94.40637450199203,-94.54980079681275,-94.69322709163346,-94.83665338645419,-94.9800796812749,-95.12350597609561,-95.26693227091633,-95.41035856573706,-95.55378486055777,-95.69721115537848,-95.8406374501992,-95.98406374501992,-96.12749003984064,-96.27091633466135,-96.41434262948208,-96.55776892430279,-96.7011952191235,-96.84462151394422,-96.98804780876495,-97.13147410358566,-97.27490039840637,-97.41832669322709,-97.56175298804781,-97.70517928286853,-97.84860557768924,-97.99203187250995,-98.13545816733068,-98.2788844621514,-98.42231075697211,-98.56573705179282,-98.70916334661355,-98.85258964143426,-98.99601593625498,-99.13944223107569,-99.28286852589642,-99.42629482071713,-99.56972111553785,-99.71314741035856,-99.85657370517929,-100.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/larger_positive.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/larger_positive.json new file mode 100644 index 000000000000..a2581e9b32c3 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/larger_positive.json @@ -0,0 +1 @@ +{"expected":[0.035706697746174874,0.035524803739635645,0.03534475313496004,0.035166518056279794,0.034990071186844614,0.034815385755076776,0.03464243552104107,0.0344711947633156,0.034301638266249615,0.034133741307595264,0.03396747964650042,0.03380282951185036,0.03363976759094665,0.033478271018511675,0.0333183173660082,0.03315988463126334,0.033002951228386805,0.03284749597797397,0.03269349809758416,0.03254093719248531,0.03238979324665639,0.03224004661403908,0.03209167801003094,0.03194466850321208,0.03179899950729802,0.031654652773311594,0.03151161038196683,0.031369854736258286,0.031229368554249366,0.03109013486205331,0.03095213698700103,0.030815358550989984,0.03067978346400832,0.030545395917829336,0.030412180379870556,0.03028012158721286,0.03014920454077452,0.030019414499635733,0.02989073697550886,0.029763157727350303,0.029636662756109582,0.02951123829961174,0.029386870827568943,0.029263547036717706,0.02914125384607786,0.029019978392329924,0.028899708025307228,0.028780430303599697,0.028662132990265887,0.02854480404865035,0.028428431638303168,0.028313004110998876,0.028198510006851887,0.028084938050525754,0.027972277147533545,0.027860516380626966,0.027749645006271507,0.027639652451205476,0.02753052830908044,0.027422262337180852,0.027314844453220848,0.027208264732215826,0.027102513403427096,0.02699758084737732,0.026893457592935092,0.026790134314466595,0.0266876018290527,0.026585851093769607,0.026484873203031507,0.026384659385993468,0.026285201004013065,0.026186489548169156,0.026088516636836354,0.02599127401331365,0.02589475354350592,0.02579894721365682,0.025703847128131816,0.02560944550725001,0.025515734685163625,0.025422707107783722,0.02533035533075123,0.025238672017451943,0.02514764993707445,0.025057281962709958,0.02496756106949287,0.024878480332781183,0.024790032926375626,0.02470221212077672,0.024615011281478652,0.024528423867299178,0.024442443428744624,0.024357063606409164,0.02427227812940746,0.024188080813839954,0.02410446556128996,0.024021426357351817,0.023938957270189302,0.023857052449123707,0.023775706123250674,0.023694912600085338,0.023614666264234894,0.023534961576098086,0.023455793070590904,0.023377155355897926,0.023299043112248664,0.02322145109071835,0.02314437411205262,0.02306780706551548,0.02299174490776006,0.022916182661721667,0.022841115415532527,0.022766538321457818,0.022692446594852447,0.02261883551313815,0.022545700414800387,0.02247303669840466,0.022400839821631782,0.02232910530033165,0.02225782870759517,0.022187005672843835,0.022116631880936707,0.022046703071294253,0.021977215037038787,0.021908163624151097,0.021839544730642917,0.02177135430574489,0.021703588349109723,0.0216362429100301,0.02156931408667118,0.021502798025317262,0.021436690919632316,0.021370989009934144,0.02130568858248185,0.021240785968776255,0.021176277544873168,0.02111215973070901,0.021048428989438754,0.020985081826785733,0.020922114790403207,0.02085952446924734,0.02079730749296144,0.02073546053127113,0.020673980293390314,0.020612863527437693,0.020552107019863517,0.020491707594886527,0.020431662113940742,0.02037196747513197,0.02031262061270379,0.020253618496512856,0.0201949581315133,0.020136636557250107,0.020078650847361143,0.020020998109087904,0.019963675482794537,0.01990668014149517,0.019850009290389256,0.019793660166404926,0.019737630037749976,0.019681916203470543,0.019626515993017193,0.01957142676581833,0.019516645910860737,0.0194621708462772,0.019407999018940955,0.019354127904066917,0.01930055500481952,0.019247277851927067,0.01919429400330243,0.019141601043669985,0.019089196584198716,0.019037078262141287,0.01898524374047902,0.018933690707572656,0.01888241687681881,0.018831419986311944,0.018780697798511846,0.01873024809991646,0.018680068700739936,0.018630157434595885,0.018580512158185684,0.01853113075099173,0.018482011114975598,0.018433151174280973,0.01838454887494127,0.01833620218459189,0.018288109092186984,0.01824026760772067,0.018192675761952604,0.018145331606137842,0.018098233211760927,0.01805137867027405,0.018004766092839342,0.01795839361007507,0.01791225937180581,0.017866361546816412,0.01782069832260977,0.01777526790516829,0.017730068518718948,0.017685098405502014,0.017640355825543207,0.01759583905642933,0.0175515463930873,0.01750747614756648,0.017463626648824313,0.01741999624251514,0.0173765832907822,0.01733338617205271,0.017290403280836007,0.01724763302752468,0.017205073838198644,0.017162724154432107,0.017120582433103392,0.01707864714620755,0.017036916780671672,0.016995389838173003,0.016954064834959592,0.016912940301673653,0.016872014783177416,0.016831286838381535,0.016790755040075985,0.01675041797476335,0.016710274242494563,0.01667032245670696,0.01663056124406468,0.016590989244301312,0.016551605110064833,0.016512407506764658,0.016473395112420988,0.016434566617516154,0.016395920724848165,0.016357456149386242,0.01631917161812843,0.016281065869961163,0.016243137655520854,0.016205385737057303,0.016167808888299166,0.01613040589432112,0.016093175551413,0.016056116666950667,0.01601922805926869,0.015982508557534757,0.015945957001625845,0.01590957224200604,0.01587335313960605,0.015837298565704348,0.015801407401809978,0.015765678539546853,0.01573011088053973,0.015694703336301637,0.015659454828122865,0.01562436428696144,0.015589430653335066,0.015554652877214494,0.01552002991791836,0.01548556074400937,0.015451244333191894,0.015417079672210935,0.015383065756752395,0.015349201591344688,0.015315486189261637,0.015281918572426646,0.015248497771318153,0.015215222824876272,0.01518209278041071,0.01514910669350983,0.01511626362795097,0.01508356265561183,0.015051002856383087,0.015018583318082096,0.014986303136367734,0.014954161414656305,0.014922157264038543,0.014890289803197685,0.01485855815832859,0.014826961463057864,0.014795498858365038,0.014764169492504715,0.01473297252092975,0.014701907106215325,0.014670972417984067,0.01464016763283206,0.014609491934255791,0.014578944512580017,0.014548524564886551,0.014518231294943909,0.014488063913137866,0.014458021636402831,0.014428103688154127,0.014398309298221073,0.014368637702780906,0.014339088144293514,0.014309659871436975,0.014280352139043898,0.01425116420803852,0.014222095345374596,0.014193144823974033,0.014164311922666288,0.014135595926128489,0.014106996124826274,0.014078511814955374,0.014050142298383883,0.014021886882595229,0.013993744880631825,0.013965715611039412,0.013937798397812062,0.013909992570337827,0.013882297463345053,0.013854712416849345,0.013827236776101122,0.013799869891533832,0.013772611118712768,0.013745459818284497,0.013718415355926864,0.013691477102299612,0.013664644432995556,0.01363791672849237,0.013611293374104886,0.013584773759937985,0.01355835728084004,0.013532043336356886,0.013505831330686321,0.013479720672633151,0.013453710775564749,0.013427801057367132,0.013401990940401518,0.013376279851461429,0.01335066722173024,0.013325152486739256,0.01329973508632624,0.01327441446459441,0.013249190069871944,0.013224061354671903,0.013199027775652624,0.013174088793578563,0.013149243873281593,0.013124492483622713,0.01309983409745421,0.013075268191582235,0.01305079424672981,0.013026411747500233,0.013002120182340912,0.01297791904350759,0.012953807827028976,0.012929786032671753,0.012905853163905998,0.012882008727870977,0.012858252235341313,0.01283458320069352,0.012811001141872926,0.012787505580360958,0.012764096041142764,0.012740772052675209,0.012717533146855222,0.012694378858988477,0.012671308727758424,0.012648322295195661,0.01262541910664762,0.012602598710748602,0.01257986065939014,0.012557204507691641,0.012534629813971408,0.012512136139717914,0.012489723049561436,0.012467390111245941,0.012445136895601321,0.012422962976515902,0.012400867930909236,0.012378851338705215,0.012356912782805426,0.012335051849062844,0.01231326812625575,0.012291561206061955,0.012269930683033298,0.0122483761545704,0.012226897220897677,0.012205493485038648,0.012184164552791454,0.012162910032704694,0.012141729536053443,0.012120622676815582,0.01209958907164833,0.012078628339865062,0.012057740103412316,0.012036923986847088,0.012016179617314325,0.011995506624524685,0.01197490464073248,0.011954373300713894,0.011933912241745387,0.011913521103582356,0.011893199528437969,0.011872947160962264,0.011852763648221427,0.011832648639677293,0.011812601787167053,0.011792622744883165,0.011772711169353498,0.011752866719421603,0.011733089056227277,0.011713377843187246,0.011693732745976088,0.011674153432507335,0.011654639572914741,0.011635190839533788,0.011615806906883325,0.011596487451647423,0.011577232152657397,0.011558040690874015,0.01153891274936987,0.01151984801331195,0.011500846169944344,0.011481906908571166,0.011463029920539606,0.01144421489922317,0.011425461540005072,0.01140676954026181,0.011388138599346882,0.01136956841857466,0.011351058701204439,0.011332609152424638,0.01131421947933713,0.011295889390941765,0.011277618598121006,0.011259406813624742,0.01124125375205522,0.011223159129852155,0.011205122665277949,0.011187144078403091,0.011169223091091652,0.011151359426986968,0.011133552811497407,0.011115802971782331,0.011098109636738138,0.011080472536984473,0.011062891404850552,0.011045365974361628,0.011027895981225574,0.0110104811628196,0.010993121258177092,0.010975816007974584,0.010958565154518837,0.01094136844173406,0.010924225615149228,0.01090713642188554,0.01089010061064398,0.010873117931693002,0.010856188136856333,0.010839310979500876,0.010822486214524737,0.010805713598345364,0.010788992888887789,0.01077232384557299,0.010755706229306343,0.010739139802466192,0.010722624328892542,0.010706159573875808,0.010689745304145723,0.010673381287860304,0.010657067294594959,0.010640803095331648,0.010624588462448176,0.010608423169707582,0.010592306992247615,0.010576239706570302,0.010560221090531619,0.010544250923331258,0.010528328985502485,0.010512455058902075,0.010496628926700367,0.01048085037337137,0.010465119184683007,0.010449435147687402,0.010433798050711271,0.01041820768334641,0.010402663836440252,0.010387166302086515,0.010371714873615935,0.010356309345587077,0.010340949513777238,0.010325635175173412,0.010310366127963348,0.010295142171526703,0.01027996310642623,0.010264828734399087,0.010249738858348198,0.010234693282333705,0.010219691811564482,0.010204734252389725,0.01018982041229063,0.010174950099872125,0.010160123124854686,0.01014533929806623,0.010130598431434051,0.010115900337976868,0.010101244831796894,0.01008663172807203,0.010072060843048063,0.010057531994030993,0.010043044999379382,0.010028599678496784,0.010014195851824252,0.009999833340832886],"x":[28.0,28.143426294820717,28.286852589641434,28.43027888446215,28.573705179282868,28.717131474103585,28.860557768924302,29.00398406374502,29.147410358565736,29.290836653386453,29.43426294820717,29.577689243027887,29.721115537848604,29.86454183266932,30.00796812749004,30.15139442231076,30.294820717131476,30.438247011952193,30.58167330677291,30.725099601593627,30.868525896414344,31.01195219123506,31.155378486055778,31.298804780876495,31.44223107569721,31.58565737051793,31.729083665338646,31.872509960159363,32.01593625498008,32.1593625498008,32.30278884462152,32.44621513944223,32.58964143426295,32.733067729083665,32.876494023904385,33.0199203187251,33.16334661354582,33.30677290836653,33.45019920318725,33.59362549800797,33.73705179282869,33.8804780876494,34.02390438247012,34.167330677290835,34.310756972111555,34.45418326693227,34.59760956175299,34.7410358565737,34.88446215139442,35.02788844621514,35.17131474103586,35.31474103585657,35.45816733067729,35.601593625498005,35.745019920318725,35.88844621513944,36.03187250996016,36.17529880478088,36.31872509960159,36.462151394422314,36.60557768924303,36.74900398406375,36.89243027888446,37.03585657370518,37.179282868525895,37.322709163346616,37.46613545816733,37.60956175298805,37.75298804780876,37.896414342629484,38.0398406374502,38.18326693227092,38.32669322709163,38.47011952191235,38.613545816733065,38.756972111553786,38.9003984063745,39.04382470119522,39.18725099601593,39.330677290836654,39.47410358565737,39.61752988047809,39.7609561752988,39.90438247011952,40.04780876494024,40.191235059760956,40.33466135458168,40.47808764940239,40.62151394422311,40.764940239043824,40.908366533864545,41.05179282868526,41.19521912350598,41.33864541832669,41.48207171314741,41.625498007968126,41.76892430278885,41.91235059760956,42.05577689243028,42.199203187250994,42.342629482071715,42.48605577689243,42.62948207171315,42.77290836653386,42.91633466135458,43.059760956175296,43.20318725099602,43.34661354581673,43.49003984063745,43.633466135458164,43.776892430278885,43.9203187250996,44.06374501992032,44.20717131474104,44.35059760956175,44.49402390438247,44.63745019920319,44.78087649402391,44.92430278884462,45.06772908366534,45.211155378486055,45.354581673306775,45.49800796812749,45.64143426294821,45.78486055776892,45.92828685258964,46.07171314741036,46.21513944223108,46.35856573705179,46.50199203187251,46.645418326693225,46.788844621513945,46.93227091633466,47.07569721115538,47.21912350597609,47.36254980079681,47.50597609561753,47.64940239043825,47.79282868525896,47.93625498007968,48.0796812749004,48.223107569721115,48.366533864541836,48.50996015936255,48.65338645418327,48.79681274900398,48.940239043824704,49.08366533864542,49.22709163346614,49.37051792828685,49.51394422310757,49.657370517928285,49.800796812749006,49.94422310756972,50.08764940239044,50.23107569721115,50.374501992031874,50.51792828685259,50.66135458167331,50.80478087649402,50.94820717131474,51.091633466135455,51.235059760956176,51.37848605577689,51.52191235059761,51.66533864541832,51.808764940239044,51.95219123505976,52.09561752988048,52.2390438247012,52.38247011952191,52.52589641434263,52.669322709163346,52.81274900398407,52.95617529880478,53.0996015936255,53.243027888446214,53.386454183266935,53.52988047808765,53.67330677290837,53.81673306772908,53.9601593625498,54.103585657370516,54.24701195219124,54.39043824701195,54.53386454183267,54.677290836653384,54.820717131474105,54.96414342629482,55.10756972111554,55.25099601593625,55.39442231075697,55.537848605577686,55.68127490039841,55.82470119521912,55.96812749003984,56.11155378486056,56.254980079681275,56.398406374501995,56.54183266932271,56.68525896414343,56.82868525896414,56.97211155378486,57.11553784860558,57.2589641434263,57.40239043824701,57.54581673306773,57.689243027888445,57.832669322709165,57.97609561752988,58.1195219123506,58.26294820717131,58.40637450199203,58.54980079681275,58.69322709163347,58.83665338645418,58.9800796812749,59.123505976095615,59.266932270916335,59.41035856573705,59.55378486055777,59.69721115537848,59.8406374501992,59.98406374501992,60.12749003984064,60.27091633466136,60.41434262948207,60.55776892430279,60.701195219123505,60.844621513944226,60.98804780876494,61.13147410358566,61.27490039840637,61.418326693227094,61.56175298804781,61.70517928286853,61.84860557768924,61.99203187250996,62.135458167330675,62.278884462151396,62.42231075697211,62.56573705179283,62.70916334661354,62.852589641434264,62.99601593625498,63.1394422310757,63.28286852589641,63.42629482071713,63.569721115537845,63.713147410358566,63.85657370517928,64.0,64.14342629482071,64.28685258964144,64.43027888446215,64.57370517928287,64.71713147410358,64.86055776892431,65.00398406374502,65.14741035856574,65.29083665338645,65.43426294820718,65.57768924302789,65.7211155378486,65.86454183266932,66.00796812749005,66.15139442231076,66.29482071713147,66.43824701195219,66.58167330677291,66.72509960159363,66.86852589641434,67.01195219123505,67.15537848605578,67.2988047808765,67.44223107569721,67.58565737051792,67.72908366533865,67.87250996015936,68.01593625498008,68.1593625498008,68.30278884462152,68.44621513944223,68.58964143426294,68.73306772908367,68.87649402390439,69.0199203187251,69.16334661354581,69.30677290836654,69.45019920318725,69.59362549800797,69.73705179282868,69.88047808764941,70.02390438247012,70.16733067729083,70.31075697211155,70.45418326693228,70.59760956175299,70.7410358565737,70.88446215139442,71.02788844621514,71.17131474103586,71.31474103585657,71.45816733067728,71.60159362549801,71.74501992031873,71.88844621513944,72.03187250996017,72.17529880478088,72.3187250996016,72.4621513944223,72.60557768924303,72.74900398406375,72.89243027888446,73.03585657370517,73.1792828685259,73.32270916334662,73.46613545816733,73.60956175298804,73.75298804780877,73.89641434262948,74.0398406374502,74.18326693227091,74.32669322709164,74.47011952191235,74.61354581673307,74.75697211155378,74.9003984063745,75.04382470119522,75.18725099601593,75.33067729083665,75.47410358565737,75.61752988047809,75.7609561752988,75.90438247011951,76.04780876494024,76.19123505976096,76.33466135458167,76.4780876494024,76.62151394422311,76.76494023904382,76.90836653386454,77.05179282868527,77.19521912350598,77.33864541832669,77.4820717131474,77.62549800796813,77.76892430278885,77.91235059760956,78.05577689243027,78.199203187251,78.34262948207171,78.48605577689243,78.62948207171314,78.77290836653387,78.91633466135458,79.0597609561753,79.20318725099601,79.34661354581674,79.49003984063745,79.63346613545816,79.77689243027888,79.9203187250996,80.06374501992032,80.20717131474103,80.35059760956176,80.49402390438247,80.63745019920319,80.7808764940239,80.92430278884463,81.06772908366534,81.21115537848605,81.35458167330677,81.4980079681275,81.64143426294821,81.78486055776892,81.92828685258964,82.07171314741036,82.21513944223108,82.35856573705179,82.5019920318725,82.64541832669323,82.78884462151395,82.93227091633466,83.07569721115537,83.2191235059761,83.36254980079681,83.50597609561753,83.64940239043824,83.79282868525897,83.93625498007968,84.0796812749004,84.22310756972112,84.36653386454184,84.50996015936255,84.65338645418326,84.79681274900399,84.9402390438247,85.08366533864542,85.22709163346613,85.37051792828686,85.51394422310757,85.65737051792829,85.800796812749,85.94422310756973,86.08764940239044,86.23107569721115,86.37450199203187,86.5179282868526,86.66135458167331,86.80478087649402,86.94820717131473,87.09163346613546,87.23505976095618,87.37848605577689,87.5219123505976,87.66533864541833,87.80876494023904,87.95219123505976,88.09561752988049,88.2390438247012,88.38247011952191,88.52589641434263,88.66932270916335,88.81274900398407,88.95617529880478,89.0996015936255,89.24302788844622,89.38645418326693,89.52988047808765,89.67330677290836,89.81673306772909,89.9601593625498,90.10358565737052,90.24701195219123,90.39043824701196,90.53386454183267,90.67729083665338,90.8207171314741,90.96414342629483,91.10756972111554,91.25099601593625,91.39442231075697,91.5378486055777,91.6812749003984,91.82470119521912,91.96812749003983,92.11155378486056,92.25498007968127,92.39840637450199,92.54183266932272,92.68525896414343,92.82868525896414,92.97211155378486,93.11553784860558,93.2589641434263,93.40239043824701,93.54581673306772,93.68924302788845,93.83266932270917,93.97609561752988,94.11952191235059,94.26294820717132,94.40637450199203,94.54980079681275,94.69322709163346,94.83665338645419,94.9800796812749,95.12350597609561,95.26693227091633,95.41035856573706,95.55378486055777,95.69721115537848,95.8406374501992,95.98406374501992,96.12749003984064,96.27091633466135,96.41434262948208,96.55776892430279,96.7011952191235,96.84462151394422,96.98804780876495,97.13147410358566,97.27490039840637,97.41832669322709,97.56175298804781,97.70517928286853,97.84860557768924,97.99203187250995,98.13545816733068,98.2788844621514,98.42231075697211,98.56573705179282,98.70916334661355,98.85258964143426,98.99601593625498,99.13944223107569,99.28286852589642,99.42629482071713,99.56972111553785,99.71314741035856,99.85657370517929,100.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/medium_negative.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/medium_negative.json new file mode 100644 index 000000000000..6c1e0f9d3aed --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/medium_negative.json @@ -0,0 +1 @@ +{"expected":[-0.881373587019543,-0.8785648221811828,-0.8757727485921216,-0.872997223399564,-0.8702381053721214,-0.8674952548760734,-0.8647685338520688,-0.8620578057922589,-0.8593629357178508,-0.8566837901570737,-0.8540202371235461,-0.8513721460950371,-0.8487393879926115,-0.8461218351601517,-0.8435193613442457,-0.8409318416744351,-0.8383591526438152,-0.8358011720899767,-0.8332577791762857,-0.830728854373491,-0.8282142794416545,-0.8257139374123945,-0.8232277125714388,-0.8207554904414776,-0.818297157765313,-0.8158526024892955,-0.8134217137470444,-0.8110043818434439,-0.808600498238911,-0.8062099555339275,-0.8038326474538329,-0.80146846883387,-0.7991173156044817,-0.7967790847768498,-0.7944536744286734,-0.7921409836901823,-0.7898409127303782,-0.7875533627435015,-0.7852782359357193,-0.7830154355120266,-0.7807648656633612,-0.7785264315539255,-0.7763000393087106,-0.7740855960012203,-0.7718830096413907,-0.7696921891637005,-0.7675130444154687,-0.7653454861453384,-0.7631894259919384,-0.761044776472724,-0.7589114509729903,-0.7567893637350566,-0.7546784298476171,-0.7525785652352567,-0.7504896866481258,-0.7484117116517751,-0.7463445586171438,-0.7442881467106999,-0.742242395884731,-0.7402072268677793,-0.7381825611552224,-0.7361683209999937,-0.7341644294034417,-0.7321708101063261,-0.7301873875799457,-0.7282140870173991,-0.7262508343249728,-0.7242975561136566,-0.7223541796907823,-0.720420633051785,-0.7184968448720837,-0.7165827444990802,-0.7146782619442725,-0.7127833278754824,-0.7108978736091945,-0.7090218311030053,-0.7071551329481788,-0.7052977123623084,-0.7034495031820842,-0.7016104398561599,-0.6997804574381221,-0.6979594915795581,-0.696147478523219,-0.6943443550962817,-0.6925500587037001,-0.6907645273216532,-0.6889876994910803,-0.6872195143113065,-0.6854599114337566,-0.683708831055755,-0.6819662139144081,-0.6802320012805743,-0.6785061349529113,-0.6767885572520083,-0.6750792110145938,-0.6733780395878244,-0.6716849868236489,-0.6699999970732475,-0.6683230151815468,-0.6666539864818065,-0.6649928567902786,-0.6633395724009379,-0.6616940800802807,-0.6600563270621939,-0.6584262610428896,-0.6568038301759084,-0.6551889830671853,-0.6535816687701826,-0.6519818367810841,-0.6503894370340527,-0.6488044198965491,-0.6472267361647105,-0.6456563370587898,-0.644093174218652,-0.6425371996993297,-0.6409883659666337,-0.6394466258928211,-0.6379119327523178,-0.6363842402174951,-0.6348635023544987,-0.6333496736191336,-0.6318427088527967,-0.630342563278463,-0.6288491924967214,-0.6273625524818596,-0.6258825995779984,-0.6244092904952742,-0.6229425823060674,-0.6214824324412789,-0.6200287986866527,-0.6185816391791422,-0.6171409124033228,-0.6157065771878469,-0.6142785927019441,-0.6128569184519623,-0.6114415142779519,-0.610032340350291,-0.6086293571663518,-0.6072325255472073,-0.6058418066343769,-0.6044571618866126,-0.6030785530767222,-0.6017059422884318,-0.6003392919132852,-0.5989785646475797,-0.5976237234893401,-0.5962747317353265,-0.5949315529780789,-0.5935941511029963,-0.5922624902854505,-0.5909365349879331,-0.5896162499572373,-0.588301600221671,-0.5869925510883044,-0.585689068140248,-0.5843911172339632,-0.5830986644966043,-0.5818116763233905,-0.580530119375009,-0.5792539605750476,-0.5779831671074576,-0.5767177064140449,-0.5754575461919903,-0.5742026543913986,-0.5729529992128755,-0.5717085491051309,-0.5704692727626122,-0.569235139123161,-0.5680061173656998,-0.5667821769079422,-0.5655632874041299,-0.5643494187427962,-0.5631405410445529,-0.5619366246599032,-0.5607376401670785,-0.5595435583698998,-0.5583543502956627,-0.5571699871930462,-0.5559904405300442,-0.5548156819919204,-0.5536456834791864,-0.5524804171056001,-0.5513198551961892,-0.550163970285293,-0.5490127351146292,-0.5478661226313792,-0.5467241059862957,-0.5455866585318304,-0.5444537538202826,-0.5433253656019679,-0.5422014678234057,-0.5410820346255282,-0.5399670403419075,-0.538856459497002,-0.5377502668044223,-0.5366484371652145,-0.5355509456661643,-0.5344577675781161,-0.5333688783543128,-0.5322842536287523,-0.5312038692145611,-0.5301277011023863,-0.5290557254588031,-0.5279879186247411,-0.5269242571139265,-0.5258647176113392,-0.5248092769716893,-0.5237579122179066,-0.522710600539648,-0.5216673192918201,-0.5206280459931163,-0.5195927583245711,-0.5185614341281269,-0.5175340514052191,-0.5165105883153723,-0.515491023174814,-0.5144753344551012,-0.513463500781761,-0.5124555009329473,-0.5114513138381083,-0.5104509185766699,-0.5094542943767325,-0.5084614206137804,-0.5074722768094041,-0.5064868426300376,-0.5055050978857065,-0.50452702252879,-0.5035525966527954,-0.5025818004911444,-0.5016146144159724,-0.5006510189369405,-0.4996909947000577,-0.4987345224865169,-0.4977815832115414,-0.4968321579232438,-0.49588622780149577,-0.4949437741568095,-0.49400477842923035,-0.49306922218724064,-0.49213708712667387,-0.49120835506964045,-0.4902830079634639,-0.48936102787962743,-0.488442397012731,-0.4875270976794594,-0.48661511231755883,-0.4857064234848262,-0.4848010138581056,-0.4838988662322967,-0.48299996351937236,-0.4821042887474049,-0.48121182505960347,-0.48032255571335974,-0.47943646407930335,-0.47855353364036657,-0.4776737479908578,-0.4767970908355445,-0.47592354598874453,-0.475053097373427,-0.47418572902032097,-0.4733214250670334,-0.47246016975717536,-0.47160194743949707,-0.47074674256703003,-0.4698945396962395,-0.46904532348618255,-0.4681990786976768,-0.4673557901924748,-0.466515442932448,-0.4656780219787775,-0.46484351249115274,-0.4640118997269785,-0.463183169040588,-0.4623573058824648,-0.4615342957984718,-0.46071412442908655,-0.4598967775086452,-0.45908224086459243,-0.4582705004167394,-0.4574615421765278,-0.4566553522463012,-0.45585191681858345,-0.4550512221753634,-0.4542532546873867,-0.4534580008134538,-0.4526654470997248,-0.4518755801790307,-0.4510883867701911,-0.4503038536773379,-0.44952196778924586,-0.4487427160786688,-0.4479660856016819,-0.447192063497031,-0.4464206369854866,-0.44565179336920463,-0.44488552003109283,-0.4441218044341831,-0.44336063412100923,-0.4426019967129909,-0.4418458799098227,-0.4410922714888692,-0.44034115930456513,-0.4395925312878215,-0.43884637544543653,-0.43810267985951257,-0.43736143268687755,-0.4366226221585126,-0.4358862365789836,-0.4351522643258793,-0.4344206938492533,-0.43369151367107184,-0.4329647123846659,-0.4322402786541888,-0.4315182012140784,-0.43079846886852385,-0.4300810704909378,-0.4293659950234328,-0.4286532314763019,-0.42794276892750527,-0.4272345965221598,-0.42652870347203464,-0.42582507905505007,-0.4251237126147816,-0.4244245935599676,-0.4237277113640225,-0.4230330555645532,-0.4223406157628802,-0.42165038162356266,-0.4209623428739282,-0.4202764893036064,-0.41959281076406607,-0.4189112971681575,-0.41823193848965756,-0.41755472476281996,-0.4168796460819281,-0.4162066926008534,-0.41553585453261566,-0.4148671221489491,-0.4142004857798705,-0.41353593581325204,-0.412873462694398,-0.412213056925624,-0.41155470906584096,-0.4108984097301425,-0.41024414958939526,-0.40959191936983297,-0.4089417098526549,-0.4082935118736262,-0.4076473163226829,-0.40700311414353985,-0.4063608963333015,-0.40572065394207757,-0.40508237807259945,-0.4044460598798426,-0.4038116905706502,-0.4031792614033609,-0.4025487636874394,-0.4019201887831102,-0.4012935281009946,-0.4006687731017507,-0.4000459152957161,-0.399424946242554,-0.3988058575509024,-0.39818864087802575,-0.3975732879294696,-0.3969597904587188,-0.3963481402668575,-0.395738329202233,-0.3951303491601217,-0.39452419208239803,-0.3939198499572065,-0.3933173148186359,-0.3927165787463964,-0.39211763386549964,-0.3915204723459409,-0.39092508640238455,-0.3903314682938515,-0.38973961032340965,-0.38914950483786637,-0.38856114422746446,-0.38797452092557944,-0.3873896274084201,-0.38680645619473136,-0.3862249998454995,-0.38564525096365965,-0.3850672021938058,-0.38449084622190327,-0.3839161757750034,-0.38334318362096076,-0.3827718625681521,-0.38220220546519845,-0.3816342052006884,-0.38106785470290494,-0.38050314693955306,-0.3799400749174908,-0.3793786316824615,-0.37881881031882914,-0.37826060394931477,-0.37770400573473595,-0.3771490088737478,-0.37659560660258634,-0.3760437921948137,-0.3754935589610655,-0.37494490024880006,-0.3743978094420501,-0.3738522799611758,-0.37330830526262015,-0.3727658788386662,-0.37222499421719635,-0.37168564496145323,-0.37114782466980284,-0.3706115269754993,-0.3700767455464516,-0.3695434740849921,-0.369011706327647,-0.36848143604490835,-0.36795265704100827,-0.3674253631536943,-0.3668995482540072,-0.36637520624606046,-0.36585233106682036,-0.3653309166858898,-0.36481095710529166,-0.3642924463592556,-0.36377537851400543,-0.3632597476675484,-0.36274554794946673,-0.3622327735207094,-0.3617214185733872,-0.36121147733056824,-0.3607029440460752,-0.36019581300428466,-0.3596900785199273,-0.3591857349378902,-0.3586827766330203,-0.3581811980099295,-0.3576809935028014,-0.3571821575751993,-0.3566846847198756,-0.356188569458583,-0.35569380634188696,-0.3552003899489795,-0.35470831488749444,-0.3542175757933242,-0.3537281673304381,-0.35324008419070135,-0.35275332109369645,-0.35226787278654503,-0.3517837340437316,-0.35130089966692835,-0.35081936448482154,-0.3503391233529387,-0.3498601711534779,-0.34938250279513744,-0.3489061132129476,-0.3484309973681031,-0.34795715024779705,-0.34748456686505624,-0.34701324225857744,-0.3465431714925648,-0.34607434965656925,-0.3456067718653281,-0.3451404332586063,-0.3446753290010391,-0.34421145428197525,-0.3437488043153223,-0.34328737433939177,-0.34282715961674715,-0.3423681554340509,-0.34191035710191486,-0.3414537599547501,-0.34099835935061823,-0.34054415067108457,-0.3400911293210716,-0.33963929072871357,-0.33918863034521257,-0.3387391436446951,-0.33829082612407063,-0.3378436733028899,-0.3373976807232054,-0.33695284394943215,-0.3365091585682099,-0.33606662018826605,-0.33562522444028003,-0.3351849669767478,-0.3347458434718485,-0.3343078496213109,-0.33387098114228164,-0.33343523377319423,-0.3330006032736386,-0.33256708542423236,-0.332134676026492,-0.331703370902706,-0.3312731658958082,-0.33084405686925233,-0.3304160397068874,-0.329989110312834,-0.3295632646113615,-0.32913849854676597,-0.32871480808324927,-0.3282921892047988,-0.3278706379150681,-0.32745015023725843],"x":[-1.0,-1.00398406374502,-1.0079681274900398,-1.0119521912350598,-1.0159362549800797,-1.0199203187250996,-1.0239043824701195,-1.0278884462151394,-1.0318725099601593,-1.0358565737051793,-1.0398406374501992,-1.043824701195219,-1.047808764940239,-1.051792828685259,-1.0557768924302788,-1.0597609561752988,-1.0637450199203187,-1.0677290836653386,-1.0717131474103585,-1.0756972111553784,-1.0796812749003983,-1.0836653386454183,-1.0876494023904382,-1.091633466135458,-1.095617529880478,-1.099601593625498,-1.1035856573705178,-1.1075697211155378,-1.1115537848605577,-1.1155378486055776,-1.1195219123505975,-1.1235059760956174,-1.1274900398406376,-1.1314741035856575,-1.1354581673306774,-1.1394422310756973,-1.1434262948207172,-1.1474103585657371,-1.151394422310757,-1.155378486055777,-1.159362549800797,-1.1633466135458168,-1.1673306772908367,-1.1713147410358566,-1.1752988047808766,-1.1792828685258965,-1.1832669322709164,-1.1872509960159363,-1.1912350597609562,-1.1952191235059761,-1.199203187250996,-1.203187250996016,-1.207171314741036,-1.2111553784860558,-1.2151394422310757,-1.2191235059760956,-1.2231075697211156,-1.2270916334661355,-1.2310756972111554,-1.2350597609561753,-1.2390438247011952,-1.2430278884462151,-1.247011952191235,-1.250996015936255,-1.254980079681275,-1.2589641434262948,-1.2629482071713147,-1.2669322709163346,-1.2709163346613546,-1.2749003984063745,-1.2788844621513944,-1.2828685258964143,-1.2868525896414342,-1.2908366533864541,-1.294820717131474,-1.298804780876494,-1.302788844621514,-1.3067729083665338,-1.3107569721115537,-1.3147410358565736,-1.3187250996015936,-1.3227091633466135,-1.3266932270916334,-1.3306772908366533,-1.3346613545816732,-1.3386454183266931,-1.342629482071713,-1.346613545816733,-1.350597609561753,-1.3545816733067728,-1.3585657370517927,-1.3625498007968126,-1.3665338645418326,-1.3705179282868525,-1.3745019920318724,-1.3784860557768925,-1.3824701195219125,-1.3864541832669324,-1.3904382470119523,-1.3944223107569722,-1.3984063745019921,-1.402390438247012,-1.406374501992032,-1.4103585657370519,-1.4143426294820718,-1.4183266932270917,-1.4223107569721116,-1.4262948207171315,-1.4302788844621515,-1.4342629482071714,-1.4382470119521913,-1.4422310756972112,-1.4462151394422311,-1.450199203187251,-1.454183266932271,-1.4581673306772909,-1.4621513944223108,-1.4661354581673307,-1.4701195219123506,-1.4741035856573705,-1.4780876494023905,-1.4820717131474104,-1.4860557768924303,-1.4900398406374502,-1.4940239043824701,-1.49800796812749,-1.50199203187251,-1.5059760956175299,-1.5099601593625498,-1.5139442231075697,-1.5179282868525896,-1.5219123505976095,-1.5258964143426295,-1.5298804780876494,-1.5338645418326693,-1.5378486055776892,-1.5418326693227091,-1.545816733067729,-1.549800796812749,-1.5537848605577689,-1.5577689243027888,-1.5617529880478087,-1.5657370517928286,-1.5697211155378485,-1.5737051792828685,-1.5776892430278884,-1.5816733067729083,-1.5856573705179282,-1.5896414342629481,-1.593625498007968,-1.597609561752988,-1.6015936254980079,-1.6055776892430278,-1.6095617529880477,-1.6135458167330676,-1.6175298804780875,-1.6215139442231075,-1.6254980079681276,-1.6294820717131475,-1.6334661354581674,-1.6374501992031874,-1.6414342629482073,-1.6454183266932272,-1.649402390438247,-1.653386454183267,-1.657370517928287,-1.6613545816733069,-1.6653386454183268,-1.6693227091633467,-1.6733067729083666,-1.6772908366533865,-1.6812749003984064,-1.6852589641434264,-1.6892430278884463,-1.6932270916334662,-1.697211155378486,-1.701195219123506,-1.705179282868526,-1.7091633466135459,-1.7131474103585658,-1.7171314741035857,-1.7211155378486056,-1.7250996015936255,-1.7290836653386454,-1.7330677290836654,-1.7370517928286853,-1.7410358565737052,-1.745019920318725,-1.749003984063745,-1.752988047808765,-1.7569721115537849,-1.7609561752988048,-1.7649402390438247,-1.7689243027888446,-1.7729083665338645,-1.7768924302788844,-1.7808764940239044,-1.7848605577689243,-1.7888446215139442,-1.792828685258964,-1.796812749003984,-1.800796812749004,-1.8047808764940239,-1.8087649402390438,-1.8127490039840637,-1.8167330677290836,-1.8207171314741035,-1.8247011952191234,-1.8286852589641434,-1.8326693227091633,-1.8366533864541832,-1.840637450199203,-1.844621513944223,-1.848605577689243,-1.8525896414342629,-1.8565737051792828,-1.8605577689243027,-1.8645418326693226,-1.8685258964143425,-1.8725099601593624,-1.8764940239043826,-1.8804780876494025,-1.8844621513944224,-1.8884462151394423,-1.8924302788844622,-1.8964143426294822,-1.900398406374502,-1.904382470119522,-1.908366533864542,-1.9123505976095618,-1.9163346613545817,-1.9203187250996017,-1.9243027888446216,-1.9282868525896415,-1.9322709163346614,-1.9362549800796813,-1.9402390438247012,-1.9442231075697212,-1.948207171314741,-1.952191235059761,-1.956175298804781,-1.9601593625498008,-1.9641434262948207,-1.9681274900398407,-1.9721115537848606,-1.9760956175298805,-1.9800796812749004,-1.9840637450199203,-1.9880478087649402,-1.9920318725099602,-1.99601593625498,-2.0,-2.00398406374502,-2.00796812749004,-2.0119521912350598,-2.0159362549800797,-2.0199203187250996,-2.0239043824701195,-2.0278884462151394,-2.0318725099601593,-2.0358565737051793,-2.039840637450199,-2.043824701195219,-2.047808764940239,-2.051792828685259,-2.055776892430279,-2.0597609561752988,-2.0637450199203187,-2.0677290836653386,-2.0717131474103585,-2.0756972111553784,-2.0796812749003983,-2.0836653386454183,-2.087649402390438,-2.091633466135458,-2.095617529880478,-2.099601593625498,-2.103585657370518,-2.1075697211155378,-2.1115537848605577,-2.1155378486055776,-2.1195219123505975,-2.1235059760956174,-2.1274900398406373,-2.1314741035856573,-2.135458167330677,-2.139442231075697,-2.143426294820717,-2.147410358565737,-2.151394422310757,-2.1553784860557768,-2.1593625498007967,-2.1633466135458166,-2.1673306772908365,-2.1713147410358564,-2.1752988047808763,-2.1792828685258963,-2.183266932270916,-2.187250996015936,-2.191235059760956,-2.195219123505976,-2.199203187250996,-2.2031872509960158,-2.2071713147410357,-2.2111553784860556,-2.2151394422310755,-2.2191235059760954,-2.2231075697211153,-2.2270916334661353,-2.231075697211155,-2.235059760956175,-2.239043824701195,-2.243027888446215,-2.247011952191235,-2.250996015936255,-2.254980079681275,-2.258964143426295,-2.262948207171315,-2.266932270916335,-2.270916334661355,-2.2749003984063747,-2.2788844621513946,-2.2828685258964145,-2.2868525896414345,-2.2908366533864544,-2.2948207171314743,-2.298804780876494,-2.302788844621514,-2.306772908366534,-2.310756972111554,-2.314741035856574,-2.318725099601594,-2.3227091633466137,-2.3266932270916336,-2.3306772908366535,-2.3346613545816735,-2.3386454183266934,-2.3426294820717133,-2.346613545816733,-2.350597609561753,-2.354581673306773,-2.358565737051793,-2.362549800796813,-2.366533864541833,-2.3705179282868527,-2.3745019920318726,-2.3784860557768925,-2.3824701195219125,-2.3864541832669324,-2.3904382470119523,-2.394422310756972,-2.398406374501992,-2.402390438247012,-2.406374501992032,-2.410358565737052,-2.414342629482072,-2.4183266932270917,-2.4223107569721116,-2.4262948207171315,-2.4302788844621515,-2.4342629482071714,-2.4382470119521913,-2.442231075697211,-2.446215139442231,-2.450199203187251,-2.454183266932271,-2.458167330677291,-2.462151394422311,-2.4661354581673307,-2.4701195219123506,-2.4741035856573705,-2.4780876494023905,-2.4820717131474104,-2.4860557768924303,-2.49003984063745,-2.49402390438247,-2.49800796812749,-2.50199203187251,-2.50597609561753,-2.50996015936255,-2.5139442231075697,-2.5179282868525896,-2.5219123505976095,-2.5258964143426295,-2.5298804780876494,-2.5338645418326693,-2.537848605577689,-2.541832669322709,-2.545816733067729,-2.549800796812749,-2.553784860557769,-2.557768924302789,-2.5617529880478087,-2.5657370517928286,-2.5697211155378485,-2.5737051792828685,-2.5776892430278884,-2.5816733067729083,-2.585657370517928,-2.589641434262948,-2.593625498007968,-2.597609561752988,-2.601593625498008,-2.605577689243028,-2.6095617529880477,-2.6135458167330676,-2.6175298804780875,-2.6215139442231075,-2.6254980079681274,-2.6294820717131473,-2.633466135458167,-2.637450199203187,-2.641434262948207,-2.645418326693227,-2.649402390438247,-2.653386454183267,-2.6573705179282867,-2.6613545816733066,-2.6653386454183265,-2.6693227091633465,-2.6733067729083664,-2.6772908366533863,-2.681274900398406,-2.685258964143426,-2.689243027888446,-2.693227091633466,-2.697211155378486,-2.701195219123506,-2.7051792828685257,-2.7091633466135456,-2.7131474103585655,-2.7171314741035855,-2.7211155378486054,-2.7250996015936253,-2.729083665338645,-2.733067729083665,-2.737051792828685,-2.741035856573705,-2.745019920318725,-2.749003984063745,-2.752988047808765,-2.756972111553785,-2.760956175298805,-2.764940239043825,-2.768924302788845,-2.7729083665338647,-2.7768924302788847,-2.7808764940239046,-2.7848605577689245,-2.7888446215139444,-2.7928286852589643,-2.7968127490039842,-2.800796812749004,-2.804780876494024,-2.808764940239044,-2.812749003984064,-2.816733067729084,-2.8207171314741037,-2.8247011952191237,-2.8286852589641436,-2.8326693227091635,-2.8366533864541834,-2.8406374501992033,-2.8446215139442232,-2.848605577689243,-2.852589641434263,-2.856573705179283,-2.860557768924303,-2.864541832669323,-2.8685258964143427,-2.8725099601593627,-2.8764940239043826,-2.8804780876494025,-2.8844621513944224,-2.8884462151394423,-2.8924302788844622,-2.896414342629482,-2.900398406374502,-2.904382470119522,-2.908366533864542,-2.912350597609562,-2.9163346613545817,-2.9203187250996017,-2.9243027888446216,-2.9282868525896415,-2.9322709163346614,-2.9362549800796813,-2.9402390438247012,-2.944223107569721,-2.948207171314741,-2.952191235059761,-2.956175298804781,-2.960159362549801,-2.9641434262948207,-2.9681274900398407,-2.9721115537848606,-2.9760956175298805,-2.9800796812749004,-2.9840637450199203,-2.9880478087649402,-2.99203187250996,-2.99601593625498,-3.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/medium_positive.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/medium_positive.json new file mode 100644 index 000000000000..1808609050ff --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/medium_positive.json @@ -0,0 +1 @@ +{"expected":[0.881373587019543,0.8785648221811828,0.8757727485921216,0.872997223399564,0.8702381053721214,0.8674952548760734,0.8647685338520688,0.8620578057922589,0.8593629357178508,0.8566837901570737,0.8540202371235461,0.8513721460950371,0.8487393879926115,0.8461218351601517,0.8435193613442457,0.8409318416744351,0.8383591526438152,0.8358011720899767,0.8332577791762857,0.830728854373491,0.8282142794416545,0.8257139374123945,0.8232277125714388,0.8207554904414776,0.818297157765313,0.8158526024892955,0.8134217137470444,0.8110043818434439,0.808600498238911,0.8062099555339275,0.8038326474538329,0.80146846883387,0.7991173156044817,0.7967790847768498,0.7944536744286734,0.7921409836901823,0.7898409127303782,0.7875533627435015,0.7852782359357193,0.7830154355120266,0.7807648656633612,0.7785264315539255,0.7763000393087106,0.7740855960012203,0.7718830096413907,0.7696921891637005,0.7675130444154687,0.7653454861453384,0.7631894259919384,0.761044776472724,0.7589114509729903,0.7567893637350566,0.7546784298476171,0.7525785652352567,0.7504896866481258,0.7484117116517751,0.7463445586171438,0.7442881467106999,0.742242395884731,0.7402072268677793,0.7381825611552224,0.7361683209999937,0.7341644294034417,0.7321708101063261,0.7301873875799457,0.7282140870173991,0.7262508343249728,0.7242975561136566,0.7223541796907823,0.720420633051785,0.7184968448720837,0.7165827444990802,0.7146782619442725,0.7127833278754824,0.7108978736091945,0.7090218311030053,0.7071551329481788,0.7052977123623084,0.7034495031820842,0.7016104398561599,0.6997804574381221,0.6979594915795581,0.696147478523219,0.6943443550962817,0.6925500587037001,0.6907645273216532,0.6889876994910803,0.6872195143113065,0.6854599114337566,0.683708831055755,0.6819662139144081,0.6802320012805743,0.6785061349529113,0.6767885572520083,0.6750792110145938,0.6733780395878244,0.6716849868236489,0.6699999970732475,0.6683230151815468,0.6666539864818065,0.6649928567902786,0.6633395724009379,0.6616940800802807,0.6600563270621939,0.6584262610428896,0.6568038301759084,0.6551889830671853,0.6535816687701826,0.6519818367810841,0.6503894370340527,0.6488044198965491,0.6472267361647105,0.6456563370587898,0.644093174218652,0.6425371996993297,0.6409883659666337,0.6394466258928211,0.6379119327523178,0.6363842402174951,0.6348635023544987,0.6333496736191336,0.6318427088527967,0.630342563278463,0.6288491924967214,0.6273625524818596,0.6258825995779984,0.6244092904952742,0.6229425823060674,0.6214824324412789,0.6200287986866527,0.6185816391791422,0.6171409124033228,0.6157065771878469,0.6142785927019441,0.6128569184519623,0.6114415142779519,0.610032340350291,0.6086293571663518,0.6072325255472073,0.6058418066343769,0.6044571618866126,0.6030785530767222,0.6017059422884318,0.6003392919132852,0.5989785646475797,0.5976237234893401,0.5962747317353265,0.5949315529780789,0.5935941511029963,0.5922624902854505,0.5909365349879331,0.5896162499572373,0.588301600221671,0.5869925510883044,0.585689068140248,0.5843911172339632,0.5830986644966043,0.5818116763233905,0.580530119375009,0.5792539605750476,0.5779831671074576,0.5767177064140449,0.5754575461919903,0.5742026543913986,0.5729529992128755,0.5717085491051309,0.5704692727626122,0.569235139123161,0.5680061173656998,0.5667821769079422,0.5655632874041299,0.5643494187427962,0.5631405410445529,0.5619366246599032,0.5607376401670785,0.5595435583698998,0.5583543502956627,0.5571699871930462,0.5559904405300442,0.5548156819919204,0.5536456834791864,0.5524804171056001,0.5513198551961892,0.550163970285293,0.5490127351146292,0.5478661226313792,0.5467241059862957,0.5455866585318304,0.5444537538202826,0.5433253656019679,0.5422014678234057,0.5410820346255282,0.5399670403419075,0.538856459497002,0.5377502668044223,0.5366484371652145,0.5355509456661643,0.5344577675781161,0.5333688783543128,0.5322842536287523,0.5312038692145611,0.5301277011023863,0.5290557254588031,0.5279879186247411,0.5269242571139265,0.5258647176113392,0.5248092769716893,0.5237579122179066,0.522710600539648,0.5216673192918201,0.5206280459931163,0.5195927583245711,0.5185614341281269,0.5175340514052191,0.5165105883153723,0.515491023174814,0.5144753344551012,0.513463500781761,0.5124555009329473,0.5114513138381083,0.5104509185766699,0.5094542943767325,0.5084614206137804,0.5074722768094041,0.5064868426300376,0.5055050978857065,0.50452702252879,0.5035525966527954,0.5025818004911444,0.5016146144159724,0.5006510189369405,0.4996909947000577,0.4987345224865169,0.4977815832115414,0.4968321579232438,0.49588622780149577,0.4949437741568095,0.49400477842923035,0.49306922218724064,0.49213708712667387,0.49120835506964045,0.4902830079634639,0.48936102787962743,0.488442397012731,0.4875270976794594,0.48661511231755883,0.4857064234848262,0.4848010138581056,0.4838988662322967,0.48299996351937236,0.4821042887474049,0.48121182505960347,0.48032255571335974,0.47943646407930335,0.47855353364036657,0.4776737479908578,0.4767970908355445,0.47592354598874453,0.475053097373427,0.47418572902032097,0.4733214250670334,0.47246016975717536,0.47160194743949707,0.47074674256703003,0.4698945396962395,0.46904532348618255,0.4681990786976768,0.4673557901924748,0.466515442932448,0.4656780219787775,0.46484351249115274,0.4640118997269785,0.463183169040588,0.4623573058824648,0.4615342957984718,0.46071412442908655,0.4598967775086452,0.45908224086459243,0.4582705004167394,0.4574615421765278,0.4566553522463012,0.45585191681858345,0.4550512221753634,0.4542532546873867,0.4534580008134538,0.4526654470997248,0.4518755801790307,0.4510883867701911,0.4503038536773379,0.44952196778924586,0.4487427160786688,0.4479660856016819,0.447192063497031,0.4464206369854866,0.44565179336920463,0.44488552003109283,0.4441218044341831,0.44336063412100923,0.4426019967129909,0.4418458799098227,0.4410922714888692,0.44034115930456513,0.4395925312878215,0.43884637544543653,0.43810267985951257,0.43736143268687755,0.4366226221585126,0.4358862365789836,0.4351522643258793,0.4344206938492533,0.43369151367107184,0.4329647123846659,0.4322402786541888,0.4315182012140784,0.43079846886852385,0.4300810704909378,0.4293659950234328,0.4286532314763019,0.42794276892750527,0.4272345965221598,0.42652870347203464,0.42582507905505007,0.4251237126147816,0.4244245935599676,0.4237277113640225,0.4230330555645532,0.4223406157628802,0.42165038162356266,0.4209623428739282,0.4202764893036064,0.41959281076406607,0.4189112971681575,0.41823193848965756,0.41755472476281996,0.4168796460819281,0.4162066926008534,0.41553585453261566,0.4148671221489491,0.4142004857798705,0.41353593581325204,0.412873462694398,0.412213056925624,0.41155470906584096,0.4108984097301425,0.41024414958939526,0.40959191936983297,0.4089417098526549,0.4082935118736262,0.4076473163226829,0.40700311414353985,0.4063608963333015,0.40572065394207757,0.40508237807259945,0.4044460598798426,0.4038116905706502,0.4031792614033609,0.4025487636874394,0.4019201887831102,0.4012935281009946,0.4006687731017507,0.4000459152957161,0.399424946242554,0.3988058575509024,0.39818864087802575,0.3975732879294696,0.3969597904587188,0.3963481402668575,0.395738329202233,0.3951303491601217,0.39452419208239803,0.3939198499572065,0.3933173148186359,0.3927165787463964,0.39211763386549964,0.3915204723459409,0.39092508640238455,0.3903314682938515,0.38973961032340965,0.38914950483786637,0.38856114422746446,0.38797452092557944,0.3873896274084201,0.38680645619473136,0.3862249998454995,0.38564525096365965,0.3850672021938058,0.38449084622190327,0.3839161757750034,0.38334318362096076,0.3827718625681521,0.38220220546519845,0.3816342052006884,0.38106785470290494,0.38050314693955306,0.3799400749174908,0.3793786316824615,0.37881881031882914,0.37826060394931477,0.37770400573473595,0.3771490088737478,0.37659560660258634,0.3760437921948137,0.3754935589610655,0.37494490024880006,0.3743978094420501,0.3738522799611758,0.37330830526262015,0.3727658788386662,0.37222499421719635,0.37168564496145323,0.37114782466980284,0.3706115269754993,0.3700767455464516,0.3695434740849921,0.369011706327647,0.36848143604490835,0.36795265704100827,0.3674253631536943,0.3668995482540072,0.36637520624606046,0.36585233106682036,0.3653309166858898,0.36481095710529166,0.3642924463592556,0.36377537851400543,0.3632597476675484,0.36274554794946673,0.3622327735207094,0.3617214185733872,0.36121147733056824,0.3607029440460752,0.36019581300428466,0.3596900785199273,0.3591857349378902,0.3586827766330203,0.3581811980099295,0.3576809935028014,0.3571821575751993,0.3566846847198756,0.356188569458583,0.35569380634188696,0.3552003899489795,0.35470831488749444,0.3542175757933242,0.3537281673304381,0.35324008419070135,0.35275332109369645,0.35226787278654503,0.3517837340437316,0.35130089966692835,0.35081936448482154,0.3503391233529387,0.3498601711534779,0.34938250279513744,0.3489061132129476,0.3484309973681031,0.34795715024779705,0.34748456686505624,0.34701324225857744,0.3465431714925648,0.34607434965656925,0.3456067718653281,0.3451404332586063,0.3446753290010391,0.34421145428197525,0.3437488043153223,0.34328737433939177,0.34282715961674715,0.3423681554340509,0.34191035710191486,0.3414537599547501,0.34099835935061823,0.34054415067108457,0.3400911293210716,0.33963929072871357,0.33918863034521257,0.3387391436446951,0.33829082612407063,0.3378436733028899,0.3373976807232054,0.33695284394943215,0.3365091585682099,0.33606662018826605,0.33562522444028003,0.3351849669767478,0.3347458434718485,0.3343078496213109,0.33387098114228164,0.33343523377319423,0.3330006032736386,0.33256708542423236,0.332134676026492,0.331703370902706,0.3312731658958082,0.33084405686925233,0.3304160397068874,0.329989110312834,0.3295632646113615,0.32913849854676597,0.32871480808324927,0.3282921892047988,0.3278706379150681,0.32745015023725843],"x":[1.0,1.00398406374502,1.0079681274900398,1.0119521912350598,1.0159362549800797,1.0199203187250996,1.0239043824701195,1.0278884462151394,1.0318725099601593,1.0358565737051793,1.0398406374501992,1.043824701195219,1.047808764940239,1.051792828685259,1.0557768924302788,1.0597609561752988,1.0637450199203187,1.0677290836653386,1.0717131474103585,1.0756972111553784,1.0796812749003983,1.0836653386454183,1.0876494023904382,1.091633466135458,1.095617529880478,1.099601593625498,1.1035856573705178,1.1075697211155378,1.1115537848605577,1.1155378486055776,1.1195219123505975,1.1235059760956174,1.1274900398406376,1.1314741035856575,1.1354581673306774,1.1394422310756973,1.1434262948207172,1.1474103585657371,1.151394422310757,1.155378486055777,1.159362549800797,1.1633466135458168,1.1673306772908367,1.1713147410358566,1.1752988047808766,1.1792828685258965,1.1832669322709164,1.1872509960159363,1.1912350597609562,1.1952191235059761,1.199203187250996,1.203187250996016,1.207171314741036,1.2111553784860558,1.2151394422310757,1.2191235059760956,1.2231075697211156,1.2270916334661355,1.2310756972111554,1.2350597609561753,1.2390438247011952,1.2430278884462151,1.247011952191235,1.250996015936255,1.254980079681275,1.2589641434262948,1.2629482071713147,1.2669322709163346,1.2709163346613546,1.2749003984063745,1.2788844621513944,1.2828685258964143,1.2868525896414342,1.2908366533864541,1.294820717131474,1.298804780876494,1.302788844621514,1.3067729083665338,1.3107569721115537,1.3147410358565736,1.3187250996015936,1.3227091633466135,1.3266932270916334,1.3306772908366533,1.3346613545816732,1.3386454183266931,1.342629482071713,1.346613545816733,1.350597609561753,1.3545816733067728,1.3585657370517927,1.3625498007968126,1.3665338645418326,1.3705179282868525,1.3745019920318724,1.3784860557768925,1.3824701195219125,1.3864541832669324,1.3904382470119523,1.3944223107569722,1.3984063745019921,1.402390438247012,1.406374501992032,1.4103585657370519,1.4143426294820718,1.4183266932270917,1.4223107569721116,1.4262948207171315,1.4302788844621515,1.4342629482071714,1.4382470119521913,1.4422310756972112,1.4462151394422311,1.450199203187251,1.454183266932271,1.4581673306772909,1.4621513944223108,1.4661354581673307,1.4701195219123506,1.4741035856573705,1.4780876494023905,1.4820717131474104,1.4860557768924303,1.4900398406374502,1.4940239043824701,1.49800796812749,1.50199203187251,1.5059760956175299,1.5099601593625498,1.5139442231075697,1.5179282868525896,1.5219123505976095,1.5258964143426295,1.5298804780876494,1.5338645418326693,1.5378486055776892,1.5418326693227091,1.545816733067729,1.549800796812749,1.5537848605577689,1.5577689243027888,1.5617529880478087,1.5657370517928286,1.5697211155378485,1.5737051792828685,1.5776892430278884,1.5816733067729083,1.5856573705179282,1.5896414342629481,1.593625498007968,1.597609561752988,1.6015936254980079,1.6055776892430278,1.6095617529880477,1.6135458167330676,1.6175298804780875,1.6215139442231075,1.6254980079681276,1.6294820717131475,1.6334661354581674,1.6374501992031874,1.6414342629482073,1.6454183266932272,1.649402390438247,1.653386454183267,1.657370517928287,1.6613545816733069,1.6653386454183268,1.6693227091633467,1.6733067729083666,1.6772908366533865,1.6812749003984064,1.6852589641434264,1.6892430278884463,1.6932270916334662,1.697211155378486,1.701195219123506,1.705179282868526,1.7091633466135459,1.7131474103585658,1.7171314741035857,1.7211155378486056,1.7250996015936255,1.7290836653386454,1.7330677290836654,1.7370517928286853,1.7410358565737052,1.745019920318725,1.749003984063745,1.752988047808765,1.7569721115537849,1.7609561752988048,1.7649402390438247,1.7689243027888446,1.7729083665338645,1.7768924302788844,1.7808764940239044,1.7848605577689243,1.7888446215139442,1.792828685258964,1.796812749003984,1.800796812749004,1.8047808764940239,1.8087649402390438,1.8127490039840637,1.8167330677290836,1.8207171314741035,1.8247011952191234,1.8286852589641434,1.8326693227091633,1.8366533864541832,1.840637450199203,1.844621513944223,1.848605577689243,1.8525896414342629,1.8565737051792828,1.8605577689243027,1.8645418326693226,1.8685258964143425,1.8725099601593624,1.8764940239043826,1.8804780876494025,1.8844621513944224,1.8884462151394423,1.8924302788844622,1.8964143426294822,1.900398406374502,1.904382470119522,1.908366533864542,1.9123505976095618,1.9163346613545817,1.9203187250996017,1.9243027888446216,1.9282868525896415,1.9322709163346614,1.9362549800796813,1.9402390438247012,1.9442231075697212,1.948207171314741,1.952191235059761,1.956175298804781,1.9601593625498008,1.9641434262948207,1.9681274900398407,1.9721115537848606,1.9760956175298805,1.9800796812749004,1.9840637450199203,1.9880478087649402,1.9920318725099602,1.99601593625498,2.0,2.00398406374502,2.00796812749004,2.0119521912350598,2.0159362549800797,2.0199203187250996,2.0239043824701195,2.0278884462151394,2.0318725099601593,2.0358565737051793,2.039840637450199,2.043824701195219,2.047808764940239,2.051792828685259,2.055776892430279,2.0597609561752988,2.0637450199203187,2.0677290836653386,2.0717131474103585,2.0756972111553784,2.0796812749003983,2.0836653386454183,2.087649402390438,2.091633466135458,2.095617529880478,2.099601593625498,2.103585657370518,2.1075697211155378,2.1115537848605577,2.1155378486055776,2.1195219123505975,2.1235059760956174,2.1274900398406373,2.1314741035856573,2.135458167330677,2.139442231075697,2.143426294820717,2.147410358565737,2.151394422310757,2.1553784860557768,2.1593625498007967,2.1633466135458166,2.1673306772908365,2.1713147410358564,2.1752988047808763,2.1792828685258963,2.183266932270916,2.187250996015936,2.191235059760956,2.195219123505976,2.199203187250996,2.2031872509960158,2.2071713147410357,2.2111553784860556,2.2151394422310755,2.2191235059760954,2.2231075697211153,2.2270916334661353,2.231075697211155,2.235059760956175,2.239043824701195,2.243027888446215,2.247011952191235,2.250996015936255,2.254980079681275,2.258964143426295,2.262948207171315,2.266932270916335,2.270916334661355,2.2749003984063747,2.2788844621513946,2.2828685258964145,2.2868525896414345,2.2908366533864544,2.2948207171314743,2.298804780876494,2.302788844621514,2.306772908366534,2.310756972111554,2.314741035856574,2.318725099601594,2.3227091633466137,2.3266932270916336,2.3306772908366535,2.3346613545816735,2.3386454183266934,2.3426294820717133,2.346613545816733,2.350597609561753,2.354581673306773,2.358565737051793,2.362549800796813,2.366533864541833,2.3705179282868527,2.3745019920318726,2.3784860557768925,2.3824701195219125,2.3864541832669324,2.3904382470119523,2.394422310756972,2.398406374501992,2.402390438247012,2.406374501992032,2.410358565737052,2.414342629482072,2.4183266932270917,2.4223107569721116,2.4262948207171315,2.4302788844621515,2.4342629482071714,2.4382470119521913,2.442231075697211,2.446215139442231,2.450199203187251,2.454183266932271,2.458167330677291,2.462151394422311,2.4661354581673307,2.4701195219123506,2.4741035856573705,2.4780876494023905,2.4820717131474104,2.4860557768924303,2.49003984063745,2.49402390438247,2.49800796812749,2.50199203187251,2.50597609561753,2.50996015936255,2.5139442231075697,2.5179282868525896,2.5219123505976095,2.5258964143426295,2.5298804780876494,2.5338645418326693,2.537848605577689,2.541832669322709,2.545816733067729,2.549800796812749,2.553784860557769,2.557768924302789,2.5617529880478087,2.5657370517928286,2.5697211155378485,2.5737051792828685,2.5776892430278884,2.5816733067729083,2.585657370517928,2.589641434262948,2.593625498007968,2.597609561752988,2.601593625498008,2.605577689243028,2.6095617529880477,2.6135458167330676,2.6175298804780875,2.6215139442231075,2.6254980079681274,2.6294820717131473,2.633466135458167,2.637450199203187,2.641434262948207,2.645418326693227,2.649402390438247,2.653386454183267,2.6573705179282867,2.6613545816733066,2.6653386454183265,2.6693227091633465,2.6733067729083664,2.6772908366533863,2.681274900398406,2.685258964143426,2.689243027888446,2.693227091633466,2.697211155378486,2.701195219123506,2.7051792828685257,2.7091633466135456,2.7131474103585655,2.7171314741035855,2.7211155378486054,2.7250996015936253,2.729083665338645,2.733067729083665,2.737051792828685,2.741035856573705,2.745019920318725,2.749003984063745,2.752988047808765,2.756972111553785,2.760956175298805,2.764940239043825,2.768924302788845,2.7729083665338647,2.7768924302788847,2.7808764940239046,2.7848605577689245,2.7888446215139444,2.7928286852589643,2.7968127490039842,2.800796812749004,2.804780876494024,2.808764940239044,2.812749003984064,2.816733067729084,2.8207171314741037,2.8247011952191237,2.8286852589641436,2.8326693227091635,2.8366533864541834,2.8406374501992033,2.8446215139442232,2.848605577689243,2.852589641434263,2.856573705179283,2.860557768924303,2.864541832669323,2.8685258964143427,2.8725099601593627,2.8764940239043826,2.8804780876494025,2.8844621513944224,2.8884462151394423,2.8924302788844622,2.896414342629482,2.900398406374502,2.904382470119522,2.908366533864542,2.912350597609562,2.9163346613545817,2.9203187250996017,2.9243027888446216,2.9282868525896415,2.9322709163346614,2.9362549800796813,2.9402390438247012,2.944223107569721,2.948207171314741,2.952191235059761,2.956175298804781,2.960159362549801,2.9641434262948207,2.9681274900398407,2.9721115537848606,2.9760956175298805,2.9800796812749004,2.9840637450199203,2.9880478087649402,2.99203187250996,2.99601593625498,3.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/runner.jl new file mode 100755 index 000000000000..7c177e218c18 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/runner.jl @@ -0,0 +1,114 @@ +#!/usr/bin/env julia +# +# @license Apache-2.0 +# +# Copyright (c) 2022 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import JSON + +""" +gen( domain, name ) + +Generate fixture data and write to file. + +# Arguments + +* `domain`: domain +* `name::AbstractString`: output filename + +# Examples + +``` julia +julia> x = range( -1000, stop = 1000, length = 2001 ); +julia> gen( x, \"data.json\" ); +``` +""" +function gen( domain, name ) + x = collect( domain ); + y = acschf.( x ); + + # Store data to be written to file as a collection: + data = Dict([ + ("x", x), + ("expected", y) + ]); + + # Based on the script directory, create an output filepath: + filepath = joinpath( dir, name ); + + # Write the data to the output filepath as JSON: + outfile = open( filepath, "w" ); + write( outfile, JSON.json(data) ); + write( outfile, "\n" ); + close( outfile ); +end + +# Get the filename: +file = @__FILE__; + +# Extract the directory in which this file resides: +dir = dirname( file ); + +# Negative tiny values: +x = range( -1e-300, stop = -1e-308, length = 503 ); +gen( x, "tiny_negative.json" ); + +# Positive tiny values: +x = range( 1e-300, stop = 1e-308, length = 503 ); +gen( x, "tiny_positive.json" ); + +# Small(er) values: +x = range( -0.8, stop = 0.8, length = 503 ); +gen( x, "smaller.json" ); + +# Negative small values: +x = range( -0.8, stop = -1.0, length = 503 ); +gen( x, "small_negative.json" ); + +# Positive small values: +x = range( 0.8, stop = 1.0, length = 503 ); +gen( x, "small_positive.json" ); + +# Negative medium values: +x = range( -1.0, stop = -3.0, length = 503 ); +gen( x, "medium_negative.json" ); + +# Positive medium values: +x = range( 1.0, stop = 3.0, length = 503 ); +gen( x, "medium_positive.json" ); + +# Large negative values: +x = range( -3.0, stop = -28.0, length = 503 ); +gen( x, "large_negative.json" ); + +# Large positive values: +x = range( 3.0, stop = 28.0, length = 503 ); +gen( x, "large_positive.json" ); + +# Larger negative values: +x = range( -28.0, stop = -100.0, length = 503 ); +gen( x, "larger_negative.json" ); + +# Larger positive values: +x = range( 28.0, stop = 100.0, length = 503 ); +gen( x, "larger_positive.json" ); + +# Huge negative values: +x = range( -1e200, stop = -1e208, length = 503 ); +gen( x, "huge_negative.json" ); + +# Huge positive values: +x = range( 1e300, stop = 1e308, length = 503 ); +gen( x, "huge_positive.json" ); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/small_negative.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/small_negative.json new file mode 100644 index 000000000000..24089f994a16 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/small_negative.json @@ -0,0 +1 @@ +{"expected":[-1.0475930126492587,-1.0472042683349878,-1.0468157929876352,-1.0464275863331858,-1.0460396480980116,-1.045651978008868,-1.045264575792896,-1.0448774411776196,-1.0444905738909456,-1.0441039736611633,-1.0437176402169426,-1.0433315732873356,-1.0429457726017728,-1.0425602378900651,-1.0421749688824014,-1.041789965309348,-1.04140522690185,-1.0410207533912268,-1.0406365445091748,-1.040252599987765,-1.039868919559443,-1.039485502957028,-1.0391023499137115,-1.0387194601630576,-1.0383368334390022,-1.0379544694758516,-1.0375723680082822,-1.0371905287713403,-1.0368089515004404,-1.036427635931365,-1.0360465818002647,-1.035665788843656,-1.0352852567984214,-1.0349049854018093,-1.0345249743914327,-1.0341452235052673,-1.0337657324816538,-1.0333865010592946,-1.0330075289772538,-1.0326288159749573,-1.0322503617921914,-1.031872166169102,-1.0314942288461946,-1.0311165495643335,-1.0307391280647402,-1.030361964088994,-1.0299850573790306,-1.0296084076771415,-1.029232014725974,-1.0288558782685293,-1.0284799980481631,-1.0281043738085842,-1.0277290052938537,-1.0273538922483856,-1.0269790344169443,-1.0266044315446454,-1.0262300833769549,-1.0258559896596873,-1.0254821501390066,-1.0251085645614246,-1.024735232673801,-1.0243621542233419,-1.0239893289575996,-1.0236167566244727,-1.023244436972204,-1.0228723697493805,-1.022500554704934,-1.0221289915881382,-1.0217576801486092,-1.0213866201363064,-1.0210158113015286,-1.0206452533949162,-1.0202749461674492,-1.019904889370447,-1.0195350827555676,-1.0191655260748074,-1.0187962190805,-1.0184271615253155,-1.0180583531622613,-1.0176897937446796,-1.0173214830262474,-1.0169534207609767,-1.0165856067032133,-1.016218040607636,-1.015850722229256,-1.0154836513234171,-1.0151168276457938,-1.0147502509523918,-1.0143839209995469,-1.0140178375439244,-1.013652000342519,-1.013286409152653,-1.0129210637319774,-1.0125559638384702,-1.0121911092304356,-1.011826499666504,-1.0114621349056319,-1.0110980147070994,-1.0107341388305124,-1.0103705070357993,-1.010007119083212,-1.0096439747333252,-1.0092810737470355,-1.0089184158855604,-1.0085560009104388,-1.0081938285835295,-1.007831898667011,-1.0074702109233808,-1.0071087651154558,-1.0067475610063688,-1.0063865983595723,-1.0060258769388344,-1.0056653965082387,-1.0053051568321867,-1.0049451576753927,-1.004585398802887,-1.0042258799800134,-1.003866600972429,-1.0035075615461044,-1.0031487614673211,-1.0027902005026743,-1.002431878419069,-1.0020737949837208,-1.0017159499641568,-1.001358343128212,-1.0010009742440316,-1.0006438430800684,-1.0002869494050834,-0.9999302929881454,-0.9995738735986293,-0.9992176910062168,-0.9988617449808951,-0.9985060352929567,-0.9981505617129987,-0.9977953240119218,-0.9974403219609316,-0.9970855553315355,-0.9967310238955436,-0.9963767274250684,-0.9960226656925236,-0.995668838470624,-0.9953152455323845,-0.9949618866511196,-0.9946087616004441,-0.9942558701542705,-0.9939032120868104,-0.9935507871725725,-0.9931985951863631,-0.9928466359032853,-0.9924949090987379,-0.9921434145484161,-0.9917921520283096,-0.9914411213147029,-0.9910903221841749,-0.9907397544135975,-0.9903894177801363,-0.9900393120612494,-0.9896894370346866,-0.9893397924784894,-0.9889903781709906,-0.9886411938908132,-0.9882922394168704,-0.987943514528365,-0.9875950190047889,-0.9872467526259219,-0.9868987151718327,-0.9865509064228768,-0.9862033261596973,-0.9858559741632233,-0.9855088502146703,-0.9851619540955391,-0.9848152855876158,-0.9844688444729707,-0.9841226305339584,-0.9837766435532168,-0.9834308833136675,-0.9830853495985136,-0.9827400421912414,-0.982394960875618,-0.9820501054356919,-0.9817054756557927,-0.981361071320529,-0.9810168922147902,-0.9806729381237442,-0.980329208832838,-0.9799857041277965,-0.9796424237946224,-0.9792993676195962,-0.9789565353892744,-0.97861392689049,-0.9782715419103523,-0.9779293802362451,-0.9775874416558282,-0.9772457259570353,-0.9769042329280734,-0.976562962357424,-0.9762219140338412,-0.9758810877463514,-0.9755404832842535,-0.9752001004371177,-0.9748599389947856,-0.9745199987473692,-0.9741802794852509,-0.973840780999083,-0.9735015030797869,-0.9731624455185525,-0.972823608106839,-0.9724849906363727,-0.9721465928991478,-0.9718084146874253,-0.9714704557937328,-0.9711327160108643,-0.970795195131879,-0.9704578929501015,-0.9701208092591214,-0.969783943852792,-0.9694472965252313,-0.9691108670708202,-0.9687746552842021,-0.9684386609602842,-0.9681028838942345,-0.9677673238814831,-0.9674319807177219,-0.9670968541989027,-0.9667619441212378,-0.9664272502811997,-0.9660927724755198,-0.9657585105011893,-0.965424464155457,-0.9650906332358307,-0.964757017540075,-0.9644236168662127,-0.964090431012523,-0.9637574597775407,-0.9634247029600583,-0.9630921603591222,-0.9627598317740348,-0.9624277170043529,-0.9620958158498873,-0.9617641281107034,-0.9614326535871189,-0.9611013920797055,-0.9607703433892867,-0.9604395073169384,-0.9601088836639885,-0.9597784722320156,-0.9594482728228496,-0.9591182852385708,-0.9587885092815093,-0.9584589447542449,-0.9581295914596066,-0.9578004492006723,-0.957471517780768,-0.9571427970034679,-0.9568142866725937,-0.9564859865922144,-0.9561578965666448,-0.9558300164004475,-0.9555023458984294,-0.9551748848656442,-0.9548476331073898,-0.9545205904292094,-0.95419375663689,-0.9538671315364626,-0.9535407149342019,-0.9532145066366253,-0.952888506450493,-0.9525627141828074,-0.9522371296408128,-0.951911752631995,-0.9515865829640807,-0.9512616204450374,-0.950936864883073,-0.9506123160866348,-0.95028797386441,-0.9499638380253246,-0.9496399083785434,-0.9493161847334695,-0.9489926668997435,-0.9486693546872444,-0.9483462479060876,-0.9480233463666251,-0.9477006498794458,-0.947378158255374,-0.9470558713054703,-0.9467337888410293,-0.9464119106735815,-0.9460902366148913,-0.9457687664769571,-0.9454475000720111,-0.9451264372125184,-0.9448055777111778,-0.9444849213809196,-0.9441644680349064,-0.943844217486533,-0.9435241695494256,-0.9432043240374407,-0.9428846807646659,-0.9425652395454188,-0.9422460001942472,-0.9419269625259277,-0.9416081263554669,-0.9412894914980993,-0.9409710577692881,-0.9406528249847247,-0.9403347929603276,-0.9400169615122429,-0.9396993304568437,-0.9393818996107294,-0.9390646687907254,-0.9387476378138826,-0.9384308064974785,-0.9381141746590144,-0.9377977421162169,-0.9374815086870366,-0.9371654741896484,-0.9368496384424503,-0.9365340012640642,-0.936218562473334,-0.9359033218893271,-0.935588279331332,-0.9352734346188601,-0.9349587875716433,-0.9346443380096346,-0.9343300857530089,-0.9340160306221599,-0.9337021724377024,-0.9333885110204703,-0.9330750461915167,-0.9327617777721146,-0.9324487055837543,-0.9321358294481452,-0.9318231491872144,-0.9315106646231066,-0.9311983755781834,-0.9308862818750236,-0.9305743833364224,-0.930262679785391,-0.9299511710451563,-0.9296398569391616,-0.9293287372910639,-0.929017811924736,-0.928707080664265,-0.9283965433339515,-0.9280861997583105,-0.9277760497620702,-0.9274660931701718,-0.9271563298077694,-0.9268467595002291,-0.9265373820731296,-0.9262281973522608,-0.9259192051636245,-0.9256104053334328,-0.9253017976881094,-0.9249933820542878,-0.9246851582588115,-0.9243771261287339,-0.924069285491318,-0.9237616361740354,-0.9234541780045665,-0.9231469108108002,-0.9228398344208336,-0.9225329486629711,-0.922226253365725,-0.9219197483578141,-0.9216134334681643,-0.9213073085259078,-0.9210013733603829,-0.920695627801134,-0.92039007167791,-0.920084704820666,-0.919779527059561,-0.9194745382249591,-0.9191697381474281,-0.91886512665774,-0.9185607035868698,-0.9182564687659964,-0.9179524220265008,-0.917648563199967,-0.9173448921181809,-0.9170414086131308,-0.9167381125170061,-0.9164350036621974,-0.9161320818812971,-0.9158293470070973,-0.9155267988725905,-0.9152244373109699,-0.9149222621556277,-0.9146202732401559,-0.9143184703983454,-0.9140168534641858,-0.9137154222718653,-0.9134141766557703,-0.9131131164504848,-0.9128122414907904,-0.912511551611666,-0.9122110466482874,-0.9119107264360269,-0.9116105908104533,-0.9113106396073312,-0.9110108726626207,-0.9107112898124777,-0.9104118908932529,-0.9101126757414922,-0.9098136441939351,-0.9095147960875161,-0.9092161312593633,-0.908917649546798,-0.9086193507873355,-0.9083212348186835,-0.9080233014787423,-0.9077255506056051,-0.9074279820375569,-0.9071305956130741,-0.9068333911708252,-0.9065363685496695,-0.9062395275886571,-0.9059428681270292,-0.9056463900042167,-0.9053500930598408,-0.9050539771337126,-0.9047580420658322,-0.904462287696389,-0.9041667138657611,-0.9038713204145156,-0.9035761071834073,-0.9032810740133793,-0.9029862207455622,-0.9026915472212742,-0.9023970532820201,-0.9021027387694923,-0.9018086035255691,-0.9015146473923151,-0.9012208702119812,-0.9009272718270034,-0.9006338520800037,-0.9003406108137888,-0.9000475478713502,-0.8997546630958643,-0.8994619563306911,-0.8991694274193753,-0.898877076205645,-0.8985849025334114,-0.898292906246769,-0.8980010871899954,-0.8977094452075505,-0.8974179801440767,-0.897126691844398,-0.8968355801535206,-0.8965446449166316,-0.8962538859791002,-0.8959633031864754,-0.8956728963844875,-0.8953826654190472,-0.8950926101362449,-0.894802730382351,-0.8945130260038152,-0.894223496847267,-0.8939341427595145,-0.8936449635875442,-0.893355959178522,-0.8930671293797907,-0.8927784740388721,-0.8924899930034652,-0.8922016861214461,-0.8919135532408686,-0.8916255942099627,-0.8913378088771354,-0.8910501970909699,-0.890762758700225,-0.890475493553836,-0.8901884015009133,-0.8899014823907423,-0.8896147360727839,-0.8893281623966732,-0.88904176121222,-0.8887555323694083,-0.8884694757183959,-0.8881835911095142,-0.8878978783932681,-0.8876123374203357,-0.887326968041568,-0.8870417701079882,-0.8867567434707923,-0.886471887981348,-0.8861872034911955,-0.8859026898520457,-0.8856183469157816,-0.8853341745344567,-0.8850501725602954,-0.8847663408456932,-0.8844826792432148,-0.8841991876055962,-0.8839158657857425,-0.883632713636728,-0.8833497310117971,-0.8830669177643627,-0.8827842737480064,-0.8825017988164786,-0.8822194928236978,-0.881937355623751,-0.8816553870708921,-0.881373587019543],"x":[-0.8,-0.800398406374502,-0.8007968127490039,-0.801195219123506,-0.801593625498008,-0.80199203187251,-0.802390438247012,-0.8027888446215139,-0.803187250996016,-0.8035856573705179,-0.80398406374502,-0.8043824701195219,-0.8047808764940239,-0.8051792828685259,-0.8055776892430279,-0.8059760956175299,-0.8063745019920319,-0.8067729083665338,-0.8071713147410359,-0.8075697211155378,-0.8079681274900399,-0.8083665338645418,-0.8087649402390438,-0.8091633466135458,-0.8095617529880478,-0.8099601593625498,-0.8103585657370518,-0.8107569721115537,-0.8111553784860558,-0.8115537848605577,-0.8119521912350598,-0.8123505976095617,-0.8127490039840638,-0.8131474103585657,-0.8135458167330677,-0.8139442231075698,-0.8143426294820717,-0.8147410358565738,-0.8151394422310757,-0.8155378486055777,-0.8159362549800797,-0.8163346613545817,-0.8167330677290837,-0.8171314741035857,-0.8175298804780876,-0.8179282868525897,-0.8183266932270916,-0.8187250996015937,-0.8191235059760956,-0.8195219123505976,-0.8199203187250996,-0.8203187250996016,-0.8207171314741036,-0.8211155378486056,-0.8215139442231075,-0.8219123505976096,-0.8223107569721115,-0.8227091633466136,-0.8231075697211155,-0.8235059760956175,-0.8239043824701195,-0.8243027888446215,-0.8247011952191236,-0.8250996015936255,-0.8254980079681274,-0.8258964143426295,-0.8262948207171315,-0.8266932270916335,-0.8270916334661355,-0.8274900398406374,-0.8278884462151395,-0.8282868525896414,-0.8286852589641435,-0.8290836653386454,-0.8294820717131474,-0.8298804780876494,-0.8302788844621514,-0.8306772908366534,-0.8310756972111554,-0.8314741035856573,-0.8318725099601594,-0.8322709163346613,-0.8326693227091634,-0.8330677290836653,-0.8334661354581673,-0.8338645418326693,-0.8342629482071713,-0.8346613545816733,-0.8350597609561753,-0.8354581673306772,-0.8358565737051793,-0.8362549800796812,-0.8366533864541833,-0.8370517928286852,-0.8374501992031872,-0.8378486055776893,-0.8382470119521912,-0.8386454183266933,-0.8390438247011952,-0.8394422310756973,-0.8398406374501992,-0.8402390438247012,-0.8406374501992032,-0.8410358565737052,-0.8414342629482072,-0.8418326693227092,-0.8422310756972111,-0.8426294820717132,-0.8430278884462151,-0.8434262948207172,-0.8438247011952191,-0.8442231075697211,-0.8446215139442231,-0.8450199203187251,-0.8454183266932271,-0.8458167330677291,-0.846215139442231,-0.8466135458167331,-0.847011952191235,-0.8474103585657371,-0.847808764940239,-0.848207171314741,-0.848605577689243,-0.849003984063745,-0.8494023904382471,-0.849800796812749,-0.850199203187251,-0.850597609561753,-0.850996015936255,-0.851394422310757,-0.851792828685259,-0.8521912350597609,-0.852589641434263,-0.8529880478087649,-0.853386454183267,-0.8537848605577689,-0.8541832669322709,-0.8545816733067729,-0.8549800796812749,-0.8553784860557769,-0.8557768924302789,-0.8561752988047808,-0.8565737051792829,-0.8569721115537848,-0.8573705179282869,-0.8577689243027888,-0.8581673306772908,-0.8585657370517928,-0.8589641434262948,-0.8593625498007968,-0.8597609561752988,-0.8601593625498007,-0.8605577689243028,-0.8609561752988047,-0.8613545816733068,-0.8617529880478088,-0.8621513944223107,-0.8625498007968128,-0.8629482071713147,-0.8633466135458168,-0.8637450199203187,-0.8641434262948208,-0.8645418326693227,-0.8649402390438247,-0.8653386454183267,-0.8657370517928287,-0.8661354581673307,-0.8665338645418327,-0.8669322709163346,-0.8673306772908367,-0.8677290836653386,-0.8681274900398407,-0.8685258964143426,-0.8689243027888446,-0.8693227091633466,-0.8697211155378486,-0.8701195219123506,-0.8705179282868526,-0.8709163346613545,-0.8713147410358566,-0.8717131474103585,-0.8721115537848606,-0.8725099601593626,-0.8729083665338645,-0.8733067729083666,-0.8737051792828685,-0.8741035856573706,-0.8745019920318725,-0.8749003984063745,-0.8752988047808765,-0.8756972111553785,-0.8760956175298805,-0.8764940239043825,-0.8768924302788844,-0.8772908366533865,-0.8776892430278884,-0.8780876494023905,-0.8784860557768924,-0.8788844621513944,-0.8792828685258964,-0.8796812749003984,-0.8800796812749004,-0.8804780876494024,-0.8808764940239043,-0.8812749003984064,-0.8816733067729083,-0.8820717131474104,-0.8824701195219123,-0.8828685258964143,-0.8832669322709163,-0.8836653386454183,-0.8840637450199204,-0.8844621513944223,-0.8848605577689242,-0.8852589641434263,-0.8856573705179283,-0.8860557768924303,-0.8864541832669323,-0.8868525896414342,-0.8872509960159363,-0.8876494023904382,-0.8880478087649403,-0.8884462151394422,-0.8888446215139443,-0.8892430278884462,-0.8896414342629482,-0.8900398406374502,-0.8904382470119522,-0.8908366533864542,-0.8912350597609562,-0.8916334661354581,-0.8920318725099602,-0.8924302788844621,-0.8928286852589642,-0.8932270916334661,-0.8936254980079681,-0.8940239043824701,-0.8944223107569721,-0.8948207171314742,-0.8952191235059761,-0.895617529880478,-0.8960159362549801,-0.896414342629482,-0.8968127490039841,-0.8972111553784861,-0.897609561752988,-0.8980079681274901,-0.898406374501992,-0.8988047808764941,-0.899203187250996,-0.899601593625498,-0.9,-0.900398406374502,-0.900796812749004,-0.901195219123506,-0.9015936254980079,-0.90199203187251,-0.9023904382470119,-0.902788844621514,-0.9031872509960159,-0.9035856573705179,-0.9039840637450199,-0.9043824701195219,-0.904780876494024,-0.9051792828685259,-0.9055776892430278,-0.9059760956175299,-0.9063745019920318,-0.9067729083665339,-0.9071713147410359,-0.9075697211155378,-0.9079681274900399,-0.9083665338645418,-0.9087649402390439,-0.9091633466135458,-0.9095617529880478,-0.9099601593625498,-0.9103585657370518,-0.9107569721115538,-0.9111553784860558,-0.9115537848605577,-0.9119521912350598,-0.9123505976095617,-0.9127490039840638,-0.9131474103585657,-0.9135458167330678,-0.9139442231075697,-0.9143426294820717,-0.9147410358565737,-0.9151394422310757,-0.9155378486055777,-0.9159362549800797,-0.9163346613545816,-0.9167330677290837,-0.9171314741035856,-0.9175298804780877,-0.9179282868525896,-0.9183266932270916,-0.9187250996015937,-0.9191235059760956,-0.9195219123505977,-0.9199203187250996,-0.9203187250996016,-0.9207171314741036,-0.9211155378486056,-0.9215139442231076,-0.9219123505976096,-0.9223107569721115,-0.9227091633466136,-0.9231075697211155,-0.9235059760956176,-0.9239043824701195,-0.9243027888446215,-0.9247011952191235,-0.9250996015936255,-0.9254980079681275,-0.9258964143426295,-0.9262948207171314,-0.9266932270916335,-0.9270916334661354,-0.9274900398406375,-0.9278884462151394,-0.9282868525896414,-0.9286852589641434,-0.9290836653386454,-0.9294820717131475,-0.9298804780876494,-0.9302788844621513,-0.9306772908366534,-0.9310756972111554,-0.9314741035856574,-0.9318725099601594,-0.9322709163346613,-0.9326693227091634,-0.9330677290836653,-0.9334661354581674,-0.9338645418326693,-0.9342629482071713,-0.9346613545816733,-0.9350597609561753,-0.9354581673306773,-0.9358565737051793,-0.9362549800796812,-0.9366533864541833,-0.9370517928286852,-0.9374501992031873,-0.9378486055776892,-0.9382470119521913,-0.9386454183266932,-0.9390438247011952,-0.9394422310756972,-0.9398406374501992,-0.9402390438247012,-0.9406374501992032,-0.9410358565737051,-0.9414342629482072,-0.9418326693227091,-0.9422310756972112,-0.9426294820717132,-0.9430278884462151,-0.9434262948207172,-0.9438247011952191,-0.9442231075697212,-0.9446215139442231,-0.9450199203187251,-0.9454183266932271,-0.9458167330677291,-0.9462151394422311,-0.9466135458167331,-0.947011952191235,-0.9474103585657371,-0.947808764940239,-0.9482071713147411,-0.948605577689243,-0.949003984063745,-0.949402390438247,-0.949800796812749,-0.950199203187251,-0.950597609561753,-0.9509960159362549,-0.951394422310757,-0.9517928286852589,-0.952191235059761,-0.952589641434263,-0.9529880478087649,-0.953386454183267,-0.9537848605577689,-0.954183266932271,-0.9545816733067729,-0.9549800796812749,-0.9553784860557769,-0.9557768924302789,-0.9561752988047809,-0.9565737051792829,-0.9569721115537848,-0.9573705179282869,-0.9577689243027888,-0.9581673306772909,-0.9585657370517928,-0.9589641434262948,-0.9593625498007968,-0.9597609561752988,-0.9601593625498008,-0.9605577689243028,-0.9609561752988047,-0.9613545816733068,-0.9617529880478087,-0.9621513944223108,-0.9625498007968127,-0.9629482071713148,-0.9633466135458167,-0.9637450199203187,-0.9641434262948207,-0.9645418326693227,-0.9649402390438248,-0.9653386454183267,-0.9657370517928286,-0.9661354581673307,-0.9665338645418327,-0.9669322709163347,-0.9673306772908367,-0.9677290836653386,-0.9681274900398407,-0.9685258964143426,-0.9689243027888447,-0.9693227091633466,-0.9697211155378486,-0.9701195219123506,-0.9705179282868526,-0.9709163346613546,-0.9713147410358566,-0.9717131474103585,-0.9721115537848606,-0.9725099601593625,-0.9729083665338646,-0.9733067729083665,-0.9737051792828685,-0.9741035856573705,-0.9745019920318725,-0.9749003984063745,-0.9752988047808765,-0.9756972111553784,-0.9760956175298805,-0.9764940239043824,-0.9768924302788845,-0.9772908366533865,-0.9776892430278884,-0.9780876494023905,-0.9784860557768924,-0.9788844621513945,-0.9792828685258964,-0.9796812749003984,-0.9800796812749004,-0.9804780876494024,-0.9808764940239044,-0.9812749003984064,-0.9816733067729083,-0.9820717131474104,-0.9824701195219123,-0.9828685258964144,-0.9832669322709163,-0.9836653386454183,-0.9840637450199203,-0.9844621513944223,-0.9848605577689243,-0.9852589641434263,-0.9856573705179282,-0.9860557768924303,-0.9864541832669322,-0.9868525896414343,-0.9872509960159362,-0.9876494023904383,-0.9880478087649402,-0.9884462151394422,-0.9888446215139443,-0.9892430278884462,-0.9896414342629483,-0.9900398406374502,-0.9904382470119522,-0.9908366533864542,-0.9912350597609562,-0.9916334661354582,-0.9920318725099602,-0.9924302788844621,-0.9928286852589642,-0.9932270916334661,-0.9936254980079682,-0.9940239043824701,-0.9944223107569721,-0.9948207171314741,-0.9952191235059761,-0.9956175298804781,-0.9960159362549801,-0.996414342629482,-0.9968127490039841,-0.997211155378486,-0.9976095617529881,-0.99800796812749,-0.998406374501992,-0.998804780876494,-0.999203187250996,-0.999601593625498,-1.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/small_positive.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/small_positive.json new file mode 100644 index 000000000000..be07fa4a05c8 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/small_positive.json @@ -0,0 +1 @@ +{"expected":[1.0475930126492587,1.0472042683349878,1.0468157929876352,1.0464275863331858,1.0460396480980116,1.045651978008868,1.045264575792896,1.0448774411776196,1.0444905738909456,1.0441039736611633,1.0437176402169426,1.0433315732873356,1.0429457726017728,1.0425602378900651,1.0421749688824014,1.041789965309348,1.04140522690185,1.0410207533912268,1.0406365445091748,1.040252599987765,1.039868919559443,1.039485502957028,1.0391023499137115,1.0387194601630576,1.0383368334390022,1.0379544694758516,1.0375723680082822,1.0371905287713403,1.0368089515004404,1.036427635931365,1.0360465818002647,1.035665788843656,1.0352852567984214,1.0349049854018093,1.0345249743914327,1.0341452235052673,1.0337657324816538,1.0333865010592946,1.0330075289772538,1.0326288159749573,1.0322503617921914,1.031872166169102,1.0314942288461946,1.0311165495643335,1.0307391280647402,1.030361964088994,1.0299850573790306,1.0296084076771415,1.029232014725974,1.0288558782685293,1.0284799980481631,1.0281043738085842,1.0277290052938537,1.0273538922483856,1.0269790344169443,1.0266044315446454,1.0262300833769549,1.0258559896596873,1.0254821501390066,1.0251085645614246,1.024735232673801,1.0243621542233419,1.0239893289575996,1.0236167566244727,1.023244436972204,1.0228723697493805,1.022500554704934,1.0221289915881382,1.0217576801486092,1.0213866201363064,1.0210158113015286,1.0206452533949162,1.0202749461674492,1.019904889370447,1.0195350827555676,1.0191655260748074,1.0187962190805,1.0184271615253155,1.0180583531622613,1.0176897937446796,1.0173214830262474,1.0169534207609767,1.0165856067032133,1.016218040607636,1.015850722229256,1.0154836513234171,1.0151168276457938,1.0147502509523918,1.0143839209995469,1.0140178375439244,1.013652000342519,1.013286409152653,1.0129210637319774,1.0125559638384702,1.0121911092304356,1.011826499666504,1.0114621349056319,1.0110980147070994,1.0107341388305124,1.0103705070357993,1.010007119083212,1.0096439747333252,1.0092810737470355,1.0089184158855604,1.0085560009104388,1.0081938285835295,1.007831898667011,1.0074702109233808,1.0071087651154558,1.0067475610063688,1.0063865983595723,1.0060258769388344,1.0056653965082387,1.0053051568321867,1.0049451576753927,1.004585398802887,1.0042258799800134,1.003866600972429,1.0035075615461044,1.0031487614673211,1.0027902005026743,1.002431878419069,1.0020737949837208,1.0017159499641568,1.001358343128212,1.0010009742440316,1.0006438430800684,1.0002869494050834,0.9999302929881454,0.9995738735986293,0.9992176910062168,0.9988617449808951,0.9985060352929567,0.9981505617129987,0.9977953240119218,0.9974403219609316,0.9970855553315355,0.9967310238955436,0.9963767274250684,0.9960226656925236,0.995668838470624,0.9953152455323845,0.9949618866511196,0.9946087616004441,0.9942558701542705,0.9939032120868104,0.9935507871725725,0.9931985951863631,0.9928466359032853,0.9924949090987379,0.9921434145484161,0.9917921520283096,0.9914411213147029,0.9910903221841749,0.9907397544135975,0.9903894177801363,0.9900393120612494,0.9896894370346866,0.9893397924784894,0.9889903781709906,0.9886411938908132,0.9882922394168704,0.987943514528365,0.9875950190047889,0.9872467526259219,0.9868987151718327,0.9865509064228768,0.9862033261596973,0.9858559741632233,0.9855088502146703,0.9851619540955391,0.9848152855876158,0.9844688444729707,0.9841226305339584,0.9837766435532168,0.9834308833136675,0.9830853495985136,0.9827400421912414,0.982394960875618,0.9820501054356919,0.9817054756557927,0.981361071320529,0.9810168922147902,0.9806729381237442,0.980329208832838,0.9799857041277965,0.9796424237946224,0.9792993676195962,0.9789565353892744,0.97861392689049,0.9782715419103523,0.9779293802362451,0.9775874416558282,0.9772457259570353,0.9769042329280734,0.976562962357424,0.9762219140338412,0.9758810877463514,0.9755404832842535,0.9752001004371177,0.9748599389947856,0.9745199987473692,0.9741802794852509,0.973840780999083,0.9735015030797869,0.9731624455185525,0.972823608106839,0.9724849906363727,0.9721465928991478,0.9718084146874253,0.9714704557937328,0.9711327160108643,0.970795195131879,0.9704578929501015,0.9701208092591214,0.969783943852792,0.9694472965252313,0.9691108670708202,0.9687746552842021,0.9684386609602842,0.9681028838942345,0.9677673238814831,0.9674319807177219,0.9670968541989027,0.9667619441212378,0.9664272502811997,0.9660927724755198,0.9657585105011893,0.965424464155457,0.9650906332358307,0.964757017540075,0.9644236168662127,0.964090431012523,0.9637574597775407,0.9634247029600583,0.9630921603591222,0.9627598317740348,0.9624277170043529,0.9620958158498873,0.9617641281107034,0.9614326535871189,0.9611013920797055,0.9607703433892867,0.9604395073169384,0.9601088836639885,0.9597784722320156,0.9594482728228496,0.9591182852385708,0.9587885092815093,0.9584589447542449,0.9581295914596066,0.9578004492006723,0.957471517780768,0.9571427970034679,0.9568142866725937,0.9564859865922144,0.9561578965666448,0.9558300164004475,0.9555023458984294,0.9551748848656442,0.9548476331073898,0.9545205904292094,0.95419375663689,0.9538671315364626,0.9535407149342019,0.9532145066366253,0.952888506450493,0.9525627141828074,0.9522371296408128,0.951911752631995,0.9515865829640807,0.9512616204450374,0.950936864883073,0.9506123160866348,0.95028797386441,0.9499638380253246,0.9496399083785434,0.9493161847334695,0.9489926668997435,0.9486693546872444,0.9483462479060876,0.9480233463666251,0.9477006498794458,0.947378158255374,0.9470558713054703,0.9467337888410293,0.9464119106735815,0.9460902366148913,0.9457687664769571,0.9454475000720111,0.9451264372125184,0.9448055777111778,0.9444849213809196,0.9441644680349064,0.943844217486533,0.9435241695494256,0.9432043240374407,0.9428846807646659,0.9425652395454188,0.9422460001942472,0.9419269625259277,0.9416081263554669,0.9412894914980993,0.9409710577692881,0.9406528249847247,0.9403347929603276,0.9400169615122429,0.9396993304568437,0.9393818996107294,0.9390646687907254,0.9387476378138826,0.9384308064974785,0.9381141746590144,0.9377977421162169,0.9374815086870366,0.9371654741896484,0.9368496384424503,0.9365340012640642,0.936218562473334,0.9359033218893271,0.935588279331332,0.9352734346188601,0.9349587875716433,0.9346443380096346,0.9343300857530089,0.9340160306221599,0.9337021724377024,0.9333885110204703,0.9330750461915167,0.9327617777721146,0.9324487055837543,0.9321358294481452,0.9318231491872144,0.9315106646231066,0.9311983755781834,0.9308862818750236,0.9305743833364224,0.930262679785391,0.9299511710451563,0.9296398569391616,0.9293287372910639,0.929017811924736,0.928707080664265,0.9283965433339515,0.9280861997583105,0.9277760497620702,0.9274660931701718,0.9271563298077694,0.9268467595002291,0.9265373820731296,0.9262281973522608,0.9259192051636245,0.9256104053334328,0.9253017976881094,0.9249933820542878,0.9246851582588115,0.9243771261287339,0.924069285491318,0.9237616361740354,0.9234541780045665,0.9231469108108002,0.9228398344208336,0.9225329486629711,0.922226253365725,0.9219197483578141,0.9216134334681643,0.9213073085259078,0.9210013733603829,0.920695627801134,0.92039007167791,0.920084704820666,0.919779527059561,0.9194745382249591,0.9191697381474281,0.91886512665774,0.9185607035868698,0.9182564687659964,0.9179524220265008,0.917648563199967,0.9173448921181809,0.9170414086131308,0.9167381125170061,0.9164350036621974,0.9161320818812971,0.9158293470070973,0.9155267988725905,0.9152244373109699,0.9149222621556277,0.9146202732401559,0.9143184703983454,0.9140168534641858,0.9137154222718653,0.9134141766557703,0.9131131164504848,0.9128122414907904,0.912511551611666,0.9122110466482874,0.9119107264360269,0.9116105908104533,0.9113106396073312,0.9110108726626207,0.9107112898124777,0.9104118908932529,0.9101126757414922,0.9098136441939351,0.9095147960875161,0.9092161312593633,0.908917649546798,0.9086193507873355,0.9083212348186835,0.9080233014787423,0.9077255506056051,0.9074279820375569,0.9071305956130741,0.9068333911708252,0.9065363685496695,0.9062395275886571,0.9059428681270292,0.9056463900042167,0.9053500930598408,0.9050539771337126,0.9047580420658322,0.904462287696389,0.9041667138657611,0.9038713204145156,0.9035761071834073,0.9032810740133793,0.9029862207455622,0.9026915472212742,0.9023970532820201,0.9021027387694923,0.9018086035255691,0.9015146473923151,0.9012208702119812,0.9009272718270034,0.9006338520800037,0.9003406108137888,0.9000475478713502,0.8997546630958643,0.8994619563306911,0.8991694274193753,0.898877076205645,0.8985849025334114,0.898292906246769,0.8980010871899954,0.8977094452075505,0.8974179801440767,0.897126691844398,0.8968355801535206,0.8965446449166316,0.8962538859791002,0.8959633031864754,0.8956728963844875,0.8953826654190472,0.8950926101362449,0.894802730382351,0.8945130260038152,0.894223496847267,0.8939341427595145,0.8936449635875442,0.893355959178522,0.8930671293797907,0.8927784740388721,0.8924899930034652,0.8922016861214461,0.8919135532408686,0.8916255942099627,0.8913378088771354,0.8910501970909699,0.890762758700225,0.890475493553836,0.8901884015009133,0.8899014823907423,0.8896147360727839,0.8893281623966732,0.88904176121222,0.8887555323694083,0.8884694757183959,0.8881835911095142,0.8878978783932681,0.8876123374203357,0.887326968041568,0.8870417701079882,0.8867567434707923,0.886471887981348,0.8861872034911955,0.8859026898520457,0.8856183469157816,0.8853341745344567,0.8850501725602954,0.8847663408456932,0.8844826792432148,0.8841991876055962,0.8839158657857425,0.883632713636728,0.8833497310117971,0.8830669177643627,0.8827842737480064,0.8825017988164786,0.8822194928236978,0.881937355623751,0.8816553870708921,0.881373587019543],"x":[0.8,0.800398406374502,0.8007968127490039,0.801195219123506,0.801593625498008,0.80199203187251,0.802390438247012,0.8027888446215139,0.803187250996016,0.8035856573705179,0.80398406374502,0.8043824701195219,0.8047808764940239,0.8051792828685259,0.8055776892430279,0.8059760956175299,0.8063745019920319,0.8067729083665338,0.8071713147410359,0.8075697211155378,0.8079681274900399,0.8083665338645418,0.8087649402390438,0.8091633466135458,0.8095617529880478,0.8099601593625498,0.8103585657370518,0.8107569721115537,0.8111553784860558,0.8115537848605577,0.8119521912350598,0.8123505976095617,0.8127490039840638,0.8131474103585657,0.8135458167330677,0.8139442231075698,0.8143426294820717,0.8147410358565738,0.8151394422310757,0.8155378486055777,0.8159362549800797,0.8163346613545817,0.8167330677290837,0.8171314741035857,0.8175298804780876,0.8179282868525897,0.8183266932270916,0.8187250996015937,0.8191235059760956,0.8195219123505976,0.8199203187250996,0.8203187250996016,0.8207171314741036,0.8211155378486056,0.8215139442231075,0.8219123505976096,0.8223107569721115,0.8227091633466136,0.8231075697211155,0.8235059760956175,0.8239043824701195,0.8243027888446215,0.8247011952191236,0.8250996015936255,0.8254980079681274,0.8258964143426295,0.8262948207171315,0.8266932270916335,0.8270916334661355,0.8274900398406374,0.8278884462151395,0.8282868525896414,0.8286852589641435,0.8290836653386454,0.8294820717131474,0.8298804780876494,0.8302788844621514,0.8306772908366534,0.8310756972111554,0.8314741035856573,0.8318725099601594,0.8322709163346613,0.8326693227091634,0.8330677290836653,0.8334661354581673,0.8338645418326693,0.8342629482071713,0.8346613545816733,0.8350597609561753,0.8354581673306772,0.8358565737051793,0.8362549800796812,0.8366533864541833,0.8370517928286852,0.8374501992031872,0.8378486055776893,0.8382470119521912,0.8386454183266933,0.8390438247011952,0.8394422310756973,0.8398406374501992,0.8402390438247012,0.8406374501992032,0.8410358565737052,0.8414342629482072,0.8418326693227092,0.8422310756972111,0.8426294820717132,0.8430278884462151,0.8434262948207172,0.8438247011952191,0.8442231075697211,0.8446215139442231,0.8450199203187251,0.8454183266932271,0.8458167330677291,0.846215139442231,0.8466135458167331,0.847011952191235,0.8474103585657371,0.847808764940239,0.848207171314741,0.848605577689243,0.849003984063745,0.8494023904382471,0.849800796812749,0.850199203187251,0.850597609561753,0.850996015936255,0.851394422310757,0.851792828685259,0.8521912350597609,0.852589641434263,0.8529880478087649,0.853386454183267,0.8537848605577689,0.8541832669322709,0.8545816733067729,0.8549800796812749,0.8553784860557769,0.8557768924302789,0.8561752988047808,0.8565737051792829,0.8569721115537848,0.8573705179282869,0.8577689243027888,0.8581673306772908,0.8585657370517928,0.8589641434262948,0.8593625498007968,0.8597609561752988,0.8601593625498007,0.8605577689243028,0.8609561752988047,0.8613545816733068,0.8617529880478088,0.8621513944223107,0.8625498007968128,0.8629482071713147,0.8633466135458168,0.8637450199203187,0.8641434262948208,0.8645418326693227,0.8649402390438247,0.8653386454183267,0.8657370517928287,0.8661354581673307,0.8665338645418327,0.8669322709163346,0.8673306772908367,0.8677290836653386,0.8681274900398407,0.8685258964143426,0.8689243027888446,0.8693227091633466,0.8697211155378486,0.8701195219123506,0.8705179282868526,0.8709163346613545,0.8713147410358566,0.8717131474103585,0.8721115537848606,0.8725099601593626,0.8729083665338645,0.8733067729083666,0.8737051792828685,0.8741035856573706,0.8745019920318725,0.8749003984063745,0.8752988047808765,0.8756972111553785,0.8760956175298805,0.8764940239043825,0.8768924302788844,0.8772908366533865,0.8776892430278884,0.8780876494023905,0.8784860557768924,0.8788844621513944,0.8792828685258964,0.8796812749003984,0.8800796812749004,0.8804780876494024,0.8808764940239043,0.8812749003984064,0.8816733067729083,0.8820717131474104,0.8824701195219123,0.8828685258964143,0.8832669322709163,0.8836653386454183,0.8840637450199204,0.8844621513944223,0.8848605577689242,0.8852589641434263,0.8856573705179283,0.8860557768924303,0.8864541832669323,0.8868525896414342,0.8872509960159363,0.8876494023904382,0.8880478087649403,0.8884462151394422,0.8888446215139443,0.8892430278884462,0.8896414342629482,0.8900398406374502,0.8904382470119522,0.8908366533864542,0.8912350597609562,0.8916334661354581,0.8920318725099602,0.8924302788844621,0.8928286852589642,0.8932270916334661,0.8936254980079681,0.8940239043824701,0.8944223107569721,0.8948207171314742,0.8952191235059761,0.895617529880478,0.8960159362549801,0.896414342629482,0.8968127490039841,0.8972111553784861,0.897609561752988,0.8980079681274901,0.898406374501992,0.8988047808764941,0.899203187250996,0.899601593625498,0.9,0.900398406374502,0.900796812749004,0.901195219123506,0.9015936254980079,0.90199203187251,0.9023904382470119,0.902788844621514,0.9031872509960159,0.9035856573705179,0.9039840637450199,0.9043824701195219,0.904780876494024,0.9051792828685259,0.9055776892430278,0.9059760956175299,0.9063745019920318,0.9067729083665339,0.9071713147410359,0.9075697211155378,0.9079681274900399,0.9083665338645418,0.9087649402390439,0.9091633466135458,0.9095617529880478,0.9099601593625498,0.9103585657370518,0.9107569721115538,0.9111553784860558,0.9115537848605577,0.9119521912350598,0.9123505976095617,0.9127490039840638,0.9131474103585657,0.9135458167330678,0.9139442231075697,0.9143426294820717,0.9147410358565737,0.9151394422310757,0.9155378486055777,0.9159362549800797,0.9163346613545816,0.9167330677290837,0.9171314741035856,0.9175298804780877,0.9179282868525896,0.9183266932270916,0.9187250996015937,0.9191235059760956,0.9195219123505977,0.9199203187250996,0.9203187250996016,0.9207171314741036,0.9211155378486056,0.9215139442231076,0.9219123505976096,0.9223107569721115,0.9227091633466136,0.9231075697211155,0.9235059760956176,0.9239043824701195,0.9243027888446215,0.9247011952191235,0.9250996015936255,0.9254980079681275,0.9258964143426295,0.9262948207171314,0.9266932270916335,0.9270916334661354,0.9274900398406375,0.9278884462151394,0.9282868525896414,0.9286852589641434,0.9290836653386454,0.9294820717131475,0.9298804780876494,0.9302788844621513,0.9306772908366534,0.9310756972111554,0.9314741035856574,0.9318725099601594,0.9322709163346613,0.9326693227091634,0.9330677290836653,0.9334661354581674,0.9338645418326693,0.9342629482071713,0.9346613545816733,0.9350597609561753,0.9354581673306773,0.9358565737051793,0.9362549800796812,0.9366533864541833,0.9370517928286852,0.9374501992031873,0.9378486055776892,0.9382470119521913,0.9386454183266932,0.9390438247011952,0.9394422310756972,0.9398406374501992,0.9402390438247012,0.9406374501992032,0.9410358565737051,0.9414342629482072,0.9418326693227091,0.9422310756972112,0.9426294820717132,0.9430278884462151,0.9434262948207172,0.9438247011952191,0.9442231075697212,0.9446215139442231,0.9450199203187251,0.9454183266932271,0.9458167330677291,0.9462151394422311,0.9466135458167331,0.947011952191235,0.9474103585657371,0.947808764940239,0.9482071713147411,0.948605577689243,0.949003984063745,0.949402390438247,0.949800796812749,0.950199203187251,0.950597609561753,0.9509960159362549,0.951394422310757,0.9517928286852589,0.952191235059761,0.952589641434263,0.9529880478087649,0.953386454183267,0.9537848605577689,0.954183266932271,0.9545816733067729,0.9549800796812749,0.9553784860557769,0.9557768924302789,0.9561752988047809,0.9565737051792829,0.9569721115537848,0.9573705179282869,0.9577689243027888,0.9581673306772909,0.9585657370517928,0.9589641434262948,0.9593625498007968,0.9597609561752988,0.9601593625498008,0.9605577689243028,0.9609561752988047,0.9613545816733068,0.9617529880478087,0.9621513944223108,0.9625498007968127,0.9629482071713148,0.9633466135458167,0.9637450199203187,0.9641434262948207,0.9645418326693227,0.9649402390438248,0.9653386454183267,0.9657370517928286,0.9661354581673307,0.9665338645418327,0.9669322709163347,0.9673306772908367,0.9677290836653386,0.9681274900398407,0.9685258964143426,0.9689243027888447,0.9693227091633466,0.9697211155378486,0.9701195219123506,0.9705179282868526,0.9709163346613546,0.9713147410358566,0.9717131474103585,0.9721115537848606,0.9725099601593625,0.9729083665338646,0.9733067729083665,0.9737051792828685,0.9741035856573705,0.9745019920318725,0.9749003984063745,0.9752988047808765,0.9756972111553784,0.9760956175298805,0.9764940239043824,0.9768924302788845,0.9772908366533865,0.9776892430278884,0.9780876494023905,0.9784860557768924,0.9788844621513945,0.9792828685258964,0.9796812749003984,0.9800796812749004,0.9804780876494024,0.9808764940239044,0.9812749003984064,0.9816733067729083,0.9820717131474104,0.9824701195219123,0.9828685258964144,0.9832669322709163,0.9836653386454183,0.9840637450199203,0.9844621513944223,0.9848605577689243,0.9852589641434263,0.9856573705179282,0.9860557768924303,0.9864541832669322,0.9868525896414343,0.9872509960159362,0.9876494023904383,0.9880478087649402,0.9884462151394422,0.9888446215139443,0.9892430278884462,0.9896414342629483,0.9900398406374502,0.9904382470119522,0.9908366533864542,0.9912350597609562,0.9916334661354582,0.9920318725099602,0.9924302788844621,0.9928286852589642,0.9932270916334661,0.9936254980079682,0.9940239043824701,0.9944223107569721,0.9948207171314741,0.9952191235059761,0.9956175298804781,0.9960159362549801,0.996414342629482,0.9968127490039841,0.997211155378486,0.9976095617529881,0.99800796812749,0.998406374501992,0.998804780876494,0.999203187250996,0.999601593625498,1.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/smaller.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/smaller.json new file mode 100644 index 000000000000..b06547e25f72 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/smaller.json @@ -0,0 +1 @@ +{"expected":[-1.0475930126492587,-1.050712682982123,-1.0538497262810698,-1.0570042855481372,-1.0601765054206598,-1.0633665321965549,-1.0665745138601146,-1.069800600108321,-1.0730449423776909,-1.076307693871669,-1.0795890095885794,-1.0828890463501508,-1.086207962830632,-1.0895459195865074,-1.0929030790868344,-1.0962796057442115,-1.0996756659464004,-1.1030914280886135,-1.1065270626064847,-1.1099827420097463,-1.1134586409166232,-1.1169549360889668,-1.1204718064681511,-1.1240094332117447,-1.127567999730982,-1.131147691729059,-1.1347486972402698,-1.1383712066700087,-1.142015412835662,-1.1456815110084138,-1.1493696989559892,-1.1530801769863606,-1.1568131479924475,-1.1605688174978306,-1.1643473937035136,-1.1681490875357614,-1.1719741126950416,-1.1758226857061038,-1.179695025969228,-1.183591355812675,-1.1875119005463703,-1.191456888516865,-1.1954265511636004,-1.1994211230765215,-1.203440842055075,-1.2074859491686345,-1.2115566888183915,-1.2156533088007604,-1.2197760603723382,-1.2239251983164667,-1.2281009810114456,-1.2323036705004458,-1.236533532563175,-1.2407908367893474,-1.2450758566540145,-1.249388869594812,-1.2537301570911854,-1.2581000047456496,-1.262498702367156,-1.2669265440566195,-1.2713838282946874,-1.275870858031811,-1.2803879407806988,-1.2849353887112231,-1.2895135187478657,-1.294122652669777,-1.2987631172135379,-1.3034352441787138,-1.3081393705362876,-1.3128758385400723,-1.3176449958411993,-1.3224471956057846,-1.327282796635882,-1.3321521634938303,-1.337055666630116,-1.3419936825148653,-1.3469665937730917,-1.3519747893238334,-1.3570186645233069,-1.3620986213122275,-1.3672150683674316,-1.3723684212579652,-1.377559102605784,-1.3827875422512423,-1.3880541774235347,-1.3933594529162727,-1.3987038212683809,-1.4040877429505136,-1.4095116865571848,-1.4149761290048337,-1.4204815557360393,-1.4260284609301177,-1.4316173477203453,-1.4372487284180535,-1.4429231247438616,-1.4486410680663229,-1.4544030996482675,-1.4602097709011446,-1.466061643647673,-1.4719592903931373,-1.4779032946056583,-1.4838942510058106,-1.489932765865954,-1.4960194573196761,-1.5021549556817557,-1.5083399037790812,-1.5145749572929765,-1.5208607851134044,-1.5271980697055525,-1.5335875074893164,-1.5400298092322338,-1.5465257004564403,-1.5530759218602537,-1.559681229755021,-1.5663423965178944,-1.573060211061235,-1.5798354793193878,-1.5866690247535986,-1.5935616888758881,-1.6005143317927486,-1.6075278327695617,-1.6146030908166964,-1.62174102529829,-1.6289425765647698,-1.6362087066102415,-1.6435403997559153,-1.6509386633608214,-1.6584045285611297,-1.6659390510394652,-1.6735433118256844,-1.6812184181306762,-1.6889655042148244,-1.6967857322928765,-1.704680293477065,-1.7126504087604317,-1.720697330042429,-1.728822341198995,-1.7370267591994346,-1.7453119352725794,-1.7536792561248595,-1.7621301452130778,-1.7706660640748606,-1.779288513719947,-1.7879990360856772,-1.796799215560272,-1.8056906805777135,-1.8146751052883139,-1.8237542113093035,-1.8329297695600908,-1.8422036021871446,-1.851577584583801,-1.8610536475106614,-1.8706337793226486,-1.8803200283092214,-1.8901145051547088,-1.9000193855262368,-1.9100369127972634,-1.9201694009153352,-1.9304192374233167,-1.9407888866440572,-1.9512808930392047,-1.9618978847537207,-1.972642577358542,-1.983517777804828,-1.9945263886043028,-2.0056714122513735,-2.016955955904001,-2.0283832363416896,-2.0399565852205135,-2.0516794546467865,-2.0635554230928377,-2.0755882016803837,-2.0877816408592564,-2.1001397375117006,-2.1126666425151903,-2.1253666687997366,-2.1382442999389815,-2.151304199318072,-2.164551219925413,-2.17799041481992,-2.1916270483304747,-2.2054666080499064,-2.2195148176920854,-2.233777650887757,-2.248261346002553,-2.26297242206943,-2.277917695937627,-2.2931043007513177,-2.308539705883625,-2.324231738465722,-2.3401886066666675,-2.3564189248976164,-2.3729317411345057,-2.389736566576514,-2.406843407884078,-2.4242628022704427,-2.4420058557552893,-2.4600842849286226,-2.478510462618673,-2.4972974679100637,-2.51645914101918,-2.536010143603957,-2.5559660251669443,-2.57634329630564,-2.597159509675202,-2.618433349658955,-2.6401847318952565,-2.6624349139900443,-2.6852066189583574,-2.7085241731924,-2.732413661057043,-2.756903098576883,-2.7820226291158683,-2.807804744478142,-2.834284535499068,-2.861499976976091,-2.8894922527458418,-2.9183061278925857,-2.9479903765334856,-2.9785982754462124,-3.01018817608706,-3.042824170429464,-3.0765768697167064,-3.1115243199157074,-3.1477530837184227,-3.1853595268280137,-3.224451356635561,-3.2651494751510466,-3.3075902264993444,-3.3519281443061937,-3.398339338633899,-3.4470257098804122,-3.498220244433146,-3.5521937434361215,-3.6092634768305305,-3.6698044640515506,-3.7342644002456393,-3.8031837400156534,-3.8772232370258037,-3.957202529247597,-4.044155553366893,-4.139412445542508,-4.244724741243645,-4.362464626815531,-4.4959579411973225,-4.650075616362258,-4.832369243581718,-5.0554899416852015,-5.343154238334272,-5.748606648860114,-6.441746210638492,null,6.441746210638492,5.748606648860114,5.343154238334272,5.0554899416852015,4.832369243581718,4.650075616362258,4.4959579411973225,4.362464626815531,4.244724741243645,4.139412445542508,4.044155553366893,3.957202529247597,3.8772232370258037,3.8031837400156534,3.7342644002456393,3.6698044640515506,3.6092634768305305,3.5521937434361215,3.498220244433146,3.4470257098804122,3.398339338633899,3.3519281443061937,3.3075902264993444,3.2651494751510466,3.224451356635561,3.1853595268280137,3.1477530837184227,3.1115243199157074,3.0765768697167064,3.042824170429464,3.01018817608706,2.9785982754462124,2.9479903765334856,2.9183061278925857,2.8894922527458418,2.861499976976091,2.834284535499068,2.807804744478142,2.7820226291158683,2.756903098576883,2.732413661057043,2.7085241731924,2.6852066189583574,2.6624349139900443,2.6401847318952565,2.618433349658955,2.597159509675202,2.57634329630564,2.5559660251669443,2.536010143603957,2.51645914101918,2.4972974679100637,2.478510462618673,2.4600842849286226,2.4420058557552893,2.4242628022704427,2.406843407884078,2.389736566576514,2.3729317411345057,2.3564189248976164,2.3401886066666675,2.324231738465722,2.308539705883625,2.2931043007513177,2.277917695937627,2.26297242206943,2.248261346002553,2.233777650887757,2.2195148176920854,2.2054666080499064,2.1916270483304747,2.17799041481992,2.164551219925413,2.151304199318072,2.1382442999389815,2.1253666687997366,2.1126666425151903,2.1001397375117006,2.0877816408592564,2.0755882016803837,2.0635554230928377,2.0516794546467865,2.0399565852205135,2.0283832363416896,2.016955955904001,2.0056714122513735,1.9945263886043028,1.983517777804828,1.972642577358542,1.9618978847537207,1.9512808930392047,1.9407888866440572,1.9304192374233167,1.9201694009153352,1.9100369127972634,1.9000193855262368,1.8901145051547088,1.8803200283092214,1.8706337793226486,1.8610536475106614,1.851577584583801,1.8422036021871446,1.8329297695600908,1.8237542113093035,1.8146751052883139,1.8056906805777135,1.796799215560272,1.7879990360856772,1.779288513719947,1.7706660640748606,1.7621301452130778,1.7536792561248595,1.7453119352725794,1.7370267591994346,1.728822341198995,1.720697330042429,1.7126504087604317,1.704680293477065,1.6967857322928765,1.6889655042148244,1.6812184181306762,1.6735433118256844,1.6659390510394652,1.6584045285611297,1.6509386633608214,1.6435403997559153,1.6362087066102415,1.6289425765647698,1.62174102529829,1.6146030908166964,1.6075278327695617,1.6005143317927486,1.5935616888758881,1.5866690247535986,1.5798354793193878,1.573060211061235,1.5663423965178944,1.559681229755021,1.5530759218602537,1.5465257004564403,1.5400298092322338,1.5335875074893164,1.5271980697055525,1.5208607851134044,1.5145749572929765,1.5083399037790812,1.5021549556817557,1.4960194573196761,1.489932765865954,1.4838942510058106,1.4779032946056583,1.4719592903931373,1.466061643647673,1.4602097709011446,1.4544030996482675,1.4486410680663229,1.4429231247438616,1.4372487284180535,1.4316173477203453,1.4260284609301177,1.4204815557360393,1.4149761290048337,1.4095116865571848,1.4040877429505136,1.3987038212683809,1.3933594529162727,1.3880541774235347,1.3827875422512423,1.377559102605784,1.3723684212579652,1.3672150683674316,1.3620986213122275,1.3570186645233069,1.3519747893238334,1.3469665937730917,1.3419936825148653,1.337055666630116,1.3321521634938303,1.327282796635882,1.3224471956057846,1.3176449958411993,1.3128758385400723,1.3081393705362876,1.3034352441787138,1.2987631172135379,1.294122652669777,1.2895135187478657,1.2849353887112231,1.2803879407806988,1.275870858031811,1.2713838282946874,1.2669265440566195,1.262498702367156,1.2581000047456496,1.2537301570911854,1.249388869594812,1.2450758566540145,1.2407908367893474,1.236533532563175,1.2323036705004458,1.2281009810114456,1.2239251983164667,1.2197760603723382,1.2156533088007604,1.2115566888183915,1.2074859491686345,1.203440842055075,1.1994211230765215,1.1954265511636004,1.191456888516865,1.1875119005463703,1.183591355812675,1.179695025969228,1.1758226857061038,1.1719741126950416,1.1681490875357614,1.1643473937035136,1.1605688174978306,1.1568131479924475,1.1530801769863606,1.1493696989559892,1.1456815110084138,1.142015412835662,1.1383712066700087,1.1347486972402698,1.131147691729059,1.127567999730982,1.1240094332117447,1.1204718064681511,1.1169549360889668,1.1134586409166232,1.1099827420097463,1.1065270626064847,1.1030914280886135,1.0996756659464004,1.0962796057442115,1.0929030790868344,1.0895459195865074,1.086207962830632,1.0828890463501508,1.0795890095885794,1.076307693871669,1.0730449423776909,1.069800600108321,1.0665745138601146,1.0633665321965549,1.0601765054206598,1.0570042855481372,1.0538497262810698,1.050712682982123,1.0475930126492587],"x":[-0.8,-0.796812749003984,-0.7936254980079681,-0.7904382470119522,-0.7872509960159363,-0.7840637450199203,-0.7808764940239044,-0.7776892430278884,-0.7745019920318725,-0.7713147410358566,-0.7681274900398406,-0.7649402390438247,-0.7617529880478088,-0.7585657370517929,-0.7553784860557768,-0.7521912350597609,-0.749003984063745,-0.7458167330677291,-0.7426294820717132,-0.7394422310756972,-0.7362549800796813,-0.7330677290836654,-0.7298804780876494,-0.7266932270916334,-0.7235059760956175,-0.7203187250996016,-0.7171314741035857,-0.7139442231075698,-0.7107569721115538,-0.7075697211155378,-0.7043824701195219,-0.701195219123506,-0.69800796812749,-0.6948207171314741,-0.6916334661354582,-0.6884462151394423,-0.6852589641434262,-0.6820717131474103,-0.6788844621513944,-0.6756972111553785,-0.6725099601593626,-0.6693227091633466,-0.6661354581673307,-0.6629482071713148,-0.6597609561752988,-0.6565737051792828,-0.6533864541832669,-0.650199203187251,-0.6470119521912351,-0.6438247011952192,-0.6406374501992032,-0.6374501992031872,-0.6342629482071713,-0.6310756972111554,-0.6278884462151394,-0.6247011952191235,-0.6215139442231076,-0.6183266932270917,-0.6151394422310758,-0.6119521912350597,-0.6087649402390438,-0.6055776892430279,-0.602390438247012,-0.599203187250996,-0.5960159362549801,-0.5928286852589641,-0.5896414342629482,-0.5864541832669322,-0.5832669322709163,-0.5800796812749004,-0.5768924302788845,-0.5737051792828686,-0.5705179282868525,-0.5673306772908366,-0.5641434262948207,-0.5609561752988048,-0.5577689243027888,-0.5545816733067729,-0.551394422310757,-0.5482071713147411,-0.5450199203187251,-0.5418326693227091,-0.5386454183266932,-0.5354581673306773,-0.5322709163346614,-0.5290836653386454,-0.5258964143426295,-0.5227091633466135,-0.5195219123505976,-0.5163346613545817,-0.5131474103585657,-0.5099601593625498,-0.5067729083665339,-0.503585657370518,-0.500398406374502,-0.49721115537848604,-0.4940239043824701,-0.49083665338645416,-0.48764940239043825,-0.48446215139442234,-0.48127490039840637,-0.47808764940239046,-0.4749003984063745,-0.4717131474103586,-0.4685258964143426,-0.4653386454183267,-0.46215139442231074,-0.4589641434262948,-0.45577689243027886,-0.45258964143426295,-0.44940239043824703,-0.44621513944223107,-0.44302788844621516,-0.4398406374501992,-0.4366533864541833,-0.4334661354581673,-0.4302788844621514,-0.42709163346613543,-0.4239043824701195,-0.4207171314741036,-0.41752988047808764,-0.41434262948207173,-0.41115537848605577,-0.40796812749003986,-0.4047808764940239,-0.401593625498008,-0.398406374501992,-0.3952191235059761,-0.39203187250996013,-0.3888446215139442,-0.3856573705179283,-0.38247011952191234,-0.37928286852589643,-0.37609561752988047,-0.37290836653386455,-0.3697211155378486,-0.3665338645418327,-0.3633466135458167,-0.3601593625498008,-0.3569721115537849,-0.3537848605577689,-0.350597609561753,-0.34741035856573704,-0.34422310756972113,-0.34103585657370517,-0.33784860557768925,-0.3346613545816733,-0.3314741035856574,-0.3282868525896414,-0.3250996015936255,-0.3219123505976096,-0.3187250996015936,-0.3155378486055777,-0.31235059760956174,-0.30916334661354583,-0.30597609561752986,-0.30278884462151395,-0.299601593625498,-0.2964143426294821,-0.2932270916334661,-0.2900398406374502,-0.2868525896414343,-0.2836653386454183,-0.2804780876494024,-0.27729083665338644,-0.27410358565737053,-0.27091633466135456,-0.26772908366533865,-0.2645418326693227,-0.2613545816733068,-0.25816733067729086,-0.2549800796812749,-0.251792828685259,-0.24860557768924302,-0.24541832669322708,-0.24223107569721117,-0.23904382470119523,-0.2358565737051793,-0.23266932270916335,-0.2294820717131474,-0.22629482071713147,-0.22310756972111553,-0.2199203187250996,-0.21673306772908366,-0.21354581673306772,-0.2103585657370518,-0.20717131474103587,-0.20398406374501993,-0.200796812749004,-0.19760956175298805,-0.1944223107569721,-0.19123505976095617,-0.18804780876494023,-0.1848605577689243,-0.18167330677290836,-0.17848605577689244,-0.1752988047808765,-0.17211155378486057,-0.16892430278884463,-0.1657370517928287,-0.16254980079681275,-0.1593625498007968,-0.15617529880478087,-0.15298804780876493,-0.149800796812749,-0.14661354581673305,-0.14342629482071714,-0.1402390438247012,-0.13705179282868526,-0.13386454183266933,-0.1306772908366534,-0.12749003984063745,-0.12430278884462151,-0.12111553784860558,-0.11792828685258964,-0.1147410358565737,-0.11155378486055777,-0.10836653386454183,-0.1051792828685259,-0.10199203187250996,-0.09880478087649402,-0.09561752988047809,-0.09243027888446215,-0.08924302788844622,-0.08605577689243028,-0.08286852589641434,-0.0796812749003984,-0.07649402390438247,-0.07330677290836653,-0.0701195219123506,-0.06693227091633466,-0.06374501992031872,-0.06055776892430279,-0.05737051792828685,-0.054183266932270914,-0.05099601593625498,-0.04780876494023904,-0.04462151394422311,-0.04143426294820717,-0.03824701195219123,-0.0350597609561753,-0.03187250996015936,-0.028685258964143426,-0.02549800796812749,-0.022310756972111555,-0.019123505976095617,-0.01593625498007968,-0.012749003984063745,-0.009561752988047808,-0.006374501992031873,-0.0031872509960159364,0.0,0.0031872509960159364,0.006374501992031873,0.009561752988047808,0.012749003984063745,0.01593625498007968,0.019123505976095617,0.022310756972111555,0.02549800796812749,0.028685258964143426,0.03187250996015936,0.0350597609561753,0.03824701195219123,0.04143426294820717,0.04462151394422311,0.04780876494023904,0.05099601593625498,0.054183266932270914,0.05737051792828685,0.06055776892430279,0.06374501992031872,0.06693227091633466,0.0701195219123506,0.07330677290836653,0.07649402390438247,0.0796812749003984,0.08286852589641434,0.08605577689243028,0.08924302788844622,0.09243027888446215,0.09561752988047809,0.09880478087649402,0.10199203187250996,0.1051792828685259,0.10836653386454183,0.11155378486055777,0.1147410358565737,0.11792828685258964,0.12111553784860558,0.12430278884462151,0.12749003984063745,0.1306772908366534,0.13386454183266933,0.13705179282868526,0.1402390438247012,0.14342629482071714,0.14661354581673305,0.149800796812749,0.15298804780876493,0.15617529880478087,0.1593625498007968,0.16254980079681275,0.1657370517928287,0.16892430278884463,0.17211155378486057,0.1752988047808765,0.17848605577689244,0.18167330677290836,0.1848605577689243,0.18804780876494023,0.19123505976095617,0.1944223107569721,0.19760956175298805,0.200796812749004,0.20398406374501993,0.20717131474103587,0.2103585657370518,0.21354581673306772,0.21673306772908366,0.2199203187250996,0.22310756972111553,0.22629482071713147,0.2294820717131474,0.23266932270916335,0.2358565737051793,0.23904382470119523,0.24223107569721117,0.24541832669322708,0.24860557768924302,0.251792828685259,0.2549800796812749,0.25816733067729086,0.2613545816733068,0.2645418326693227,0.26772908366533865,0.27091633466135456,0.27410358565737053,0.27729083665338644,0.2804780876494024,0.2836653386454183,0.2868525896414343,0.2900398406374502,0.2932270916334661,0.2964143426294821,0.299601593625498,0.30278884462151395,0.30597609561752986,0.30916334661354583,0.31235059760956174,0.3155378486055777,0.3187250996015936,0.3219123505976096,0.3250996015936255,0.3282868525896414,0.3314741035856574,0.3346613545816733,0.33784860557768925,0.34103585657370517,0.34422310756972113,0.34741035856573704,0.350597609561753,0.3537848605577689,0.3569721115537849,0.3601593625498008,0.3633466135458167,0.3665338645418327,0.3697211155378486,0.37290836653386455,0.37609561752988047,0.37928286852589643,0.38247011952191234,0.3856573705179283,0.3888446215139442,0.39203187250996013,0.3952191235059761,0.398406374501992,0.401593625498008,0.4047808764940239,0.40796812749003986,0.41115537848605577,0.41434262948207173,0.41752988047808764,0.4207171314741036,0.4239043824701195,0.42709163346613543,0.4302788844621514,0.4334661354581673,0.4366533864541833,0.4398406374501992,0.44302788844621516,0.44621513944223107,0.44940239043824703,0.45258964143426295,0.45577689243027886,0.4589641434262948,0.46215139442231074,0.4653386454183267,0.4685258964143426,0.4717131474103586,0.4749003984063745,0.47808764940239046,0.48127490039840637,0.48446215139442234,0.48764940239043825,0.49083665338645416,0.4940239043824701,0.49721115537848604,0.500398406374502,0.503585657370518,0.5067729083665339,0.5099601593625498,0.5131474103585657,0.5163346613545817,0.5195219123505976,0.5227091633466135,0.5258964143426295,0.5290836653386454,0.5322709163346614,0.5354581673306773,0.5386454183266932,0.5418326693227091,0.5450199203187251,0.5482071713147411,0.551394422310757,0.5545816733067729,0.5577689243027888,0.5609561752988048,0.5641434262948207,0.5673306772908366,0.5705179282868525,0.5737051792828686,0.5768924302788845,0.5800796812749004,0.5832669322709163,0.5864541832669322,0.5896414342629482,0.5928286852589641,0.5960159362549801,0.599203187250996,0.602390438247012,0.6055776892430279,0.6087649402390438,0.6119521912350597,0.6151394422310758,0.6183266932270917,0.6215139442231076,0.6247011952191235,0.6278884462151394,0.6310756972111554,0.6342629482071713,0.6374501992031872,0.6406374501992032,0.6438247011952192,0.6470119521912351,0.650199203187251,0.6533864541832669,0.6565737051792828,0.6597609561752988,0.6629482071713148,0.6661354581673307,0.6693227091633466,0.6725099601593626,0.6756972111553785,0.6788844621513944,0.6820717131474103,0.6852589641434262,0.6884462151394423,0.6916334661354582,0.6948207171314741,0.69800796812749,0.701195219123506,0.7043824701195219,0.7075697211155378,0.7107569721115538,0.7139442231075698,0.7171314741035857,0.7203187250996016,0.7235059760956175,0.7266932270916334,0.7298804780876494,0.7330677290836654,0.7362549800796813,0.7394422310756972,0.7426294820717132,0.7458167330677291,0.749003984063745,0.7521912350597609,0.7553784860557768,0.7585657370517929,0.7617529880478088,0.7649402390438247,0.7681274900398406,0.7713147410358566,0.7745019920318725,0.7776892430278884,0.7808764940239044,0.7840637450199203,0.7872509960159363,0.7904382470119522,0.7936254980079681,0.796812749003984,0.8]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/tiny_negative.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/tiny_negative.json new file mode 100644 index 000000000000..7b46592775a9 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/tiny_negative.json @@ -0,0 +1 @@ +{"expected":[-691.4686750787736,-691.4706690973605,-691.4726671000032,-691.4746691026537,-691.4766751213604,-691.4786851722681,-691.4806992716194,-691.4827174357553,-691.4847396811155,-691.4867660242401,-691.4887964817698,-691.4908310704468,-691.4928698071158,-691.4949127087247,-691.4969597923252,-691.4990110750747,-691.5010665742357,-691.5031263071774,-691.5051902913768,-691.5072585444194,-691.5093310839998,-691.511407927923,-691.513489094105,-691.5155746005743,-691.5176644654717,-691.5197587070529,-691.5218573436877,-691.5239603938622,-691.5260678761796,-691.5281798093603,-691.5302962122441,-691.5324171037907,-691.5345425030804,-691.5366724293154,-691.5388069018212,-691.540945940047,-691.5430895635672,-691.5452377920823,-691.5473906454201,-691.5495481435368,-691.5517103065177,-691.5538771545793,-691.5560487080692,-691.558224987468,-691.5604060133904,-691.5625918065864,-691.5647823879422,-691.5669777784814,-691.5691779993667,-691.5713830719006,-691.573593017527,-691.5758078578318,-691.5780276145454,-691.5802523095426,-691.582481964845,-691.5847166026214,-691.5869562451896,-691.5892009150182,-691.5914506347268,-691.5937054270884,-691.5959653150302,-691.5982303216352,-691.600500470144,-691.602775783955,-691.6050562866277,-691.6073420018823,-691.6096329536025,-691.6119291658364,-691.6142306627981,-691.6165374688693,-691.6188496086008,-691.6211671067142,-691.6234899881033,-691.6258182778357,-691.6281520011546,-691.6304911834802,-691.6328358504119,-691.6351860277291,-691.6375417413938,-691.6399030175514,-691.6422698825336,-691.6446423628589,-691.6470204852355,-691.6494042765623,-691.651793763931,-691.6541889746281,-691.6565899361367,-691.6589966761383,-691.6614092225144,-691.6638276033493,-691.6662518469313,-691.668681981755,-691.671118036523,-691.6735600401487,-691.6760080217573,-691.6784620106886,-691.680922036499,-691.6833881289638,-691.6858603180784,-691.6883386340621,-691.6908231073587,-691.69331376864,-691.6958106488073,-691.698313778994,-691.7008231905678,-691.7033389151333,-691.7058609845341,-691.7083894308554,-691.7109242864262,-691.7134655838225,-691.7160133558688,-691.7185676356411,-691.7211284564698,-691.723695851942,-691.7262698559039,-691.728850502464,-691.7314378259953,-691.7340318611385,-691.7366326428047,-691.7392402061777,-691.7418545867174,-691.7444758201627,-691.7471039425344,-691.7497389901375,-691.7523809995653,-691.7550300077016,-691.7576860517244,-691.7603491691083,-691.7630193976283,-691.765696775363,-691.7683813406976,-691.7710731323269,-691.7737721892595,-691.7764785508205,-691.779192256655,-691.7819133467323,-691.7846418613481,-691.7873778411295,-691.7901213270374,-691.7928723603712,-691.7956309827722,-691.7983972362266,-691.8011711630708,-691.8039528059937,-691.8067422080422,-691.8095394126241,-691.8123444635122,-691.8151574048491,-691.8179782811508,-691.820807137311,-691.8236440186058,-691.8264889706975,-691.829342039639,-691.8322032718789,-691.8350727142656,-691.8379504140516,-691.8408364188989,-691.8437307768833,-691.8466335364989,-691.8495447466638,-691.8524644567243,-691.8553927164604,-691.8583295760905,-691.8612750862766,-691.8642292981302,-691.8671922632168,-691.8701640335617,-691.8731446616551,-691.8761342004586,-691.8791327034098,-691.8821402244283,-691.885156817922,-691.8881825387926,-691.8912174424416,-691.8942615847764,-691.8973150222164,-691.9003778116999,-691.9034500106894,-691.9065316771791,-691.9096228697009,-691.9127236473308,-691.9158340696966,-691.918954196984,-691.9220840899438,-691.925223809899,-691.9283734187521,-691.9315329789923,-691.9347025537032,-691.9378822065698,-691.9410720018868,-691.9442720045661,-691.9474822801446,-691.9507028947926,-691.9539339153216,-691.957175409193,-691.9604274445263,-691.9636900901077,-691.9669634153989,-691.970247490546,-691.9735423863883,-691.9768481744679,-691.9801649270387,-691.9834927170758,-691.9868316182854,-691.9901817051143,-691.9935430527603,-691.9969157371818,-692.0002998351085,-692.0036954240518,-692.0071025823152,-692.0105213890052,-692.013951924043,-692.0173942681745,-692.0208485029826,-692.0243147108988,-692.0277929752144,-692.031283380093,-692.0347860105826,-692.0383009526281,-692.0418282930835,-692.0453681197258,-692.0489205212668,-692.0524855873675,-692.0560634086511,-692.0596540767172,-692.0632576841552,-692.0668743245598,-692.0705040925442,-692.0741470837561,-692.077803394892,-692.0814731237134,-692.0851563690617,-692.0888532308744,-692.0925638102018,-692.0962882092231,-692.1000265312636,-692.1037788808114,-692.1075453635357,-692.1113260863038,-692.1151211572001,-692.1189306855439,-692.122754781909,-692.1265935581421,-692.1304471273836,-692.1343156040864,-692.1381991040371,-692.1420977443764,-692.1460116436206,-692.149940921683,-692.1538856998959,-692.1578461010332,-692.1618222493336,-692.1658142705231,-692.16982229184,-692.1738464420584,-692.1778868515134,-692.1819436521265,-692.1860169774308,-692.1901069625984,-692.1942137444663,-692.1983374615648,-692.2024782541448,-692.2066362642066,-692.2108116355296,-692.2150045137014,-692.2192150461487,-692.2234433821685,-692.2276896729595,-692.2319540716546,-692.2362367333545,-692.2405378151611,-692.2448574762119,-692.249195877716,-692.2535531829897,-692.2579295574933,-692.2623251688694,-692.2667401869807,-692.2711747839498,-692.2756291341996,-692.280103414494,-692.2845978039804,-692.2891124842326,-692.2936476392948,-692.2982034557265,-692.3027801226488,-692.3073778317912,-692.3119967775405,-692.3166371569888,-692.3212991699855,-692.3259830191878,-692.3306889101141,-692.3354170511977,-692.3401676538431,-692.3449409324813,-692.3497371046294,-692.3545563909488,-692.3593990153068,-692.3642652048391,-692.3691551900133,-692.3740692046945,-692.3790074862127,-692.3839702754311,-692.3889578168173,-692.3939703585147,-692.3990081524173,-692.4040714542451,-692.4091605236225,-692.414275624158,-692.4194170235257,-692.4245849935501,-692.4297798102917,-692.435001754136,-692.4402511098838,-692.4455281668448,-692.4508332189332,-692.4561665647658,-692.4615285077629,-692.4669193562519,-692.4723394235738,-692.4777890281922,-692.4832684938061,-692.4887781494647,-692.4943183296863,-692.4998893745799,-692.505491629971,-692.5111254475299,-692.5167911849045,-692.5224892058561,-692.5282198804002,-692.5339835849502,-692.5397807024658,-692.545611622606,-692.5514767418856,-692.5573764638381,-692.5633111991812,-692.5692813659887,-692.5752873898679,-692.5813297041406,-692.5874087500314,-692.593524976861,-692.5996788422453,-692.6058708123007,-692.6121013618565,-692.6183709746728,-692.6246801436662,-692.6310293711425,-692.6374191690363,-692.643850059159,-692.6503225734543,-692.6568372542624,-692.6633946545927,-692.6699953384053,-692.6766398809024,-692.6833288688285,-692.6900629007823,-692.6968425875369,-692.7036685523734,-692.7105414314241,-692.7174618740282,-692.7244305431005,-692.731448115512,-692.7385152824843,-692.7456327499989,-692.7528012392195,-692.7600214869314,-692.7672942459949,-692.7746202858175,-692.7820003928417,-692.7894353710517,-692.7969260424992,-692.8044732478487,-692.8120778469436,-692.8197407193943,-692.8274627651889,-692.8352449053269,-692.8430880824792,-692.8509932616726,-692.858961431003,-692.8669936023764,-692.87509081228,-692.8832541225845,-692.891484621381,-692.89978342385,-692.908151673169,-692.9165905414573,-692.9251012307616,-692.9336849740831,-692.9423430364499,-692.9510767160357,-692.9598873453282,-692.9687762923488,-692.9777449619278,-692.9867947970365,-692.9959272801811,-693.0051439348596,-693.0144463270875,-693.0238360669948,-693.0333148104983,-693.0428842610547,-693.0525461714979,-693.0623023459653,-693.0721546419211,-693.0821049722772,-693.0921553076237,-693.1023076785702,-693.1125641782094,-693.1229269647058,-693.1333982640227,-693.143980372791,-693.1546756613336,-693.1654865768511,-693.1764156467837,-693.1874654823573,-693.1986387823287,-693.2099383369417,-693.2213670321096,-693.2329278538397,-693.2446238929161,-693.25645834986,-693.2684345401868,-693.2805558999816,-693.2928259918176,-693.3052485110414,-693.317827292454,-693.3305663174168,-693.3434697214168,-693.3565418021263,-693.3697870279957,-693.3832100474233,-693.3968156985499,-693.4106090197271,-693.4245952607198,-693.4387798947017,-693.4531686311144,-693.4677674294657,-693.482582514149,-693.4976203903783,-693.5128878613389,-693.5283920466682,-693.5441404023912,-693.5601407424525,-693.5764012619969,-693.5929305625766,-693.6097376794748,-693.6268321113672,-693.6442238525606,-693.6619234280873,-693.6799419319601,-693.6982910689381,-693.7169832001962,-693.7360313933455,-693.7554494773096,-693.7752521026372,-693.7954548079057,-693.8160740929741,-693.8371274999467,-693.8586337028459,-693.8806126071395,-693.9030854604562,-693.9260749760276,-693.9496054706582,-693.973703019322,-693.9983956288514,-694.0237134336178,-694.0496889166337,-694.0763571601454,-694.1037561305648,-694.1319270035474,-694.1609145362021,-694.1907674948776,-694.2215391487906,-694.2532878420448,-694.2860776594698,-694.3199792053754,-694.3550705190045,-694.3914381565351,-694.4291784773669,-694.4683991827972,-694.5092211689507,-694.5517807742754,-694.5962325269252,-694.6427525316943,-694.6915426839114,-694.7428359650884,-694.7969031716804,-694.8540615691151,-694.9146861724756,-694.9792246726965,-695.0482175202787,-695.1223254648501,-695.2023681403441,-695.2893794793034,-695.3846896134714,-695.4900500733514,-695.6078330392857,-695.7413643422674,-695.895514902571,-696.0778362920317,-696.3009795923462,-696.5886612464652,-696.9941255179085,-697.6872701884779,-709.889355822726],"x":[-1.0e-300,-9.980079681474104e-301,-9.960159362948208e-301,-9.94023904442231e-301,-9.920318725896415e-301,-9.900398407370519e-301,-9.880478088844623e-301,-9.860557770318725e-301,-9.840637451792829e-301,-9.820717133266933e-301,-9.800796814741037e-301,-9.78087649621514e-301,-9.760956177689243e-301,-9.741035859163347e-301,-9.721115540637451e-301,-9.701195222111553e-301,-9.681274903585657e-301,-9.661354585059761e-301,-9.641434266533865e-301,-9.621513948007968e-301,-9.601593629482072e-301,-9.581673310956176e-301,-9.56175299243028e-301,-9.541832673904382e-301,-9.521912355378486e-301,-9.50199203685259e-301,-9.482071718326694e-301,-9.462151399800796e-301,-9.4422310812749e-301,-9.422310762749004e-301,-9.402390444223108e-301,-9.38247012569721e-301,-9.362549807171315e-301,-9.342629488645419e-301,-9.322709170119523e-301,-9.302788851593625e-301,-9.282868533067729e-301,-9.262948214541833e-301,-9.243027896015937e-301,-9.22310757749004e-301,-9.203187258964143e-301,-9.183266940438247e-301,-9.163346621912351e-301,-9.143426303386454e-301,-9.123505984860558e-301,-9.103585666334662e-301,-9.083665347808766e-301,-9.063745029282868e-301,-9.043824710756972e-301,-9.023904392231076e-301,-9.00398407370518e-301,-8.984063755179284e-301,-8.964143436653386e-301,-8.94422311812749e-301,-8.924302799601594e-301,-8.904382481075698e-301,-8.8844621625498e-301,-8.864541844023905e-301,-8.844621525498009e-301,-8.824701206972113e-301,-8.804780888446215e-301,-8.784860569920319e-301,-8.764940251394423e-301,-8.745019932868527e-301,-8.725099614342629e-301,-8.705179295816733e-301,-8.685258977290837e-301,-8.665338658764941e-301,-8.645418340239043e-301,-8.625498021713147e-301,-8.605577703187251e-301,-8.585657384661355e-301,-8.565737066135458e-301,-8.545816747609562e-301,-8.525896429083666e-301,-8.50597611055777e-301,-8.486055792031872e-301,-8.466135473505976e-301,-8.44621515498008e-301,-8.426294836454184e-301,-8.406374517928286e-301,-8.38645419940239e-301,-8.366533880876494e-301,-8.346613562350598e-301,-8.3266932438247e-301,-8.306772925298805e-301,-8.286852606772909e-301,-8.266932288247013e-301,-8.247011969721115e-301,-8.227091651195219e-301,-8.207171332669323e-301,-8.187251014143427e-301,-8.16733069561753e-301,-8.147410377091633e-301,-8.127490058565737e-301,-8.107569740039841e-301,-8.087649421513944e-301,-8.067729102988048e-301,-8.047808784462152e-301,-8.027888465936256e-301,-8.00796814741036e-301,-7.988047828884462e-301,-7.968127510358566e-301,-7.94820719183267e-301,-7.928286873306774e-301,-7.908366554780876e-301,-7.88844623625498e-301,-7.868525917729084e-301,-7.848605599203188e-301,-7.82868528067729e-301,-7.808764962151395e-301,-7.788844643625499e-301,-7.768924325099603e-301,-7.749004006573705e-301,-7.729083688047809e-301,-7.709163369521913e-301,-7.689243050996017e-301,-7.669322732470119e-301,-7.649402413944223e-301,-7.629482095418327e-301,-7.609561776892431e-301,-7.589641458366533e-301,-7.569721139840637e-301,-7.549800821314741e-301,-7.529880502788845e-301,-7.509960184262948e-301,-7.490039865737052e-301,-7.470119547211156e-301,-7.450199228685259e-301,-7.430278910159363e-301,-7.410358591633466e-301,-7.39043827310757e-301,-7.370517954581673e-301,-7.350597636055777e-301,-7.33067731752988e-301,-7.310756999003984e-301,-7.2908366804780875e-301,-7.2709163619521915e-301,-7.250996043426295e-301,-7.231075724900399e-301,-7.211155406374502e-301,-7.191235087848606e-301,-7.171314769322709e-301,-7.151394450796813e-301,-7.131474132270916e-301,-7.11155381374502e-301,-7.091633495219123e-301,-7.071713176693227e-301,-7.051792858167331e-301,-7.0318725396414344e-301,-7.0119522211155384e-301,-6.9920319025896416e-301,-6.9721115840637456e-301,-6.952191265537849e-301,-6.932270947011953e-301,-6.912350628486056e-301,-6.89243030996016e-301,-6.872509991434263e-301,-6.852589672908367e-301,-6.83266935438247e-301,-6.812749035856574e-301,-6.792828717330677e-301,-6.772908398804781e-301,-6.7529880802788845e-301,-6.7330677617529885e-301,-6.713147443227092e-301,-6.693227124701196e-301,-6.673306806175299e-301,-6.653386487649403e-301,-6.633466169123506e-301,-6.61354585059761e-301,-6.593625532071713e-301,-6.573705213545817e-301,-6.55378489501992e-301,-6.533864576494024e-301,-6.5139442579681274e-301,-6.494023939442231e-301,-6.4741036209163346e-301,-6.4541833023904386e-301,-6.434262983864542e-301,-6.414342665338646e-301,-6.394422346812749e-301,-6.374502028286853e-301,-6.354581709760956e-301,-6.33466139123506e-301,-6.314741072709163e-301,-6.294820754183267e-301,-6.27490043565737e-301,-6.254980117131474e-301,-6.2350597986055775e-301,-6.2151394800796815e-301,-6.195219161553785e-301,-6.175298843027889e-301,-6.155378524501992e-301,-6.135458205976096e-301,-6.115537887450199e-301,-6.095617568924303e-301,-6.075697250398407e-301,-6.05577693187251e-301,-6.035856613346614e-301,-6.015936294820717e-301,-5.996015976294821e-301,-5.976095657768924e-301,-5.956175339243028e-301,-5.9362550207171316e-301,-5.9163347021912356e-301,-5.896414383665339e-301,-5.876494065139443e-301,-5.856573746613546e-301,-5.83665342808765e-301,-5.816733109561753e-301,-5.796812791035857e-301,-5.77689247250996e-301,-5.756972153984064e-301,-5.737051835458167e-301,-5.717131516932271e-301,-5.6972111984063745e-301,-5.6772908798804785e-301,-5.657370561354582e-301,-5.637450242828686e-301,-5.617529924302789e-301,-5.597609605776893e-301,-5.577689287250996e-301,-5.5577689687251e-301,-5.537848650199203e-301,-5.517928331673307e-301,-5.49800801314741e-301,-5.478087694621514e-301,-5.458167376095617e-301,-5.438247057569721e-301,-5.4183267390438246e-301,-5.3984064205179285e-301,-5.378486101992032e-301,-5.358565783466136e-301,-5.338645464940239e-301,-5.318725146414343e-301,-5.298804827888446e-301,-5.27888450936255e-301,-5.258964190836653e-301,-5.239043872310757e-301,-5.21912355378486e-301,-5.199203235258964e-301,-5.1792829167330675e-301,-5.1593625982071715e-301,-5.139442279681275e-301,-5.119521961155379e-301,-5.099601642629482e-301,-5.079681324103586e-301,-5.05976100557769e-301,-5.039840687051793e-301,-5.019920368525897e-301,-5.00000005e-301,-4.980079731474104e-301,-4.960159412948207e-301,-4.940239094422311e-301,-4.920318775896414e-301,-4.900398457370518e-301,-4.8804781388446215e-301,-4.8605578203187255e-301,-4.840637501792829e-301,-4.820717183266933e-301,-4.800796864741036e-301,-4.78087654621514e-301,-4.760956227689243e-301,-4.741035909163347e-301,-4.72111559063745e-301,-4.701195272111554e-301,-4.681274953585657e-301,-4.661354635059761e-301,-4.6414343165338645e-301,-4.6215139980079685e-301,-4.601593679482072e-301,-4.581673360956176e-301,-4.561753042430279e-301,-4.541832723904383e-301,-4.521912405378486e-301,-4.50199208685259e-301,-4.482071768326693e-301,-4.462151449800797e-301,-4.4422311312749e-301,-4.422310812749004e-301,-4.402390494223107e-301,-4.382470175697211e-301,-4.3625498571713145e-301,-4.3426295386454185e-301,-4.322709220119522e-301,-4.302788901593626e-301,-4.282868583067729e-301,-4.262948264541833e-301,-4.243027946015936e-301,-4.22310762749004e-301,-4.203187308964143e-301,-4.183266990438247e-301,-4.16334667191235e-301,-4.143426353386454e-301,-4.1235060348605575e-301,-4.1035857163346615e-301,-4.0836653978087654e-301,-4.063745079282869e-301,-4.043824760756973e-301,-4.023904442231076e-301,-4.00398412370518e-301,-3.984063805179283e-301,-3.964143486653387e-301,-3.94422316812749e-301,-3.924302849601594e-301,-3.904382531075697e-301,-3.884462212549801e-301,-3.864541894023904e-301,-3.844621575498008e-301,-3.8247012569721115e-301,-3.8047809384462155e-301,-3.784860619920319e-301,-3.764940301394423e-301,-3.745019982868526e-301,-3.7250996643426294e-301,-3.705179345816733e-301,-3.6852590272908366e-301,-3.66533870876494e-301,-3.6454183902390437e-301,-3.6254980717131477e-301,-3.6055777531872513e-301,-3.585657434661355e-301,-3.5657371161354584e-301,-3.545816797609562e-301,-3.5258964790836656e-301,-3.505976160557769e-301,-3.4860558420318727e-301,-3.4661355235059763e-301,-3.44621520498008e-301,-3.4262948864541835e-301,-3.406374567928287e-301,-3.3864542494023906e-301,-3.366533930876494e-301,-3.3466136123505978e-301,-3.3266932938247014e-301,-3.306772975298805e-301,-3.2868526567729085e-301,-3.266932338247012e-301,-3.2470120197211157e-301,-3.2270917011952192e-301,-3.207171382669323e-301,-3.1872510641434264e-301,-3.16733074561753e-301,-3.1474104270916335e-301,-3.127490108565737e-301,-3.1075697900398407e-301,-3.0876494715139443e-301,-3.067729152988048e-301,-3.0478088344621514e-301,-3.027888515936255e-301,-3.0079681974103586e-301,-2.988047878884462e-301,-2.9681275603585657e-301,-2.9482072418326693e-301,-2.928286923306773e-301,-2.9083666047808765e-301,-2.88844628625498e-301,-2.8685259677290836e-301,-2.848605649203187e-301,-2.8286853306772908e-301,-2.8087650121513944e-301,-2.788844693625498e-301,-2.7689243750996015e-301,-2.749004056573705e-301,-2.7290837380478087e-301,-2.7091634195219122e-301,-2.689243100996016e-301,-2.6693227824701194e-301,-2.649402463944223e-301,-2.629482145418327e-301,-2.6095618268924305e-301,-2.589641508366534e-301,-2.5697211898406377e-301,-2.5498008713147413e-301,-2.529880552788845e-301,-2.5099602342629484e-301,-2.490039915737052e-301,-2.4701195972111556e-301,-2.450199278685259e-301,-2.4302789601593627e-301,-2.4103586416334663e-301,-2.39043832310757e-301,-2.3705180045816735e-301,-2.350597686055777e-301,-2.3306773675298806e-301,-2.310757049003984e-301,-2.2908367304780878e-301,-2.2709164119521913e-301,-2.250996093426295e-301,-2.2310757749003985e-301,-2.211155456374502e-301,-2.1912351378486056e-301,-2.1713148193227092e-301,-2.151394500796813e-301,-2.1314741822709164e-301,-2.11155386374502e-301,-2.0916335452191235e-301,-2.071713226693227e-301,-2.0517929081673307e-301,-2.0318725896414343e-301,-2.011952271115538e-301,-1.9920319525896414e-301,-1.972111634063745e-301,-1.9521913155378486e-301,-1.932270997011952e-301,-1.9123506784860557e-301,-1.8924303599601593e-301,-1.872510041434263e-301,-1.8525897229083667e-301,-1.8326694043824702e-301,-1.8127490858565738e-301,-1.7928287673306774e-301,-1.772908448804781e-301,-1.7529881302788845e-301,-1.7330678117529881e-301,-1.7131474932270917e-301,-1.6932271747011953e-301,-1.6733068561752988e-301,-1.6533865376494024e-301,-1.633466219123506e-301,-1.6135459005976096e-301,-1.5936255820717132e-301,-1.5737052635458167e-301,-1.5537849450199203e-301,-1.5338646264940239e-301,-1.5139443079681275e-301,-1.494023989442231e-301,-1.4741036709163346e-301,-1.4541833523904382e-301,-1.4342630338645418e-301,-1.4143427153386456e-301,-1.3944223968127491e-301,-1.3745020782868527e-301,-1.3545817597609563e-301,-1.3346614412350599e-301,-1.3147411227091634e-301,-1.294820804183267e-301,-1.2749004856573706e-301,-1.2549801671314742e-301,-1.2350598486055777e-301,-1.2151395300796813e-301,-1.195219211553785e-301,-1.1752988930278885e-301,-1.155378574501992e-301,-1.1354582559760956e-301,-1.1155379374501992e-301,-1.0956176189243028e-301,-1.0756973003984064e-301,-1.05577698187251e-301,-1.0358566633466135e-301,-1.015936344820717e-301,-9.960160262948207e-302,-9.760957077689242e-302,-9.561753892430278e-302,-9.362550707171314e-302,-9.163347521912351e-302,-8.964144336653387e-302,-8.764941151394422e-302,-8.565737966135458e-302,-8.366534780876494e-302,-8.16733159561753e-302,-7.968128410358566e-302,-7.768925225099602e-302,-7.569722039840638e-302,-7.370518854581674e-302,-7.171315669322709e-302,-6.972112484063745e-302,-6.772909298804781e-302,-6.573706113545817e-302,-6.374502928286853e-302,-6.175299743027888e-302,-5.976096557768924e-302,-5.77689337250996e-302,-5.577690187250997e-302,-5.378487001992032e-302,-5.179283816733068e-302,-4.980080631474104e-302,-4.78087744621514e-302,-4.5816742609561755e-302,-4.382471075697211e-302,-4.183267890438247e-302,-3.984064705179283e-302,-3.784861519920319e-302,-3.585658334661355e-302,-3.3864551494023906e-302,-3.1872519641434264e-302,-2.988048778884462e-302,-2.788845593625498e-302,-2.589642408366534e-302,-2.39043922310757e-302,-2.1912360378486057e-302,-1.9920328525896415e-302,-1.7928296673306773e-302,-1.5936264820717133e-302,-1.394423296812749e-302,-1.1952201115537848e-302,-9.960169262948207e-303,-7.968137410358566e-303,-5.976105557768925e-303,-3.984073705179283e-303,-1.9920418525896414e-303,-9.999999999999456e-309]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/tiny_positive.json b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/tiny_positive.json new file mode 100644 index 000000000000..55a2d49011e0 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/tiny_positive.json @@ -0,0 +1 @@ +{"expected":[691.4686750787736,691.4706690973605,691.4726671000032,691.4746691026537,691.4766751213604,691.4786851722681,691.4806992716194,691.4827174357553,691.4847396811155,691.4867660242401,691.4887964817698,691.4908310704468,691.4928698071158,691.4949127087247,691.4969597923252,691.4990110750747,691.5010665742357,691.5031263071774,691.5051902913768,691.5072585444194,691.5093310839998,691.511407927923,691.513489094105,691.5155746005743,691.5176644654717,691.5197587070529,691.5218573436877,691.5239603938622,691.5260678761796,691.5281798093603,691.5302962122441,691.5324171037907,691.5345425030804,691.5366724293154,691.5388069018212,691.540945940047,691.5430895635672,691.5452377920823,691.5473906454201,691.5495481435368,691.5517103065177,691.5538771545793,691.5560487080692,691.558224987468,691.5604060133904,691.5625918065864,691.5647823879422,691.5669777784814,691.5691779993667,691.5713830719006,691.573593017527,691.5758078578318,691.5780276145454,691.5802523095426,691.582481964845,691.5847166026214,691.5869562451896,691.5892009150182,691.5914506347268,691.5937054270884,691.5959653150302,691.5982303216352,691.600500470144,691.602775783955,691.6050562866277,691.6073420018823,691.6096329536025,691.6119291658364,691.6142306627981,691.6165374688693,691.6188496086008,691.6211671067142,691.6234899881033,691.6258182778357,691.6281520011546,691.6304911834802,691.6328358504119,691.6351860277291,691.6375417413938,691.6399030175514,691.6422698825336,691.6446423628589,691.6470204852355,691.6494042765623,691.651793763931,691.6541889746281,691.6565899361367,691.6589966761383,691.6614092225144,691.6638276033493,691.6662518469313,691.668681981755,691.671118036523,691.6735600401487,691.6760080217573,691.6784620106886,691.680922036499,691.6833881289638,691.6858603180784,691.6883386340621,691.6908231073587,691.69331376864,691.6958106488073,691.698313778994,691.7008231905678,691.7033389151333,691.7058609845341,691.7083894308554,691.7109242864262,691.7134655838225,691.7160133558688,691.7185676356411,691.7211284564698,691.723695851942,691.7262698559039,691.728850502464,691.7314378259953,691.7340318611385,691.7366326428047,691.7392402061777,691.7418545867174,691.7444758201627,691.7471039425344,691.7497389901375,691.7523809995653,691.7550300077016,691.7576860517244,691.7603491691083,691.7630193976283,691.765696775363,691.7683813406976,691.7710731323269,691.7737721892595,691.7764785508205,691.779192256655,691.7819133467323,691.7846418613481,691.7873778411295,691.7901213270374,691.7928723603712,691.7956309827722,691.7983972362266,691.8011711630708,691.8039528059937,691.8067422080422,691.8095394126241,691.8123444635122,691.8151574048491,691.8179782811508,691.820807137311,691.8236440186058,691.8264889706975,691.829342039639,691.8322032718789,691.8350727142656,691.8379504140516,691.8408364188989,691.8437307768833,691.8466335364989,691.8495447466638,691.8524644567243,691.8553927164604,691.8583295760905,691.8612750862766,691.8642292981302,691.8671922632168,691.8701640335617,691.8731446616551,691.8761342004586,691.8791327034098,691.8821402244283,691.885156817922,691.8881825387926,691.8912174424416,691.8942615847764,691.8973150222164,691.9003778116999,691.9034500106894,691.9065316771791,691.9096228697009,691.9127236473308,691.9158340696966,691.918954196984,691.9220840899438,691.925223809899,691.9283734187521,691.9315329789923,691.9347025537032,691.9378822065698,691.9410720018868,691.9442720045661,691.9474822801446,691.9507028947926,691.9539339153216,691.957175409193,691.9604274445263,691.9636900901077,691.9669634153989,691.970247490546,691.9735423863883,691.9768481744679,691.9801649270387,691.9834927170758,691.9868316182854,691.9901817051143,691.9935430527603,691.9969157371818,692.0002998351085,692.0036954240518,692.0071025823152,692.0105213890052,692.013951924043,692.0173942681745,692.0208485029826,692.0243147108988,692.0277929752144,692.031283380093,692.0347860105826,692.0383009526281,692.0418282930835,692.0453681197258,692.0489205212668,692.0524855873675,692.0560634086511,692.0596540767172,692.0632576841552,692.0668743245598,692.0705040925442,692.0741470837561,692.077803394892,692.0814731237134,692.0851563690617,692.0888532308744,692.0925638102018,692.0962882092231,692.1000265312636,692.1037788808114,692.1075453635357,692.1113260863038,692.1151211572001,692.1189306855439,692.122754781909,692.1265935581421,692.1304471273836,692.1343156040864,692.1381991040371,692.1420977443764,692.1460116436206,692.149940921683,692.1538856998959,692.1578461010332,692.1618222493336,692.1658142705231,692.16982229184,692.1738464420584,692.1778868515134,692.1819436521265,692.1860169774308,692.1901069625984,692.1942137444663,692.1983374615648,692.2024782541448,692.2066362642066,692.2108116355296,692.2150045137014,692.2192150461487,692.2234433821685,692.2276896729595,692.2319540716546,692.2362367333545,692.2405378151611,692.2448574762119,692.249195877716,692.2535531829897,692.2579295574933,692.2623251688694,692.2667401869807,692.2711747839498,692.2756291341996,692.280103414494,692.2845978039804,692.2891124842326,692.2936476392948,692.2982034557265,692.3027801226488,692.3073778317912,692.3119967775405,692.3166371569888,692.3212991699855,692.3259830191878,692.3306889101141,692.3354170511977,692.3401676538431,692.3449409324813,692.3497371046294,692.3545563909488,692.3593990153068,692.3642652048391,692.3691551900133,692.3740692046945,692.3790074862127,692.3839702754311,692.3889578168173,692.3939703585147,692.3990081524173,692.4040714542451,692.4091605236225,692.414275624158,692.4194170235257,692.4245849935501,692.4297798102917,692.435001754136,692.4402511098838,692.4455281668448,692.4508332189332,692.4561665647658,692.4615285077629,692.4669193562519,692.4723394235738,692.4777890281922,692.4832684938061,692.4887781494647,692.4943183296863,692.4998893745799,692.505491629971,692.5111254475299,692.5167911849045,692.5224892058561,692.5282198804002,692.5339835849502,692.5397807024658,692.545611622606,692.5514767418856,692.5573764638381,692.5633111991812,692.5692813659887,692.5752873898679,692.5813297041406,692.5874087500314,692.593524976861,692.5996788422453,692.6058708123007,692.6121013618565,692.6183709746728,692.6246801436662,692.6310293711425,692.6374191690363,692.643850059159,692.6503225734543,692.6568372542624,692.6633946545927,692.6699953384053,692.6766398809024,692.6833288688285,692.6900629007823,692.6968425875369,692.7036685523734,692.7105414314241,692.7174618740282,692.7244305431005,692.731448115512,692.7385152824843,692.7456327499989,692.7528012392195,692.7600214869314,692.7672942459949,692.7746202858175,692.7820003928417,692.7894353710517,692.7969260424992,692.8044732478487,692.8120778469436,692.8197407193943,692.8274627651889,692.8352449053269,692.8430880824792,692.8509932616726,692.858961431003,692.8669936023764,692.87509081228,692.8832541225845,692.891484621381,692.89978342385,692.908151673169,692.9165905414573,692.9251012307616,692.9336849740831,692.9423430364499,692.9510767160357,692.9598873453282,692.9687762923488,692.9777449619278,692.9867947970365,692.9959272801811,693.0051439348596,693.0144463270875,693.0238360669948,693.0333148104983,693.0428842610547,693.0525461714979,693.0623023459653,693.0721546419211,693.0821049722772,693.0921553076237,693.1023076785702,693.1125641782094,693.1229269647058,693.1333982640227,693.143980372791,693.1546756613336,693.1654865768511,693.1764156467837,693.1874654823573,693.1986387823287,693.2099383369417,693.2213670321096,693.2329278538397,693.2446238929161,693.25645834986,693.2684345401868,693.2805558999816,693.2928259918176,693.3052485110414,693.317827292454,693.3305663174168,693.3434697214168,693.3565418021263,693.3697870279957,693.3832100474233,693.3968156985499,693.4106090197271,693.4245952607198,693.4387798947017,693.4531686311144,693.4677674294657,693.482582514149,693.4976203903783,693.5128878613389,693.5283920466682,693.5441404023912,693.5601407424525,693.5764012619969,693.5929305625766,693.6097376794748,693.6268321113672,693.6442238525606,693.6619234280873,693.6799419319601,693.6982910689381,693.7169832001962,693.7360313933455,693.7554494773096,693.7752521026372,693.7954548079057,693.8160740929741,693.8371274999467,693.8586337028459,693.8806126071395,693.9030854604562,693.9260749760276,693.9496054706582,693.973703019322,693.9983956288514,694.0237134336178,694.0496889166337,694.0763571601454,694.1037561305648,694.1319270035474,694.1609145362021,694.1907674948776,694.2215391487906,694.2532878420448,694.2860776594698,694.3199792053754,694.3550705190045,694.3914381565351,694.4291784773669,694.4683991827972,694.5092211689507,694.5517807742754,694.5962325269252,694.6427525316943,694.6915426839114,694.7428359650884,694.7969031716804,694.8540615691151,694.9146861724756,694.9792246726965,695.0482175202787,695.1223254648501,695.2023681403441,695.2893794793034,695.3846896134714,695.4900500733514,695.6078330392857,695.7413643422674,695.895514902571,696.0778362920317,696.3009795923462,696.5886612464652,696.9941255179085,697.6872701884779,709.889355822726],"x":[1.0e-300,9.980079681474104e-301,9.960159362948208e-301,9.94023904442231e-301,9.920318725896415e-301,9.900398407370519e-301,9.880478088844623e-301,9.860557770318725e-301,9.840637451792829e-301,9.820717133266933e-301,9.800796814741037e-301,9.78087649621514e-301,9.760956177689243e-301,9.741035859163347e-301,9.721115540637451e-301,9.701195222111553e-301,9.681274903585657e-301,9.661354585059761e-301,9.641434266533865e-301,9.621513948007968e-301,9.601593629482072e-301,9.581673310956176e-301,9.56175299243028e-301,9.541832673904382e-301,9.521912355378486e-301,9.50199203685259e-301,9.482071718326694e-301,9.462151399800796e-301,9.4422310812749e-301,9.422310762749004e-301,9.402390444223108e-301,9.38247012569721e-301,9.362549807171315e-301,9.342629488645419e-301,9.322709170119523e-301,9.302788851593625e-301,9.282868533067729e-301,9.262948214541833e-301,9.243027896015937e-301,9.22310757749004e-301,9.203187258964143e-301,9.183266940438247e-301,9.163346621912351e-301,9.143426303386454e-301,9.123505984860558e-301,9.103585666334662e-301,9.083665347808766e-301,9.063745029282868e-301,9.043824710756972e-301,9.023904392231076e-301,9.00398407370518e-301,8.984063755179284e-301,8.964143436653386e-301,8.94422311812749e-301,8.924302799601594e-301,8.904382481075698e-301,8.8844621625498e-301,8.864541844023905e-301,8.844621525498009e-301,8.824701206972113e-301,8.804780888446215e-301,8.784860569920319e-301,8.764940251394423e-301,8.745019932868527e-301,8.725099614342629e-301,8.705179295816733e-301,8.685258977290837e-301,8.665338658764941e-301,8.645418340239043e-301,8.625498021713147e-301,8.605577703187251e-301,8.585657384661355e-301,8.565737066135458e-301,8.545816747609562e-301,8.525896429083666e-301,8.50597611055777e-301,8.486055792031872e-301,8.466135473505976e-301,8.44621515498008e-301,8.426294836454184e-301,8.406374517928286e-301,8.38645419940239e-301,8.366533880876494e-301,8.346613562350598e-301,8.3266932438247e-301,8.306772925298805e-301,8.286852606772909e-301,8.266932288247013e-301,8.247011969721115e-301,8.227091651195219e-301,8.207171332669323e-301,8.187251014143427e-301,8.16733069561753e-301,8.147410377091633e-301,8.127490058565737e-301,8.107569740039841e-301,8.087649421513944e-301,8.067729102988048e-301,8.047808784462152e-301,8.027888465936256e-301,8.00796814741036e-301,7.988047828884462e-301,7.968127510358566e-301,7.94820719183267e-301,7.928286873306774e-301,7.908366554780876e-301,7.88844623625498e-301,7.868525917729084e-301,7.848605599203188e-301,7.82868528067729e-301,7.808764962151395e-301,7.788844643625499e-301,7.768924325099603e-301,7.749004006573705e-301,7.729083688047809e-301,7.709163369521913e-301,7.689243050996017e-301,7.669322732470119e-301,7.649402413944223e-301,7.629482095418327e-301,7.609561776892431e-301,7.589641458366533e-301,7.569721139840637e-301,7.549800821314741e-301,7.529880502788845e-301,7.509960184262948e-301,7.490039865737052e-301,7.470119547211156e-301,7.450199228685259e-301,7.430278910159363e-301,7.410358591633466e-301,7.39043827310757e-301,7.370517954581673e-301,7.350597636055777e-301,7.33067731752988e-301,7.310756999003984e-301,7.2908366804780875e-301,7.2709163619521915e-301,7.250996043426295e-301,7.231075724900399e-301,7.211155406374502e-301,7.191235087848606e-301,7.171314769322709e-301,7.151394450796813e-301,7.131474132270916e-301,7.11155381374502e-301,7.091633495219123e-301,7.071713176693227e-301,7.051792858167331e-301,7.0318725396414344e-301,7.0119522211155384e-301,6.9920319025896416e-301,6.9721115840637456e-301,6.952191265537849e-301,6.932270947011953e-301,6.912350628486056e-301,6.89243030996016e-301,6.872509991434263e-301,6.852589672908367e-301,6.83266935438247e-301,6.812749035856574e-301,6.792828717330677e-301,6.772908398804781e-301,6.7529880802788845e-301,6.7330677617529885e-301,6.713147443227092e-301,6.693227124701196e-301,6.673306806175299e-301,6.653386487649403e-301,6.633466169123506e-301,6.61354585059761e-301,6.593625532071713e-301,6.573705213545817e-301,6.55378489501992e-301,6.533864576494024e-301,6.5139442579681274e-301,6.494023939442231e-301,6.4741036209163346e-301,6.4541833023904386e-301,6.434262983864542e-301,6.414342665338646e-301,6.394422346812749e-301,6.374502028286853e-301,6.354581709760956e-301,6.33466139123506e-301,6.314741072709163e-301,6.294820754183267e-301,6.27490043565737e-301,6.254980117131474e-301,6.2350597986055775e-301,6.2151394800796815e-301,6.195219161553785e-301,6.175298843027889e-301,6.155378524501992e-301,6.135458205976096e-301,6.115537887450199e-301,6.095617568924303e-301,6.075697250398407e-301,6.05577693187251e-301,6.035856613346614e-301,6.015936294820717e-301,5.996015976294821e-301,5.976095657768924e-301,5.956175339243028e-301,5.9362550207171316e-301,5.9163347021912356e-301,5.896414383665339e-301,5.876494065139443e-301,5.856573746613546e-301,5.83665342808765e-301,5.816733109561753e-301,5.796812791035857e-301,5.77689247250996e-301,5.756972153984064e-301,5.737051835458167e-301,5.717131516932271e-301,5.6972111984063745e-301,5.6772908798804785e-301,5.657370561354582e-301,5.637450242828686e-301,5.617529924302789e-301,5.597609605776893e-301,5.577689287250996e-301,5.5577689687251e-301,5.537848650199203e-301,5.517928331673307e-301,5.49800801314741e-301,5.478087694621514e-301,5.458167376095617e-301,5.438247057569721e-301,5.4183267390438246e-301,5.3984064205179285e-301,5.378486101992032e-301,5.358565783466136e-301,5.338645464940239e-301,5.318725146414343e-301,5.298804827888446e-301,5.27888450936255e-301,5.258964190836653e-301,5.239043872310757e-301,5.21912355378486e-301,5.199203235258964e-301,5.1792829167330675e-301,5.1593625982071715e-301,5.139442279681275e-301,5.119521961155379e-301,5.099601642629482e-301,5.079681324103586e-301,5.05976100557769e-301,5.039840687051793e-301,5.019920368525897e-301,5.00000005e-301,4.980079731474104e-301,4.960159412948207e-301,4.940239094422311e-301,4.920318775896414e-301,4.900398457370518e-301,4.8804781388446215e-301,4.8605578203187255e-301,4.840637501792829e-301,4.820717183266933e-301,4.800796864741036e-301,4.78087654621514e-301,4.760956227689243e-301,4.741035909163347e-301,4.72111559063745e-301,4.701195272111554e-301,4.681274953585657e-301,4.661354635059761e-301,4.6414343165338645e-301,4.6215139980079685e-301,4.601593679482072e-301,4.581673360956176e-301,4.561753042430279e-301,4.541832723904383e-301,4.521912405378486e-301,4.50199208685259e-301,4.482071768326693e-301,4.462151449800797e-301,4.4422311312749e-301,4.422310812749004e-301,4.402390494223107e-301,4.382470175697211e-301,4.3625498571713145e-301,4.3426295386454185e-301,4.322709220119522e-301,4.302788901593626e-301,4.282868583067729e-301,4.262948264541833e-301,4.243027946015936e-301,4.22310762749004e-301,4.203187308964143e-301,4.183266990438247e-301,4.16334667191235e-301,4.143426353386454e-301,4.1235060348605575e-301,4.1035857163346615e-301,4.0836653978087654e-301,4.063745079282869e-301,4.043824760756973e-301,4.023904442231076e-301,4.00398412370518e-301,3.984063805179283e-301,3.964143486653387e-301,3.94422316812749e-301,3.924302849601594e-301,3.904382531075697e-301,3.884462212549801e-301,3.864541894023904e-301,3.844621575498008e-301,3.8247012569721115e-301,3.8047809384462155e-301,3.784860619920319e-301,3.764940301394423e-301,3.745019982868526e-301,3.7250996643426294e-301,3.705179345816733e-301,3.6852590272908366e-301,3.66533870876494e-301,3.6454183902390437e-301,3.6254980717131477e-301,3.6055777531872513e-301,3.585657434661355e-301,3.5657371161354584e-301,3.545816797609562e-301,3.5258964790836656e-301,3.505976160557769e-301,3.4860558420318727e-301,3.4661355235059763e-301,3.44621520498008e-301,3.4262948864541835e-301,3.406374567928287e-301,3.3864542494023906e-301,3.366533930876494e-301,3.3466136123505978e-301,3.3266932938247014e-301,3.306772975298805e-301,3.2868526567729085e-301,3.266932338247012e-301,3.2470120197211157e-301,3.2270917011952192e-301,3.207171382669323e-301,3.1872510641434264e-301,3.16733074561753e-301,3.1474104270916335e-301,3.127490108565737e-301,3.1075697900398407e-301,3.0876494715139443e-301,3.067729152988048e-301,3.0478088344621514e-301,3.027888515936255e-301,3.0079681974103586e-301,2.988047878884462e-301,2.9681275603585657e-301,2.9482072418326693e-301,2.928286923306773e-301,2.9083666047808765e-301,2.88844628625498e-301,2.8685259677290836e-301,2.848605649203187e-301,2.8286853306772908e-301,2.8087650121513944e-301,2.788844693625498e-301,2.7689243750996015e-301,2.749004056573705e-301,2.7290837380478087e-301,2.7091634195219122e-301,2.689243100996016e-301,2.6693227824701194e-301,2.649402463944223e-301,2.629482145418327e-301,2.6095618268924305e-301,2.589641508366534e-301,2.5697211898406377e-301,2.5498008713147413e-301,2.529880552788845e-301,2.5099602342629484e-301,2.490039915737052e-301,2.4701195972111556e-301,2.450199278685259e-301,2.4302789601593627e-301,2.4103586416334663e-301,2.39043832310757e-301,2.3705180045816735e-301,2.350597686055777e-301,2.3306773675298806e-301,2.310757049003984e-301,2.2908367304780878e-301,2.2709164119521913e-301,2.250996093426295e-301,2.2310757749003985e-301,2.211155456374502e-301,2.1912351378486056e-301,2.1713148193227092e-301,2.151394500796813e-301,2.1314741822709164e-301,2.11155386374502e-301,2.0916335452191235e-301,2.071713226693227e-301,2.0517929081673307e-301,2.0318725896414343e-301,2.011952271115538e-301,1.9920319525896414e-301,1.972111634063745e-301,1.9521913155378486e-301,1.932270997011952e-301,1.9123506784860557e-301,1.8924303599601593e-301,1.872510041434263e-301,1.8525897229083667e-301,1.8326694043824702e-301,1.8127490858565738e-301,1.7928287673306774e-301,1.772908448804781e-301,1.7529881302788845e-301,1.7330678117529881e-301,1.7131474932270917e-301,1.6932271747011953e-301,1.6733068561752988e-301,1.6533865376494024e-301,1.633466219123506e-301,1.6135459005976096e-301,1.5936255820717132e-301,1.5737052635458167e-301,1.5537849450199203e-301,1.5338646264940239e-301,1.5139443079681275e-301,1.494023989442231e-301,1.4741036709163346e-301,1.4541833523904382e-301,1.4342630338645418e-301,1.4143427153386456e-301,1.3944223968127491e-301,1.3745020782868527e-301,1.3545817597609563e-301,1.3346614412350599e-301,1.3147411227091634e-301,1.294820804183267e-301,1.2749004856573706e-301,1.2549801671314742e-301,1.2350598486055777e-301,1.2151395300796813e-301,1.195219211553785e-301,1.1752988930278885e-301,1.155378574501992e-301,1.1354582559760956e-301,1.1155379374501992e-301,1.0956176189243028e-301,1.0756973003984064e-301,1.05577698187251e-301,1.0358566633466135e-301,1.015936344820717e-301,9.960160262948207e-302,9.760957077689242e-302,9.561753892430278e-302,9.362550707171314e-302,9.163347521912351e-302,8.964144336653387e-302,8.764941151394422e-302,8.565737966135458e-302,8.366534780876494e-302,8.16733159561753e-302,7.968128410358566e-302,7.768925225099602e-302,7.569722039840638e-302,7.370518854581674e-302,7.171315669322709e-302,6.972112484063745e-302,6.772909298804781e-302,6.573706113545817e-302,6.374502928286853e-302,6.175299743027888e-302,5.976096557768924e-302,5.77689337250996e-302,5.577690187250997e-302,5.378487001992032e-302,5.179283816733068e-302,4.980080631474104e-302,4.78087744621514e-302,4.5816742609561755e-302,4.382471075697211e-302,4.183267890438247e-302,3.984064705179283e-302,3.784861519920319e-302,3.585658334661355e-302,3.3864551494023906e-302,3.1872519641434264e-302,2.988048778884462e-302,2.788845593625498e-302,2.589642408366534e-302,2.39043922310757e-302,2.1912360378486057e-302,1.9920328525896415e-302,1.7928296673306773e-302,1.5936264820717133e-302,1.394423296812749e-302,1.1952201115537848e-302,9.960169262948207e-303,7.968137410358566e-303,5.976105557768925e-303,3.984073705179283e-303,1.9920418525896414e-303,9.999999999999456e-309]} diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js new file mode 100644 index 000000000000..f372971cfc88 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js @@ -0,0 +1,412 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2022 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var PINF = require( '@stdlib/constants/float32/pinf' ); +var NINF = require( '@stdlib/constants/float32/ninf' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); +var acschf = require( './../lib' ); + + +// FIXTURES // + +var largerNegative = require( './fixtures/julia/larger_negative.json' ); +var largerPositive = require( './fixtures/julia/larger_positive.json' ); +var largeNegative = require( './fixtures/julia/large_negative.json' ); +var largePositive = require( './fixtures/julia/large_positive.json' ); +var mediumNegative = require( './fixtures/julia/medium_negative.json' ); +var mediumPositive = require( './fixtures/julia/medium_positive.json' ); +var smallNegative = require( './fixtures/julia/small_negative.json' ); +var smallPositive = require( './fixtures/julia/small_positive.json' ); +var smaller = require( './fixtures/julia/smaller.json' ); +var hugeNegative = require( './fixtures/julia/huge_negative.json' ); +var hugePositive = require( './fixtures/julia/huge_positive.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof acschf, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function handles signed zero', function test( t ) { + t.strictEqual( acschf( 0.0 ), PINF, 'positive zero returns +infinity' ); + t.strictEqual( acschf( -0.0 ), NINF, 'negative zero returns -infinity' ); + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-0.8,0.8]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = smaller.x; + expected = smaller.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + + if ( expected[ i ] === null ) { + t.strictEqual( y, PINF, 'x: '+x[ i ]+'. E: +infinity' ); + } else { + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-1.0,-0.8]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = smallNegative.x; + expected = smallNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[0.8,1.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = smallPositive.x; + expected = smallPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-3.0,-1.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumNegative.x; + expected = mediumNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[1.0,3.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumPositive.x; + expected = mediumPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[3.0,28.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largePositive.x; + expected = largePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-28.0,-3.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largeNegative.x; + expected = largeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[28.0,100.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerPositive.x; + expected = largerPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-100.0,-28.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerNegative.x; + expected = largerNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-1e200,-1e208]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugeNegative.x; + expected = hugeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[1e300,1e308]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugePositive.x; + expected = hugePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta+'.'); + } + } + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { + var v = acschf( NaN ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js new file mode 100644 index 000000000000..1929d4cec019 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js @@ -0,0 +1,441 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' ); +var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var PINF = require( '@stdlib/constants/float32/pinf' ); +var NINF = require( '@stdlib/constants/float32/ninf' ); +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var tryRequire = require( '@stdlib/utils/try-require' ); + + +// FIXTURES // + +var largerNegative = require( './fixtures/julia/larger_negative.json' ); +var largerPositive = require( './fixtures/julia/larger_positive.json' ); +var largeNegative = require( './fixtures/julia/large_negative.json' ); +var largePositive = require( './fixtures/julia/large_positive.json' ); +var mediumNegative = require( './fixtures/julia/medium_negative.json' ); +var mediumPositive = require( './fixtures/julia/medium_positive.json' ); +var smallNegative = require( './fixtures/julia/small_negative.json' ); +var smallPositive = require( './fixtures/julia/small_positive.json' ); +var smaller = require( './fixtures/julia/smaller.json' ); +var hugeNegative = require( './fixtures/julia/huge_negative.json' ); +var hugePositive = require( './fixtures/julia/huge_positive.json' ); + + +// VARIABLES // + +var acschf = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( acschf instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof acschf, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-0.8,0.8]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = smaller.x; + expected = smaller.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + + if ( expected[ i ] === null ) { + t.strictEqual( y, PINF, 'x: '+x[ i ]+'. E: +infinity' ); + } else { + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-1.0,-0.8]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = smallNegative.x; + expected = smallNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[0.8,1.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = smallPositive.x; + expected = smallPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-3.0,-1.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumNegative.x; + expected = mediumNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[1.0,3.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumPositive.x; + expected = mediumPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[3.0,28.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largePositive.x; + expected = largePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-28.0,-3.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largeNegative.x; + expected = largeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[28.0,100.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerPositive.x; + expected = largerPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-100.0,-28.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerNegative.x; + expected = largerNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[-1e200,-1e208]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugeNegative.x; + expected = hugeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function computes the hyperbolic arccosecant on the interval `[1e300,1e308]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugePositive.x; + expected = hugePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acschf( x[ i ] ); + e = float64ToFloat32( expected[ i ] ); + + if ( y === e ) { + t.strictEqual( y, e, 'x: '+x[ i ]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.8 * EPS * abs( e ); + t.ok(delta <= tol, 'within tolerance. x: '+x[ i ]+ + '. y: '+y+ + '. E: '+e+ + '. tol: '+tol+ + '. Δ: '+delta); + } + } + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { + var v = acschf( NaN ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `+infinity` if provided `+0`', opts, function test( t ) { + var v = acschf( +0.0 ); + t.strictEqual( v, PINF, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `-infinity` if provided `-0`', opts, function test( t ) { + var v = acschf( -0.0 ); + t.strictEqual( v, NINF, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `-0` if provided `-infinity`', opts, function test( t ) { + var v = acschf( NINF ); + t.strictEqual( isNegativeZero( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `+0` if provided `+infinity`', opts, function test( t ) { + var v = acschf( PINF ); + t.strictEqual( isPositiveZero( v ), true, 'returns expected value' ); + t.end(); +}); From 6b26d595fb094bc971d14181d8a3f38c357b0468 Mon Sep 17 00:00:00 2001 From: ivishal-g Date: Wed, 21 Jan 2026 03:05:01 +0530 Subject: [PATCH 05/19] fix: update copyright year in acschf test files to 2026 --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: missing_dependencies - task: lint_c_examples status: missing_dependencies - task: lint_c_benchmarks status: missing_dependencies - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/math/base/special/acschf/README.md | 2 +- .../@stdlib/math/base/special/acschf/benchmark/benchmark.js | 2 +- .../math/base/special/acschf/benchmark/benchmark.native.js | 2 +- .../math/base/special/acschf/benchmark/c/native/Makefile | 2 +- .../math/base/special/acschf/benchmark/c/native/benchmark.c | 2 +- .../math/base/special/acschf/benchmark/julia/benchmark.jl | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp | 2 +- .../@stdlib/math/base/special/acschf/docs/types/index.d.ts | 2 +- .../@stdlib/math/base/special/acschf/docs/types/test.ts | 2 +- .../@stdlib/math/base/special/acschf/examples/c/Makefile | 2 +- .../@stdlib/math/base/special/acschf/examples/c/example.c | 2 +- .../@stdlib/math/base/special/acschf/examples/index.js | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/include.gypi | 2 +- .../special/acschf/include/stdlib/math/base/special/acschf.h | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/lib/index.js | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/lib/native.js | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/src/main.c | 2 +- .../math/base/special/acschf/test/fixtures/julia/runner.jl | 2 +- lib/node_modules/@stdlib/math/base/special/acschf/test/test.js | 2 +- .../@stdlib/math/base/special/acschf/test/test.native.js | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/README.md b/lib/node_modules/@stdlib/math/base/special/acschf/README.md index 14cbf31ff47c..5c4cb47a9470 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/README.md +++ b/lib/node_modules/@stdlib/math/base/special/acschf/README.md @@ -2,7 +2,7 @@ @license Apache-2.0 -Copyright (c) 2022 The Stdlib Authors. +Copyright (c) 2026 The Stdlib Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js index ba2d2993a11c..c59d936ac4f3 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2022 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.native.js index b6738d88401a..3a49a8777a29 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.native.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/Makefile b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/Makefile index f69e9da2b4d3..979768abbcec 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/Makefile +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/Makefile @@ -1,7 +1,7 @@ #/ # @license Apache-2.0 # -# Copyright (c) 2024 The Stdlib Authors. +# Copyright (c) 2026 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/benchmark.c index e8f0ccd9c5b8..c2b49c072830 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/c/native/benchmark.c @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/benchmark.jl b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/benchmark.jl index e5be3e2e082c..977fc32c9cba 100755 --- a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/benchmark.jl +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/julia/benchmark.jl @@ -2,7 +2,7 @@ # # @license Apache-2.0 # -# Copyright (c) 2024 The Stdlib Authors. +# Copyright (c) 2026 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp b/lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp index ec3992233442..0d6508a12e99 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp +++ b/lib/node_modules/@stdlib/math/base/special/acschf/binding.gyp @@ -1,6 +1,6 @@ # @license Apache-2.0 # -# Copyright (c) 2024 The Stdlib Authors. +# Copyright (c) 2026 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/index.d.ts index 14056ee4122b..ad6c82dffe2e 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/index.d.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2022 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/test.ts index 59e7363dd151..a992e632e03c 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/test.ts +++ b/lib/node_modules/@stdlib/math/base/special/acschf/docs/types/test.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2022 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/Makefile b/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/Makefile index 6aed70daf167..c8f8e9a1517b 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/Makefile +++ b/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/Makefile @@ -1,7 +1,7 @@ #/ # @license Apache-2.0 # -# Copyright (c) 2024 The Stdlib Authors. +# Copyright (c) 2026 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/example.c index 810707091c6f..0123240e585a 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/example.c +++ b/lib/node_modules/@stdlib/math/base/special/acschf/examples/c/example.c @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/examples/index.js b/lib/node_modules/@stdlib/math/base/special/acschf/examples/index.js index 317448161f82..7af70e55ff60 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/examples/index.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/examples/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2022 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/include.gypi b/lib/node_modules/@stdlib/math/base/special/acschf/include.gypi index 575cb043c0bf..bee8d41a2caf 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/include.gypi +++ b/lib/node_modules/@stdlib/math/base/special/acschf/include.gypi @@ -1,6 +1,6 @@ # @license Apache-2.0 # -# Copyright (c) 2024 The Stdlib Authors. +# Copyright (c) 2026 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/include/stdlib/math/base/special/acschf.h b/lib/node_modules/@stdlib/math/base/special/acschf/include/stdlib/math/base/special/acschf.h index 16400f03eb00..2582179e8374 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/include/stdlib/math/base/special/acschf.h +++ b/lib/node_modules/@stdlib/math/base/special/acschf/include/stdlib/math/base/special/acschf.h @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/lib/index.js b/lib/node_modules/@stdlib/math/base/special/acschf/lib/index.js index f8fb96a78e97..6c97a5464c88 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/lib/index.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/lib/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2022 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js b/lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js index 1af653cbd4ab..db263fbdac70 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2022 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/lib/native.js b/lib/node_modules/@stdlib/math/base/special/acschf/lib/native.js index 0e4dc618e590..93b1c3f565c2 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/lib/native.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/lib/native.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile b/lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile index bcf18aa46655..2caf905cedbe 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile +++ b/lib/node_modules/@stdlib/math/base/special/acschf/src/Makefile @@ -1,7 +1,7 @@ #/ # @license Apache-2.0 # -# Copyright (c) 2024 The Stdlib Authors. +# Copyright (c) 2026 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c b/lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c index 6a37b431f3fc..b88ead99283d 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c +++ b/lib/node_modules/@stdlib/math/base/special/acschf/src/addon.c @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/src/main.c b/lib/node_modules/@stdlib/math/base/special/acschf/src/main.c index d774b378ce0f..021666610d4a 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/acschf/src/main.c @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/runner.jl index 7c177e218c18..c98a4c5aa415 100755 --- a/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/runner.jl +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/fixtures/julia/runner.jl @@ -2,7 +2,7 @@ # # @license Apache-2.0 # -# Copyright (c) 2022 The Stdlib Authors. +# Copyright (c) 2026 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js index f372971cfc88..25b5c464c779 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2022 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js index 1929d4cec019..0a4f28f6a1ca 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From bb31a8f7288dc9affa967fb956b60e6c1619b3f7 Mon Sep 17 00:00:00 2001 From: ivishal-g Date: Wed, 21 Jan 2026 12:47:38 +0530 Subject: [PATCH 06/19] chore: update according to code review --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/math/base/special/acschf/README.md | 4 ++-- .../@stdlib/math/base/special/acschf/lib/main.js | 3 +++ .../math/base/special/acschf/test/test.native.js | 10 +++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/README.md b/lib/node_modules/@stdlib/math/base/special/acschf/README.md index 5c4cb47a9470..5398de54da07 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/README.md +++ b/lib/node_modules/@stdlib/math/base/special/acschf/README.md @@ -20,7 +20,7 @@ limitations under the License. # acschf -> Compute the [hyperbolic arccosecant][inverse-hyperbolic-functions] of a single-precision floating-point number. +> Computes the [hyperbolic arccosecant][inverse-hyperbolic-functions] of a single-precision floating-point number.
@@ -149,7 +149,7 @@ float stdlib_base_acschf( const float x ); #include int main( void ) { - const float x[] = { -5.0, -3.89, -2.78, -1.67, -0.55, 0.55, 1.67, 2.78, 3.89, 5.0 }; + const float x[] = { -5.0f, -3.89f, -2.78f, -1.67f, -0.55f, 0.55f, 1.67f, 2.78f, 3.89f, 5.0f }; float v; int i; diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js b/lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js index db263fbdac70..453046fa6e4e 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/lib/main.js @@ -23,6 +23,9 @@ var asinhf = require( '@stdlib/math/base/special/asinhf' ); var f32 = require( '@stdlib/number/float64/base/to-float32' ); + +// VARIABLES // + var ONE = f32( 1.0 ); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js index 0a4f28f6a1ca..d78db5f02998 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js @@ -23,8 +23,8 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); -var isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' ); -var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' ); +var isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' ); +var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); var EPS = require( '@stdlib/constants/float32/eps' ); var PINF = require( '@stdlib/constants/float32/pinf' ); var NINF = require( '@stdlib/constants/float32/ninf' ); @@ -93,7 +93,7 @@ tape( 'the function computes the hyperbolic arccosecant on the interval `[-0.8,0 '. y: '+y+ '. E: '+e+ '. tol: '+tol+ - '. Δ: '+delta); + '. Δ: '+delta+'.' ); } } } @@ -430,12 +430,12 @@ tape( 'the function returns `-infinity` if provided `-0`', opts, function test( tape( 'the function returns `-0` if provided `-infinity`', opts, function test( t ) { var v = acschf( NINF ); - t.strictEqual( isNegativeZero( v ), true, 'returns expected value' ); + t.strictEqual( isNegativeZerof( v ), true, 'returns expected value' ); t.end(); }); tape( 'the function returns `+0` if provided `+infinity`', opts, function test( t ) { var v = acschf( PINF ); - t.strictEqual( isPositiveZero( v ), true, 'returns expected value' ); + t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); t.end(); }); From 846916684711d9d4b0e4c798ad82d95c0ae3d38f Mon Sep 17 00:00:00 2001 From: ivishal-g Date: Wed, 21 Jan 2026 22:41:29 +0530 Subject: [PATCH 07/19] chore: update according to code review --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../special/acschf/benchmark/benchmark.js | 21 ++++++---- .../math/base/special/acschf/docs/repl.txt | 1 + .../math/base/special/acschf/package.json | 2 +- .../math/base/special/acschf/test/test.js | 42 +++++++++++++++++-- .../base/special/acschf/test/test.native.js | 28 +++++++++++-- 5 files changed, 77 insertions(+), 17 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js index c59d936ac4f3..d86396a9d8f0 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/benchmark/benchmark.js @@ -21,7 +21,8 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pkg = require( './../package.json' ).name; var acschf = require( './../lib' ); @@ -30,20 +31,24 @@ var acschf = require( './../lib' ); bench( pkg, function benchmark( b ) { var x; + var y; var i; - x = f32( 1.234567 ); - i = 0; + x = uniform( 100, -50.0, 50.0, { + 'dtype': 'float32' + }); b.tic(); - while ( i < b.iterations ) { - x = acschf( x ); - i += 1; + for ( i = 0; i < b.iterations; i++ ) { + y = acschf( x[ i % x.length ] ); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } } b.toc(); - if ( x !== x ) { - b.fail( 'unexpected NaN' ); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); b.end(); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/acschf/docs/repl.txt index e29775029c40..7029c60efb70 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/docs/repl.txt +++ b/lib/node_modules/@stdlib/math/base/special/acschf/docs/repl.txt @@ -1,3 +1,4 @@ + {{alias}}( x ) Computes the hyperbolic arccosecant of a single-precision floating-point number. diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/package.json b/lib/node_modules/@stdlib/math/base/special/acschf/package.json index 0d5ec6490c44..ea629a021e93 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/package.json +++ b/lib/node_modules/@stdlib/math/base/special/acschf/package.json @@ -1,7 +1,7 @@ { "name": "@stdlib/math/base/special/acschf", "version": "0.0.0", - "description": "Compute the inverse hyperbolic arccosecant of a single-precision floating-point number.", + "description": "Compute the hyperbolic arccosecant of a single-precision floating-point number.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors", diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js index 25b5c464c779..191c2b878e5b 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.js @@ -27,11 +27,9 @@ var PINF = require( '@stdlib/constants/float32/pinf' ); var NINF = require( '@stdlib/constants/float32/ninf' ); var abs = require( '@stdlib/math/base/special/abs' ); var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); +var isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' ); +var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); var acschf = require( './../lib' ); - - -// FIXTURES // - var largerNegative = require( './fixtures/julia/larger_negative.json' ); var largerPositive = require( './fixtures/julia/larger_positive.json' ); var largeNegative = require( './fixtures/julia/large_negative.json' ); @@ -43,6 +41,8 @@ var smallPositive = require( './fixtures/julia/small_positive.json' ); var smaller = require( './fixtures/julia/smaller.json' ); var hugeNegative = require( './fixtures/julia/huge_negative.json' ); var hugePositive = require( './fixtures/julia/huge_positive.json' ); +var tinyNegative = require( './fixtures/julia/tiny_negative.json' ); +var tinyPositive = require( './fixtures/julia/tiny_positive.json' ); // TESTS // @@ -410,3 +410,37 @@ tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { t.strictEqual( isnanf( v ), true, 'returns expected value' ); t.end(); }); + +tape( 'the function returns -0 if provided -infinity', function test( t ) { + var v = acschf( NINF ); + t.strictEqual( isNegativeZerof( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns +0 if provided +infinity', function test( t ) { + var v = acschf( PINF ); + t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function evaluates the inverse hyperbolic arccosecant for tiny negative values', function test( t ) { + var i; + var v; + + for ( i = 0; i < tinyNegative.length; i++ ) { + v = acschf( tinyNegative[ i ] ); + t.strictEqual( isnanf( v ), false, 'does not return NaN' ); + } + t.end(); +}); + +tape( 'the function evaluates the inverse hyperbolic arccosecant for tiny positive values', function test( t ) { + var i; + var v; + + for ( i = 0; i < tinyPositive.length; i++ ) { + v = acschf( tinyPositive[ i ] ); + t.strictEqual( isnanf( v ), false, 'does not return NaN' ); + } + t.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js index d78db5f02998..9d358cb1ec2f 100644 --- a/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js +++ b/lib/node_modules/@stdlib/math/base/special/acschf/test/test.native.js @@ -31,10 +31,8 @@ var NINF = require( '@stdlib/constants/float32/ninf' ); var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); var abs = require( '@stdlib/math/base/special/abs' ); var tryRequire = require( '@stdlib/utils/try-require' ); - - -// FIXTURES // - +var tinyNegative = require( './fixtures/julia/tiny_negative.json' ); +var tinyPositive = require( './fixtures/julia/tiny_positive.json' ); var largerNegative = require( './fixtures/julia/larger_negative.json' ); var largerPositive = require( './fixtures/julia/larger_positive.json' ); var largeNegative = require( './fixtures/julia/large_negative.json' ); @@ -439,3 +437,25 @@ tape( 'the function returns `+0` if provided `+infinity`', opts, function test( t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); t.end(); }); + +tape( 'the native function evaluates the inverse hyperbolic arccosecant for tiny negative values', function test( t ) { + var i; + var v; + + for ( i = 0; i < tinyNegative.length; i++ ) { + v = acschf( tinyNegative[ i ] ); + t.strictEqual( isnanf( v ), false, 'does not return NaN' ); + } + t.end(); +}); + +tape( 'the native function evaluates the inverse hyperbolic arccosecant for tiny positive values', function test( t ) { + var i; + var v; + + for ( i = 0; i < tinyPositive.length; i++ ) { + v = acschf( tinyPositive[ i ] ); + t.strictEqual( isnanf( v ), false, 'does not return NaN' ); + } + t.end(); +}); From 344f9e37688b522d1e887adfa31cc7ee87b0cda2 Mon Sep 17 00:00:00 2001 From: Harsh <149176984+hrshya@users.noreply.github.com> Date: Wed, 21 Jan 2026 20:56:35 +0530 Subject: [PATCH 08/19] feat: add `math/base/special/acothf` PR-URL: https://github.com/stdlib-js/stdlib/pull/9803 Ref: https://github.com/stdlib-js/stdlib/issues/649 Co-authored-by: Philipp Burckhardt Reviewed-by: Philipp Burckhardt Signed-off-by: Harsh <149176984+hrshya@users.noreply.github.com> --- .../math/base/special/acothf/README.md | 190 ++++++++++++ .../special/acothf/benchmark/benchmark.js | 54 ++++ .../acothf/benchmark/benchmark.native.js | 64 ++++ .../base/special/acothf/benchmark/c/Makefile | 127 ++++++++ .../special/acothf/benchmark/c/benchmark.c | 137 +++++++++ .../acothf/benchmark/c/native/Makefile | 146 +++++++++ .../acothf/benchmark/c/native/benchmark.c | 138 +++++++++ .../math/base/special/acothf/binding.gyp | 170 +++++++++++ .../math/base/special/acothf/docs/repl.txt | 35 +++ .../base/special/acothf/docs/types/index.d.ts | 52 ++++ .../base/special/acothf/docs/types/test.ts | 44 +++ .../base/special/acothf/examples/c/Makefile | 146 +++++++++ .../base/special/acothf/examples/c/example.c | 31 ++ .../base/special/acothf/examples/index.js | 29 ++ .../math/base/special/acothf/include.gypi | 53 ++++ .../include/stdlib/math/base/special/acothf.h | 38 +++ .../math/base/special/acothf/lib/index.js | 52 ++++ .../math/base/special/acothf/lib/main.js | 67 ++++ .../math/base/special/acothf/lib/native.js | 62 ++++ .../math/base/special/acothf/manifest.json | 72 +++++ .../math/base/special/acothf/package.json | 161 ++++++++++ .../math/base/special/acothf/src/Makefile | 70 +++++ .../math/base/special/acothf/src/addon.c | 22 ++ .../math/base/special/acothf/src/main.c | 34 +++ .../acothf/test/fixtures/julia/REQUIRE | 2 + .../test/fixtures/julia/huge_negative.json | 1 + .../test/fixtures/julia/huge_positive.json | 1 + .../test/fixtures/julia/large_negative.json | 1 + .../test/fixtures/julia/large_positive.json | 1 + .../test/fixtures/julia/larger_negative.json | 1 + .../test/fixtures/julia/larger_positive.json | 1 + .../test/fixtures/julia/medium_negative.json | 1 + .../test/fixtures/julia/medium_positive.json | 1 + .../acothf/test/fixtures/julia/runner.jl | 94 ++++++ .../math/base/special/acothf/test/test.js | 276 +++++++++++++++++ .../base/special/acothf/test/test.native.js | 285 ++++++++++++++++++ 36 files changed, 2659 insertions(+) create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/README.md create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/benchmark.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/Makefile create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/benchmark.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/binding.gyp create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/examples/index.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/include.gypi create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/include/stdlib/math/base/special/acothf.h create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/lib/index.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/lib/main.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/lib/native.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/manifest.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/package.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/src/Makefile create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/src/addon.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/src/main.c create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/REQUIRE create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/huge_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/huge_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/large_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/large_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/larger_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/larger_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/medium_negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/medium_positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/runner.jl create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/test.js create mode 100644 lib/node_modules/@stdlib/math/base/special/acothf/test/test.native.js diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/README.md b/lib/node_modules/@stdlib/math/base/special/acothf/README.md new file mode 100644 index 000000000000..4aa3b7a663e8 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/README.md @@ -0,0 +1,190 @@ + + +# acothf + +> Compute the [inverse hyperbolic cotangent][hyperbolic-arctangent] of a single-precision floating-point number. + +
+ +## Usage + +```javascript +var acothf = require( '@stdlib/math/base/special/acothf' ); +``` + +#### acothf( x ) + +Computes the [inverse hyperbolic cotangent][hyperbolic-arctangent] of a single-precision floating-point number. + +```javascript +var v = acothf( 2.0 ); +// returns ~0.5493 + +v = acothf( 1.0 ); +// returns Infinity +``` + +The domain of the inverse hyperbolic cotangent is the union of the intervals `(-inf,-1]` and `[1,inf)`. If provided a value on the open interval `(-1,1)`, the function returns `NaN`. + +```javascript +var v = acothf( 0.0 ); +// returns NaN + +v = acothf( 0.5 ); +// returns NaN +``` + +
+ + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var acothf = require( '@stdlib/math/base/special/acothf' ); + +var x = uniform( 100, 1.0, 5.0, { + 'dtype': 'float32' +}); + +logEachMap( 'acothf(%0.4f) = %0.4f', x, acothf ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/acothf.h" +``` + +#### stdlib_base_acothf( x ) + +Computes the [inverse hyperbolic cotangent][hyperbolic-arctangent] of a single-precision floating-point number. + +```c +float out = stdlib_base_acothf( 2.0f ); +// returns ~0.5493f +``` + +The function accepts the following arguments: + +- **x**: `[in] float` input value. + +```c +float stdlib_base_acothf( const float x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/acothf.h" +#include + +int main( void ) { + const float x[] = { 1.0f, 1.44f, 1.89f, 2.33f, 2.78f, 3.22f, 3.67f, 4.11f, 4.56f, 5.0f }; + + float v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_acothf( x[ i ] ); + printf( "acothf(%f) = %f\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/benchmark.js new file mode 100644 index 000000000000..740380ccdb2e --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/benchmark.js @@ -0,0 +1,54 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var pkg = require( './../package.json' ).name; +var acothf = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var x; + var y; + var i; + + x = uniform( 100, 1.1, 100.0, { + 'dtype': 'float32' + }); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = acothf( x[ i % x.length ] ); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/benchmark.native.js new file mode 100644 index 000000000000..8b53b779a7b0 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/benchmark.native.js @@ -0,0 +1,64 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var acothf = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( acothf instanceof Error ) +}; + + +// MAIN // + +bench( format( '%s::native', pkg ), opts, function benchmark( b ) { + var x; + var y; + var i; + + x = uniform( 100, 1.1, 100.0, { + 'dtype': 'float32' + }); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = acothf( x[ i % x.length ] ); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/Makefile b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/Makefile new file mode 100644 index 000000000000..928de45a1a06 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/Makefile @@ -0,0 +1,127 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of C targets: +c_targets := benchmark.out + + +# RULES # + +#/ +# Compiles C source files. +# +# @param {string} [C_COMPILER] - C compiler +# @param {string} [CFLAGS] - C compiler flags +# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler +# @param {string} CFLAGS - C compiler flags +# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/benchmark.c new file mode 100644 index 000000000000..2b765bffe6b0 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/benchmark.c @@ -0,0 +1,137 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include +#include +#include +#include +#include + +#define NAME "acothf" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmarks results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +/** +* Generates a random number on the interval [min,max). +* +* @param min minimum value (inclusive) +* @param max maximum value (exclusive) +* @return random number +*/ +static float random_uniform( const float min, const float max ) { + float v = (float)rand() / ( (float)RAND_MAX + 1.0f ); + return min + ( v*(max-min) ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + float x[ 100 ]; + double elapsed; + float y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = random_uniform( 1.1f, 100.0f ); + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = atanhf( 1.0f/x[ i%100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y != y ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/Makefile b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/Makefile new file mode 100644 index 000000000000..979768abbcec --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := benchmark.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/benchmark.c new file mode 100644 index 000000000000..699830c8591a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/benchmark.c @@ -0,0 +1,138 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/acothf.h" +#include +#include +#include +#include +#include + +#define NAME "acothf" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmarks results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +/** +* Generates a random number on the interval [min,max). +* +* @param min minimum value (inclusive) +* @param max maximum value (exclusive) +* @return random number +*/ +static float random_uniform( const float min, const float max ) { + float v = (float)rand() / ( (float)RAND_MAX + 1.0f ); + return min + ( v*(max-min) ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + float x[ 100 ]; + double elapsed; + double t; + float y; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = random_uniform( 1.1f, 100.0f ); + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_acothf( x[ i % 100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y != y ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::native::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/binding.gyp b/lib/node_modules/@stdlib/math/base/special/acothf/binding.gyp new file mode 100644 index 000000000000..0d6508a12e99 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/binding.gyp @@ -0,0 +1,170 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A `.gyp` file for building a Node.js native add-on. +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # List of files to include in this file: + 'includes': [ + './include.gypi', + ], + + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Target name should match the add-on export name: + 'addon_target_name%': 'addon', + + # Set variables based on the host OS: + 'conditions': [ + [ + 'OS=="win"', + { + # Define the object file suffix: + 'obj': 'obj', + }, + { + # Define the object file suffix: + 'obj': 'o', + } + ], # end condition (OS=="win") + ], # end conditions + }, # end variables + + # Define compile targets: + 'targets': [ + + # Target to generate an add-on: + { + # The target name should match the add-on export name: + 'target_name': '<(addon_target_name)', + + # Define dependencies: + 'dependencies': [], + + # Define directories which contain relevant include headers: + 'include_dirs': [ + # Local include directory: + '<@(include_dirs)', + ], + + # List of source files: + 'sources': [ + '<@(src_files)', + ], + + # Settings which should be applied when a target's object files are used as linker input: + 'link_settings': { + # Define libraries: + 'libraries': [ + '<@(libraries)', + ], + + # Define library directories: + 'library_dirs': [ + '<@(library_dirs)', + ], + }, + + # C/C++ compiler flags: + 'cflags': [ + # Enable commonly used warning options: + '-Wall', + + # Aggressive optimization: + '-O3', + ], + + # C specific compiler flags: + 'cflags_c': [ + # Specify the C standard to which a program is expected to conform: + '-std=c99', + ], + + # C++ specific compiler flags: + 'cflags_cpp': [ + # Specify the C++ standard to which a program is expected to conform: + '-std=c++11', + ], + + # Linker flags: + 'ldflags': [], + + # Apply conditions based on the host OS: + 'conditions': [ + [ + 'OS=="mac"', + { + # Linker flags: + 'ldflags': [ + '-undefined dynamic_lookup', + '-Wl,-no-pie', + '-Wl,-search_paths_first', + ], + }, + ], # end condition (OS=="mac") + [ + 'OS!="win"', + { + # C/C++ flags: + 'cflags': [ + # Generate platform-independent code: + '-fPIC', + ], + }, + ], # end condition (OS!="win") + ], # end conditions + }, # end target <(addon_target_name) + + # Target to copy a generated add-on to a standard location: + { + 'target_name': 'copy_addon', + + # Declare that the output of this target is not linked: + 'type': 'none', + + # Define dependencies: + 'dependencies': [ + # Require that the add-on be generated before building this target: + '<(addon_target_name)', + ], + + # Define a list of actions: + 'actions': [ + { + 'action_name': 'copy_addon', + 'message': 'Copying addon...', + + # Explicitly list the inputs in the command-line invocation below: + 'inputs': [], + + # Declare the expected outputs: + 'outputs': [ + '<(addon_output_dir)/<(addon_target_name).node', + ], + + # Define the command-line invocation: + 'action': [ + 'cp', + '<(PRODUCT_DIR)/<(addon_target_name).node', + '<(addon_output_dir)/<(addon_target_name).node', + ], + }, + ], # end actions + }, # end target copy_addon + ], # end targets +} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/acothf/docs/repl.txt new file mode 100644 index 000000000000..438fa84a5b34 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/docs/repl.txt @@ -0,0 +1,35 @@ + +{{alias}}( x ) + Computes the inverse hyperbolic cotangent of a single-precision floating- + point number. + + The domain of the inverse hyperbolic cotangent is the union of the intervals + (-inf,-1] and [1,inf). + + If provided a value on the open interval (-1,1), the function returns `NaN`. + + Parameters + ---------- + x: number + Input value. + + Returns + ------- + y: number + Inverse hyperbolic cotangent. + + Examples + -------- + > var y = {{alias}}( 2.0 ) + ~0.5493 + > y = {{alias}}( 0.0 ) + NaN + > y = {{alias}}( 0.5 ) + NaN + > y = {{alias}}( 1.0 ) + Infinity + > y = {{alias}}( NaN ) + NaN + + See Also + -------- diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/acothf/docs/types/index.d.ts new file mode 100644 index 000000000000..b39bc8425947 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/docs/types/index.d.ts @@ -0,0 +1,52 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Computes the inverse hyperbolic cotangent of a single-precision floating-point number. +* +* @param x - input value +* @returns inverse hyperbolic cotangent +* +* @example +* var v = acothf( 2.0 ); +* // returns ~0.5493 +* +* @example +* var v = acothf( 0.0 ); +* // returns NaN +* +* @example +* var v = acothf( 0.5 ); +* // returns NaN +* +* @example +* var v = acothf( 1.0 ); +* // returns Infinity +* +* @example +* var v = acothf( NaN ); +* // returns NaN +*/ +declare function acothf( x: number ): number; + + +// EXPORTS // + +export = acothf; diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/acothf/docs/types/test.ts new file mode 100644 index 000000000000..bac5b05330e2 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/docs/types/test.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import acothf = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + acothf( 8 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + acothf( true ); // $ExpectError + acothf( false ); // $ExpectError + acothf( null ); // $ExpectError + acothf( undefined ); // $ExpectError + acothf( '5' ); // $ExpectError + acothf( [] ); // $ExpectError + acothf( {} ); // $ExpectError + acothf( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + acothf(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/examples/c/Makefile b/lib/node_modules/@stdlib/math/base/special/acothf/examples/c/Makefile new file mode 100644 index 000000000000..c8f8e9a1517b --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/examples/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := example.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled examples. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/acothf/examples/c/example.c new file mode 100644 index 000000000000..23f5db64282c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/examples/c/example.c @@ -0,0 +1,31 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/acothf.h" +#include + +int main( void ) { + const float x[] = { 1.0f, 1.44f, 1.89f, 2.33f, 2.78f, 3.22f, 3.67f, 4.11f, 4.56f, 5.0f }; + + float v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_acothf( x[ i ] ); + printf( "acothf(%f) = %f\n", x[ i ], v ); + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/examples/index.js b/lib/node_modules/@stdlib/math/base/special/acothf/examples/index.js new file mode 100644 index 000000000000..c3421829acd3 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/examples/index.js @@ -0,0 +1,29 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var acothf = require( './../lib' ); + +var x = uniform( 100, 1.0, 5.0, { + 'dtype': 'float32' +}); + +logEachMap( 'acothf(%0.4f) = %0.4f', x, acothf ); diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/include.gypi b/lib/node_modules/@stdlib/math/base/special/acothf/include.gypi new file mode 100644 index 000000000000..bee8d41a2caf --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A GYP include file for building a Node.js native add-on. +# +# Main documentation: +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Source directory: + 'src_dir': './src', + + # Include directories: + 'include_dirs': [ + '=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "acothf", + "hyperbolic", + "inverse", + "tangent", + "cotangent", + "acot", + "cot", + "coth", + "arc", + "arccotangent", + "trig", + "trigonometry", + "radians", + "angle" + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "acothf", + "alias": "acothf", + "pkg_desc": "compute the inverse hyperbolic cotangent of a single-precision floating-point number.", + "desc": "computes the inverse hyperbolic cotangent of a single-precision floating-point number.", + "short_desc": "inverse hyperbolic cotangent", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": "-infinity", + "max": -1 + }, + { + "min": 1, + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + 1.1, + 10 + ] + }, + "example_values": [ + 64, + 27, + -9, + 8, + -1, + 125, + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 15.7, + -16, + 17.9, + -188, + 19.11, + -200, + 21.15, + -1.2, + 1.7 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "inverse hyperbolic cotangent", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "inverse", + "cotangent", + "acot", + "cot", + "coth", + "arc", + "arccotangent", + "trig", + "trigonometry", + "radians", + "angle" + ], + "extra_keywords": [ + "math.atanhf" + ] + } + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/src/Makefile b/lib/node_modules/@stdlib/math/base/special/acothf/src/Makefile new file mode 100644 index 000000000000..2caf905cedbe --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/src/Makefile @@ -0,0 +1,70 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + + +# RULES # + +#/ +# Removes generated files for building an add-on. +# +# @example +# make clean-addon +#/ +clean-addon: + $(QUIET) -rm -f *.o *.node + +.PHONY: clean-addon + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: clean-addon + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/src/addon.c b/lib/node_modules/@stdlib/math/base/special/acothf/src/addon.c new file mode 100644 index 000000000000..a5b99eb55dbc --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/src/addon.c @@ -0,0 +1,22 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/acothf.h" +#include "stdlib/math/base/napi/unary.h" + +STDLIB_MATH_BASE_NAPI_MODULE_F_F( stdlib_base_acothf ) diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/src/main.c b/lib/node_modules/@stdlib/math/base/special/acothf/src/main.c new file mode 100644 index 000000000000..5de81f953fb6 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/src/main.c @@ -0,0 +1,34 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/acothf.h" +#include "stdlib/math/base/special/atanhf.h" + +/** +* Computes the inverse hyperbolic cotangent of a single-precision floating-point number. +* +* @param x input value +* @return output value +* +* @example +* out = stdlib_base_acothf( 2.0f ); +* // returns ~0.5493f +*/ +float stdlib_base_acothf( const float x ) { + return stdlib_base_atanhf( 1.0f / x ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000000..a99ba90dd47d --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/REQUIRE @@ -0,0 +1,2 @@ +julia 1.10.10 +JSON 1.3.0 diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/huge_negative.json b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/huge_negative.json new file mode 100644 index 000000000000..c89cf620f300 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/huge_negative.json @@ -0,0 +1 @@ +{"expected":[-1.0e-300,-1.0019899700803996e-305,-5.00997495012525e-306,-3.3399888778370363e-306,-2.5049937500405933e-306,-2.003996004031968e-306,-1.6699972278046017e-306,-1.4314265367579942e-306,-1.2524984437706837e-306,-1.113332104956911e-306,-1.0019990060169862e-306,-9.109082702635492e-307,-8.349993111255683e-307,-7.707686443921621e-307,-7.157137806248462e-307,-6.679995604562892e-307,-6.2624961407367526e-307,-5.894114231939694e-307,-5.566663623557219e-307,-5.2736814820900544e-307,-5.009997540091208e-307,-4.7714263424908375e-307,-4.554543425703383e-307,-4.3565198847682755e-307,-4.174998298688193e-307,-4.007998433674212e-307,-3.853844707172141e-307,-3.711109770988138e-307,-3.578570183740229e-307,-3.4551712545235752e-307,-3.3399989178403507e-307,-3.232257052089807e-307,-3.1312490508401315e-307,-3.0363627447771213e-307,-2.947057984484668e-307,-2.8628563518908304e-307,-2.7833325864724224e-307,-2.708107401804421e-307,-2.6368414363381198e-307,-2.5692301348285587e-307,-2.504999397547645e-307,-2.4439018661976355e-307,-2.385713740408288e-307,-2.330232038443599e-307,-2.277272231448455e-307,-2.2266661931289897e-307,-2.1782604168658787e-307,-2.131914460430147e-307,-2.0874995851094575e-307,-2.044897561471964e-307,-2.0039996184384724e-307,-1.964705515993148e-307,-1.9269227248891176e-307,-1.8905656992175756e-307,-1.855555229802526e-307,-1.8218178681342688e-307,-1.7892854120242857e-307,-1.7578944454017103e-307,-1.7275859257170491e-307,-1.698304813304841e-307,-1.6699997378100412e-307,-1.6426226974249252e-307,-1.616128787232087e-307,-1.5904759534195363e-307,-1.5656247705381197e-307,-1.5415382393197954e-307,-1.5181816028760636e-307,-1.4955221793562331e-307,-1.473529209371135e-307,-1.4521737166843367e-307,-1.4314283808441068e-307,-1.4112674205788777e-307,-1.3916664869097454e-307,-1.372602565048249e-307,-1.3540538842483777e-307,-1.3359998348704203e-307,-1.3184208919924018e-307,-1.301298544973876e-307,-1.284615232437888e-307,-1.2683542821910123e-307,-1.2524998556493915e-307,-1.2370368963813603e-307,-1.2219510824152443e-307,-1.207228781994789e-307,-1.1928570124949122e-307,-1.1788234022375224e-307,-1.165116154971349e-307,-1.1517240168014396e-307,-1.1386362453734627e-307,-1.1258425811354745e-307,-1.113333220515567e-307,-1.101098790868022e-307,-1.0891303270534132e-307,-1.077419249529667e-307,-1.0659573438415672e-307,-1.0547367414056605e-307,-1.043749901496103e-307,-1.0329895943447855e-307,-1.0224488852761436e-307,-1.0121211198034978e-307,-1.0019999096196082e-307,-9.920791194194766e-308,-9.823528544982776e-308,-9.72815449071739e-308,-9.634614552703473e-308,-9.542856327624561e-308,-9.452829389647628e-308,-9.36448519801736e-308,-9.277777009784014e-308,-9.192659797335304e-308,-9.109090170426505e-308,-9.027026302425184e-308,-8.946427860507073e-308,-8.867255939558361e-308,-8.789472999556839e-308,-8.713042806220088e-308,-8.637930374723593e-308,-8.564101916305111e-308,-8.491524787584075e-308,-8.420167442436314e-308,-8.349999386275046e-308,-8.280991132598911e-308,-8.213114161677011e-308,-8.146340881249297e-308,-8.080644589128552e-308,-8.015999437597481e-308,-7.952380399501172e-308,-7.889763235941509e-308,-7.828124465485877e-308,-7.76744133480804e-308,-7.707691790684059e-308,-7.648854453270821e-308,-7.590908590599206e-308,-7.533834094217909e-308,-7.477611455927855e-308,-7.422221745550648e-308,-7.367646589677798e-308,-7.31386815135066e-308,-7.260869110623848e-308,-7.208632645967626e-308,-7.157142416467375e-308,-7.106382544780471e-308,-7.056337600813356e-308,-7.006992586083451e-308,-6.958332918732664e-308,-6.910344419161023e-308,-6.863013296250727e-308,-6.816326134152458e-308,-6.7702698796074e-308,-6.724831829779762e-308,-6.679999620576021e-308,-6.635761215428291e-308,-6.59210489452045e-308,-6.549019244436774e-308,-6.506493148213884e-308,-6.464515775777751e-308,-6.423076574748541e-308,-6.382165261596838e-308,-6.341771813135733e-308,-6.301886458333944e-308,-6.262499670435954e-308,-6.223602159375813e-308,-6.185184864471896e-308,-6.147238947390584e-308,-6.109755785367356e-308,-6.072726964674396e-308,-6.0361442743243e-308,-5.999999700000014e-308,-5.964285418201545e-308,-5.928993790600483e-308,-5.894117358593786e-308,-5.859648838048644e-308,-5.825581114230679e-308,-5.79190723690803e-308,-5.758620415624269e-308,-5.7257140151334e-308,-5.693181550990457e-308,-5.661016685291594e-308,-5.629213222557771e-308,-5.597765105756387e-308,-5.566666412455567e-308,-5.535911351105899e-308,-5.5054942574447635e-308,-5.475409591018554e-308,-5.445651931818299e-308,-5.416215977024408e-308,-5.38709653785641e-308,-5.358288536523788e-308,-5.329787003274116e-308,-5.301587073534906e-308,-5.273683985145715e-308,-5.24607307567721e-308,-5.218749779833993e-308,-5.191709626938183e-308,-5.164948238490815e-308,-5.138461325808293e-308,-5.112244687731162e-308,-5.086294208402699e-308,-5.060605855114792e-308,-5.03517567621879e-308,-5.009999799099008e-308,-4.985074428206736e-308,-4.960395843152641e-308,-4.935960396855549e-308,-4.911764513745683e-308,-4.887804688020471e-308,-4.86407748195118e-308,-4.840579524238613e-308,-4.817307508416242e-308,-4.794258191299199e-308,-4.771428391477558e-308,-4.748814987852481e-308,-4.726414918213783e-308,-4.704225177857575e-308,-4.682242818242647e-308,-4.660464945684376e-308,-4.638888720084883e-308,-4.617511353698322e-308,-4.596330109930147e-308,-4.575342302169268e-308,-4.554545292652072e-308,-4.533936491357268e-308,-4.513513354930611e-308,-4.493273385638567e-308,-4.473214130349974e-308,-4.453333179544894e-308,-4.433628166349759e-308,-4.414096765598018e-308,-4.3947366929155173e-308,-4.375545703829833e-308,-4.3565215929028397e-308,-4.33766219288582e-308,-4.318965373896408e-308,-4.30042904261674e-308,-4.2820511415121674e-308,-4.263829648069901e-308,-4.245762574057028e-308,-4.2278479647973124e-308,-4.2100838984662143e-308,-4.1924684854036216e-308,-4.1749998674437533e-308,-4.157676217261759e-308,-4.140495737736498e-308,-4.1234566613290697e-308,-4.106557249476624e-308,-4.089795792001003e-308,-4.0731706065318306e-308,-4.056680037943586e-308,-4.040322457806325e-308,-4.024096263849619e-308,-4.0079998794393636e-308,-3.992031753067098e-308,-3.976190357851477e-308,-3.9604741910515745e-308,-3.9448817735916697e-308,-3.929411649597236e-308,-3.9140623859417754e-308,-3.8988325718042696e-308,-3.8837208182368887e-308,-3.8687257577427317e-308,-3.8538460438633175e-308,-3.839080350775535e-308,-3.8244273728978524e-308,-3.8098858245054897e-308,-3.795454439354342e-308,-3.781131970313424e-308,-3.7669171890056e-308,-3.7528088854563846e-308,-3.7388058677506147e-308,-3.7249069616967734e-308,-3.7111110104987674e-308,-3.6974168744349913e-308,-3.6838234305444453e-308,-3.6703295723197703e-308,-3.656934209407004e-308,-3.64363626731187e-308,-3.6304346871124793e-308,-3.617328425178227e-308,-3.60431645289478e-308,-3.591397756394961e-308,-3.578571336295411e-308,-3.5658362074388647e-308,-3.5531913986419215e-308,-3.5406359524481537e-308,-3.528168924886433e-308,-3.515789385234351e-308,-3.503496415786593e-308,-3.4912891116281635e-308,-3.479166580412329e-308,-3.4671279421431755e-308,-3.4551723289626655e-308,-3.4432988849420786e-308,-3.4315067658777466e-308,-3.419795139090964e-308,-3.408163183231989e-308,-3.396610088088023e-308,-3.3851350543950894e-308,-3.373737293653711e-308,-3.3624160279482924e-308,-3.351170489770138e-308,-3.339999921844001e-308,-3.328903576958093e-308,-3.3178807177974665e-308,-3.30693061678071e-308,-3.296052555899846e-308,-3.285245826563398e-308,-3.274509729442524e-308,-3.263843574320153e-308,-3.2532466799430788e-308,-3.2427183738768986e-308,-3.232257992363789e-308,-3.221864880183003e-308,-3.2115383905140545e-308,-3.201277884802541e-308,-3.191082732628506e-308,-3.1809523115773256e-308,-3.1708860071130436e-308,-3.160883212454101e-308,-3.150943328451408e-308,-3.141065763468717e-308,-3.131249933265236e-308,-3.1214952608804274e-308,-3.111801176520969e-308,-3.1021671174497994e-308,-3.0925925278772306e-308,-3.083076858854061e-308,-3.0736195681666615e-308,-3.0642201202339883e-308,-3.054877986006471e-308,-3.0455926428667523e-308,-3.0363635745322323e-308,-3.0271902709593756e-308,-3.018072228249747e-308,-3.009008948557748e-308,-2.999999940000001e-308,-2.9910447165663635e-308,-2.9821427980325266e-308,-2.9732937098741745e-308,-2.964496983182663e-308,-2.955752154582192e-308,-2.9470587661484442e-308,-2.9384163653286446e-308,-2.929824504863036e-308,-2.921282742707717e-308,-2.91279064195883e-308,-2.904347770778073e-308,-2.8959537023194904e-308,-2.887608014657543e-308,-2.87931029071641e-308,-2.871060118200508e-308,-2.862857089526205e-308,-2.8547008017546946e-308,-2.846590856526021e-308,-2.8385268599942223e-308,-2.8305084227635747e-308,-2.8225351598259085e-308,-2.814606690498991e-308,-2.8067226383659357e-308,-2.7988826312156305e-308,-2.791086300984165e-308,-2.783333283697223e-308,-2.775623219413449e-308,-2.767955752168738e-308,-2.760330529921454e-308,-2.7527472044985515e-308,-2.7452054315425793e-308,-2.7377048704595547e-308,-2.730245184367692e-308,-2.7228260400469645e-308,-2.715447107889484e-308,-2.708108061850695e-308,-2.700808579401342e-308,-2.69354834148023e-308,-2.6863270324477296e-308,-2.679144340040036e-308,-2.6719999553241606e-308,-2.6648935726536335e-308,-2.657824889624919e-308,-2.6507936070345184e-308,-2.6437994288367534e-308,-2.6368420621022165e-308,-2.629921216976874e-308,-2.6230366066418144e-308,-2.6161879472736203e-308,-2.6093749580053715e-308,-2.602597360888245e-308,-2.595854880853715e-308,-2.5891472456763426e-308,-2.5824741859371356e-308,-2.5758354349874777e-308,-2.56923072891361e-308,-2.562659806501659e-308,-2.5561224092031967e-308,-2.549618281101335e-308,-2.543147168877323e-308,-2.5367088217776644e-308,-2.5303029915817267e-308,-2.523929432569841e-308,-2.517587901491882e-308,-2.511278157536323e-308,-2.5049999622997503e-308,-2.4987530797568427e-308,-2.492537276230787e-308,-2.486352320364143e-308,-2.480197983090139e-308,-2.47407403760439e-308,-2.4679802593370384e-308,-2.4619164259253005e-308,-2.4558823171864193e-308,-2.4498777150910146e-308,-2.443902403736824e-308,-2.4379561693228197e-308,-2.432038800123716e-308,-2.426150086464833e-308,-2.420289820697333e-308,-2.414457797173814e-308,-2.408653812224252e-308,-2.4028776641322914e-308,-2.39712915311188e-308,-2.3914080812842266e-308,-2.3857142526551025e-308,-2.380047473092457e-308,-2.374407550304351e-308,-2.368794293817213e-308,-2.363207514954388e-308,-2.3576470268150036e-308,-2.352112644253125e-308,-2.3466041838572035e-308,-2.3411214639298196e-308,-2.3356643044677006e-308,-2.330232527142023e-308,-2.324825955278988e-308,-2.3194444138406636e-308,-2.314087729406099e-308,-2.30875573015269e-308,-2.303448245837813e-308,-2.2981651077807007e-308,-2.2929061488445773e-308,-2.2876712034190284e-308,-2.2824601074026186e-308,-2.277272698185744e-308,-2.2721088146337177e-308,-2.266968297070085e-308,-2.2618509872601644e-308,-2.256756728394814e-308,-2.2516853650744104e-308,-2.2466367432930486e-308,-2.2416107104229543e-308,-2.2366071151990995e-308,-2.2316258077040293e-308,-2.226666639352889e-308,-2.221729462878649e-308,-2.216814132317527e-308,-2.2119205029946057e-308,-2.207048431509636e-308,-2.202197775723029e-308,-2.197368394742036e-308,-2.192560148907105e-308,-2.1877728997784183e-308,-2.183006510122603e-308,-2.178260843899622e-308,-2.1735357662498296e-308,-2.1688311434811946e-308,-2.164146843056692e-308,-2.15948273358186e-308,-2.154838684792508e-308,-2.150214567542596e-308,-2.1456102537922593e-308,-2.14102561659599e-308,-2.136460530090971e-308,-2.131914869485559e-308,-2.127388511047913e-308,-2.1228813320947644e-308,-2.118393210980338e-308,-2.113924027085403e-308,-2.109473660806471e-308,-2.105041993545124e-308,-2.1006289076974807e-308,-2.0962342866437917e-308,-2.091858014738168e-308,-2.087499977298438e-308,-2.083160060596125e-308,-2.078838151846559e-308,-2.0745341391991053e-308,-2.070247911727512e-308,-2.0659793594203845e-308,-2.061728373171773e-308,-2.0574948447718716e-308,-2.0532786668978436e-308,-2.0490797331047463e-308,-2.044897937816577e-308,-2.040733176317421e-308,-2.036585344742713e-308,-2.0324543400706034e-308,-2.028340060113426e-308,-2.0242424035092747e-308,-2.0201612697136775e-308,-2.0160965589913726e-308,-2.0120481724081867e-308,-2.008016011823005e-308,-2.00399997987984e-308,-1.99999998e-308,-1.9960159163743435e-308,-1.99204769395563e-308,-1.9880952184509637e-308,-1.9841583963143224e-308,-1.9802371347391775e-308,-1.976331341651203e-308,-1.9724409257010665e-308,-1.9685657962573096e-308,-1.964705863399308e-308,-1.9608610379103175e-308,-1.957031231270599e-308,-1.953216355650628e-308,-1.949416323904374e-308,-1.945631049562673e-308,-1.9418604468266634e-308,-1.9381044305613027e-308,-1.934362916288964e-308,-1.9306358201831005e-308,-1.9269230590619823e-308,-1.9232245503825136e-308,-1.919540212234113e-308,-1.9158699633326637e-308,-1.9122137230145394e-308,-1.908571411230694e-308,-1.9049429485408204e-308,-1.901328256107573e-308,-1.8977272556908577e-308,-1.89413986964219e-308,-1.89056602089911e-308,-1.887005632979667e-308,-1.8834586299769636e-308,-1.879924936553756e-308,-1.876404477937129e-308,-1.872897179913215e-308,-1.8694029688219815e-308,-1.8659217715520737e-308,-1.862453515535717e-308,-1.8589981287436713e-308,-1.855555539680247e-308,-1.8521256773783744e-308,-1.8487084713947253e-308,-1.84530385180489e-308,-1.8419117491986103e-308,-1.838532094675061e-308,-1.8351648198381836e-308,-1.831809856792075e-308,-1.828467138136422e-308,-1.825136596961987e-308,-1.821818166846149e-308,-1.818511781848479e-308,-1.81521737650638e-308,-1.8119348858307633e-308,-1.8086642453017767e-308,-1.8054053908645733e-308,-1.8021582589251333e-308,-1.7989227863461284e-308,-1.795698910442826e-308,-1.7924865689790417e-308,-1.789285700163138e-308,-1.7860962426440567e-308,-1.7829181355074023e-308,-1.779751318271566e-308,-1.7765957308838843e-308,-1.773451313716845e-308,-1.7703180075643347e-308,-1.767195753637916e-308,-1.764084493563157e-308,-1.7609841693759904e-308,-1.757894723519114e-308,-1.7548160988384283e-308,-1.751748238579515e-308,-1.7486910863841454e-308,-1.7456445862868314e-308,-1.74260868271141e-308,-1.739583320467665e-308,-1.7365684447479795e-308,-1.733564001124029e-308,-1.730569935543505e-308,-1.7275861943268725e-308,-1.724612724164166e-308,-1.721649472111808e-308,-1.718696385589472e-308,-1.7157534123769707e-308,-1.712820500611177e-308,-1.7098975987829795e-308,-1.7069846557342654e-308,-1.7040816206549357e-308,-1.7011884430799524e-308,-1.698305072886412e-308,-1.695431460290654e-308,-1.692567555845394e-308,-1.6897133104368846e-308,-1.686868675282114e-308,-1.6840336019260225e-308,-1.681208042238751e-308,-1.678391948412919e-308,-1.675585272960929e-308,-1.6727879687122944e-308,-1.669999988811e-308,-1.667221286712883e-308,-1.6644518161830446e-308,-1.6616915312932853e-308,-1.6589403864195647e-308,-1.6561983362394917e-308,-1.653465335729831e-308,-1.6507413401640394e-308,-1.648026305109829e-308,-1.6453201864267516e-308,-1.6426229402638e-308,-1.639934523057047e-308,-1.6372548915272973e-308,-1.634584002677762e-308,-1.6319218137917645e-308,-1.629268282430458e-308,-1.6266233664305746e-308,-1.6239870239021877e-308,-1.621359213226506e-308,-1.6187398930536773e-308,-1.6161290223006247e-308,-1.613526560148895e-308,-1.610932466042535e-308,-1.6083466996859807e-308,-1.6057692210419746e-308,-1.603199990329498e-308,-1.6006389680217213e-308,-1.5980861148439823e-308,-1.595541391771776e-308,-1.5930047600287637e-308,-1.5904761810848073e-308,-1.587955616654017e-308,-1.5854430286928176e-308,-1.582938379398037e-308,-1.5804416312050074e-308,-1.5779527467856905e-308,-1.5754716890468137e-308,-1.572998421128031e-308,-1.5705329064000946e-308,-1.5680751084630474e-308,-1.5656249911444336e-308,-1.5631825184975214e-308,-1.5607476547995455e-308,-1.5583203645499687e-308,-1.5559006124687516e-308,-1.5534883634946456e-308,-1.551083582783502e-308,-1.54868623570659e-308,-1.546296287848937e-308,-1.5439137050076805e-308,-1.541538453190438e-308,-1.539170498613689e-308,-1.5368098077011743e-308,-1.5344563470823083e-308,-1.532110083590607e-308,-1.529770984262129e-308,-1.5274390163339346e-308,-1.5251141472425513e-308,-1.522796344622463e-308,-1.5204855763046044e-308,-1.5181818103148763e-308,-1.5158850148726657e-308,-1.51359515838939e-308,-1.5113122094670463e-308,-1.5090361368967734e-308,-1.5067669096574366e-308,-1.5045044969142117e-308,-1.502248868017191e-308,-1.4999999925e-308,-1.497757840078425e-308,-1.4955223806490533e-308,-1.493293584287926e-308,-1.491071421249203e-308,-1.48885586196384e-308,-1.486646877038276e-308,-1.484444437253136e-308,-1.4822485135619374e-308,-1.4800590770898194e-308,-1.4778760991322734e-308,-1.475699551153889e-308,-1.473529404787111e-308,-1.471365631831008e-308,-1.469208204250049e-308,-1.467057094172896e-308,-1.4649122738911973e-308,-1.462773715858405e-308,-1.4606413926885907e-308,-1.4585152771552793e-308,-1.456395342190289e-308,-1.454281560882582e-308,-1.4521739064771267e-308,-1.4500723523737696e-308,-1.4479768721261153e-308,-1.4458874394404154e-308,-1.443804028174472e-308,-1.441726612336546e-308,-1.4396551660842747e-308,-1.4375896637236036e-308,-1.43553007970772e-308,-1.433476388636004e-308,-1.4314285652529797e-308,-1.4293865844472844e-308,-1.427350421250639e-308,-1.4253200508368324e-308,-1.4232954485207094e-308,-1.4212765897571753e-308,-1.4192634501401986e-308,-1.417256005401831e-308,-1.4152542314112326e-308,-1.4132581041737005e-308,-1.411267599829716e-308,-1.4092826946539907e-308,-1.407303365054523e-308,-1.4053295875716655e-308,-1.403361338877198e-308,-1.401398595773407e-308,-1.3994413351921755e-308,-1.3974895341940795e-308,-1.39554316996749e-308,-1.393602219827685e-308,-1.391666661215972e-308,-1.389736471698808e-308,-1.3878116289669357e-308,-1.385892110834524e-308,-1.383977895238317e-308,-1.3820689602367847e-308,-1.380165284009289e-308,-1.3782668448552495e-308,-1.376373621193319e-308,-1.374485591560568e-308,-1.372602734611672e-308,-1.370725029118106e-308,-1.3688524539673474e-308,-1.366984988162088e-308,-1.3651226108194434e-308,-1.363265301170179e-308,-1.3614130385579365e-308,-1.3595658024384674e-308,-1.357723572378875e-308,-1.3558863280568593e-308,-1.354054049259971e-308,-1.3522267158848695e-308,-1.3504043079365886e-308,-1.3485868055278063e-308,-1.346774188878122e-308,-1.344966438313337e-308,-1.343163534264747e-308,-1.341365457268431e-308,-1.339572187964554e-308,-1.337783707096672e-308,-1.33599999551104e-308,-1.334221034155932e-308,-1.332446804080961e-308,-1.330677286436406e-308,-1.3289124624725427e-308,-1.327152313538985e-308,-1.325396821084026e-308,-1.323645966653986e-308,-1.3218997318925653e-308,-1.3201580985402055e-308,-1.3184210484334486e-308,-1.316688563504311e-308,-1.3149606257796515e-308,-1.3132372173805543e-308,-1.31151832052171e-308,-1.3098039175108033e-308,-1.308093990747909e-308,-1.306388522724885e-308,-1.3046874960247803e-308,-1.302990893321237e-308,-1.301298697377905e-308,-1.2996108910478584e-308,-1.297927457273014e-308,-1.296248379083559e-308,-1.2945736395973798e-308,-1.292903222019496e-308,-1.2912371096415e-308,-1.289575285840998e-308,-1.2879177340810594e-308,-1.286264437909667e-308,-1.2846153809591717e-308,-1.2829705469457557e-308,-1.281329919668893e-308,-1.279693483010819e-308,-1.278061220936003e-308,-1.276433117490624e-308,-1.274809156802051e-308,-1.2731893230783266e-308,-1.2715736006076554e-308,-1.2699619737578974e-308,-1.2683544269760615e-308,-1.266750944787807e-308,-1.265151511796947e-308,-1.263556112684953e-308,-1.26196473221047e-308,-1.260377355208829e-308,-1.2587939665915633e-308,-1.257214551345935e-308,-1.2556390945344565e-308,-1.2540675812944217e-308,-1.2524999968374376e-308,-1.2509363264489614e-308,-1.249376555487839e-308,-1.247820669385849e-308,-1.2462686536472487e-308,-1.244720493848324e-308,-1.243176175636941e-308,-1.241635684732107e-308,-1.2400990069235247e-308,-1.238566128071159e-308,-1.237037034104801e-308,-1.235511711023641e-308,-1.233990144895836e-308,-1.23247232185809e-308,-1.230958228115232e-308,-1.2294478499397945e-308,-1.2279411736716045e-308,-1.2264381857173676e-308,-1.22493887255026e-308,-1.2234432207095225e-308,-1.2219512168000596e-308,-1.2204628474920366e-308,-1.218978099520486e-308,-1.2174969596849095e-308,-1.21601941484889e-308,-1.2145454519397024e-308,-1.2130750579479274e-308,-1.2116082199270683e-308,-1.2101449249931734e-308,-1.208685160324457e-308,-1.2072289131609233e-308,-1.2057761708039983e-308,-1.204326920616159e-308,-1.2028811500205655e-308,-1.2014388465006987e-308,-1.1999999976e-308,-1.1985645909215105e-308,-1.1971326141275163e-308,-1.195704054939195e-308,-1.194278901136264e-308,-1.1928571405566327e-308,-1.1914387610960567e-308,-1.1900237507077936e-308,-1.188612097402262e-308,-1.1872037892467035e-308,-1.185798814364847e-308,-1.1843971609365726e-308,-1.182998817197582e-308,-1.1816037714390685e-308,-1.1802120120073916e-308,-1.178823527303751e-308,-1.177438305783864e-308,-1.1760563359576477e-308,-1.174677606388898e-308,-1.17330210569498e-308,-1.1719298225465065e-308,-1.1705607456670344e-308,-1.169194863832751e-308,-1.16783216587217e-308,-1.1664726406658254e-308,-1.165116277145971e-308,-1.1637630642962766e-308,-1.1624129911515335e-308,-1.161066046797356e-308,-1.159722220369888e-308,-1.1583815010555113e-308,-1.1570438780905543e-308,-1.155709340761006e-308,-1.1543778784022277e-308,-1.15304948039867e-308,-1.151724136183591e-308,-1.1504018352387757e-308,-1.1490825670942577e-308,-1.147766321328043e-308,-1.1464530875658355e-308,-1.145142855480764e-308,-1.143835614793113e-308,-1.142531355270052e-308,-1.14123006672537e-308,-1.1399317390192083e-308,-1.1386363620577996e-308,-1.137343925793205e-308,-1.136054420223055e-308,-1.1347678353902903e-308,-1.1334841613829056e-308,-1.132203388333697e-308,-1.130925506420007e-308,-1.129650505863475e-308,-1.1283783769297847e-308,-1.1271091099284216e-308,-1.125842695212423e-308,-1.124579123178134e-308,-1.1233183842649663e-308,-1.122060468955156e-308,-1.120805367773524e-308,-1.1195530712872384e-308,-1.1183035701055785e-308,-1.117056854879699e-308,-1.1158129163023993e-308,-1.1145717451078875e-308,-1.113333332071556e-308,-1.1120976680097463e-308,-1.1108647437795293e-308,-1.1096345502784735e-308,-1.108407078444426e-308,-1.1071823192552853e-308,-1.105960263728784e-308,-1.1047409029222673e-308,-1.103524227932475e-308,-1.102310229895326e-308,-1.1010988999857023e-308,-1.0998902294172336e-308,-1.098684209442088e-308,-1.097480831350758e-308,-1.0962800864718526e-308,-1.0950819661718893e-308,-1.093886461855085e-308,-1.092693564963152e-308,-1.091503266975095e-308,-1.0903155594070055e-308,-1.089130433811862e-308,-1.087947881779329e-308,-1.0867678949355593e-308,-1.085590464942994e-308,-1.0844155835001687e-308,-1.083243242341516e-308,-1.082073433237175e-308,-1.080906147992794e-308,-1.079741378449344e-308,-1.0785791164829246e-308,-1.0774193540045787e-308,-1.076262082960101e-308,-1.075107295329855e-308,-1.073954983128586e-308,-1.0728051384052385e-308,-1.071657753242769e-308,-1.0705128197579715e-308,-1.0693703301012906e-308,-1.0682302764566444e-308,-1.0670926510412475e-308,-1.065957446105432e-308,-1.0648246539324727e-308,-1.0636942668384114e-308,-1.062566277171883e-308,-1.0614406773139453e-308,-1.060317459677904e-308,-1.0591966167091437e-308,-1.0580781408849597e-308,-1.0569620247143887e-308,-1.0558482607380404e-308,-1.054736841527934e-308,-1.053627759687329e-308,-1.052521007850567e-308,-1.051416578682902e-308,-1.050314464880345e-308,-1.0492146591694965e-308,-1.0481171543073914e-308,-1.047021943081338e-308,-1.045929018308759e-308,-1.0448383728370384e-308,-1.0437499995433595e-308,-1.0426638913345555e-308,-1.041580041146952e-308,-1.040498441946216e-308,-1.0394190867272e-308,-1.0383419685137966e-308,-1.0372670803587824e-308,-1.0361944153436733e-308,-1.035123966578572e-308,-1.0340557272020247e-308,-1.0329896903808694e-308,-1.0319258493100955e-308,-1.030864197212696e-308,-1.0298047273395236e-308,-1.028747432969149e-308,-1.027692307407716e-308,-1.0266393439888054e-308,-1.0255885360732884e-308,-1.024539877049193e-308,-1.0234933603315593e-308,-1.022448979362307e-308,-1.0214067276100966e-308,-1.0203665985701904e-308,-1.019328585764321e-308,-1.018292682740556e-308,-1.0172588830731634e-308,-1.0162271803624785e-308,-1.0151975682347726e-308,-1.014170040342122e-308,-1.0131445903622763e-308,-1.0121212119985305e-308,-1.011099898979595e-308,-1.010080645059468e-308,-1.0090634440173054e-308,-1.0080482896573e-308,-1.0070351758085504e-308,-1.006024096324938e-308,-1.005015045085004e-308,-1.0040080159918234e-308,-1.0030030029728826e-308,-1.00199999997996e-308,-1.000999000989001e-308,-1.0e-308],"x":[-1.0e300,-9.98013982035928e304,-1.996017964071856e305,-2.9940219461077846e305,-3.992025928143713e305,-4.99002991017964e305,-5.988033892215569e305,-6.986037874251497e305,-7.984041856287425e305,-8.982045838323353e305,-9.98004982035928e305,-1.097805380239521e306,-1.1976057784431138e306,-1.2974061766467066e306,-1.3972065748502995e306,-1.4970069730538922e306,-1.5968073712574852e306,-1.696607769461078e306,-1.7964081676646707e306,-1.8962085658682634e306,-1.9960089640718562e306,-2.095809362275449e306,-2.195609760479042e306,-2.2954101586826347e306,-2.3952105568862274e306,-2.4950109550898204e306,-2.5948113532934132e306,-2.694611751497006e306,-2.794412149700599e306,-2.894212547904192e306,-2.9940129461077844e306,-3.0938133443113774e306,-3.19361374251497e306,-3.293414140718563e306,-3.3932145389221553e306,-3.493014937125749e306,-3.5928153353293414e306,-3.6926157335329344e306,-3.792416131736527e306,-3.89221652994012e306,-3.9920169281437123e306,-4.091817326347306e306,-4.1916177245508984e306,-4.291418122754491e306,-4.391218520958084e306,-4.491018919161676e306,-4.5908193173652693e306,-4.6906197155688624e306,-4.7904201137724554e306,-4.890220511976048e306,-4.990020910179641e306,-5.089821308383233e306,-5.1896217065868263e306,-5.2894221047904194e306,-5.3892225029940124e306,-5.489022901197605e306,-5.588823299401198e306,-5.688623697604791e306,-5.788424095808384e306,-5.888224494011976e306,-5.988024892215569e306,-6.08782529041916e306,-6.187625688622755e306,-6.287426086826348e306,-6.38722648502994e306,-6.487026883233533e306,-6.586827281437126e306,-6.686627679640719e306,-6.786428077844312e306,-6.886228476047904e306,-6.986028874251498e306,-7.08582927245509e306,-7.185629670658683e306,-7.285430068862275e306,-7.385230467065869e306,-7.485030865269462e306,-7.584831263473054e306,-7.684631661676647e306,-7.784432059880239e306,-7.884232458083833e306,-7.984032856287426e306,-8.083833254491018e306,-8.183633652694611e306,-8.283434050898204e306,-8.383234449101797e306,-8.483034847305389e306,-8.582835245508982e306,-8.682635643712576e306,-8.782436041916168e306,-8.882236440119761e306,-8.982036838323353e306,-9.081837236526947e306,-9.18163763473054e306,-9.28143803293413e306,-9.381238431137725e306,-9.481038829341318e306,-9.580839227544911e306,-9.680639625748501e306,-9.780440023952096e306,-9.88024042215569e306,-9.980040820359282e306,-1.0079841218562874e307,-1.0179641616766467e307,-1.0279442014970061e307,-1.0379242413173654e307,-1.0479042811377244e307,-1.0578843209580839e307,-1.0678643607784432e307,-1.0778444005988024e307,-1.0878244404191615e307,-1.097804480239521e307,-1.1077845200598804e307,-1.1177645598802395e307,-1.1277445997005988e307,-1.1377246395209582e307,-1.1477046793413176e307,-1.1576847191616768e307,-1.167664758982036e307,-1.1776447988023952e307,-1.1876248386227546e307,-1.1976048784431138e307,-1.207584918263473e307,-1.2175649580838324e307,-1.2275449979041918e307,-1.237525037724551e307,-1.24750507754491e307,-1.2574851173652696e307,-1.2674651571856288e307,-1.277445197005988e307,-1.2874252368263474e307,-1.2974052766467066e307,-1.307385316467066e307,-1.3173653562874252e307,-1.3273453961077843e307,-1.3373254359281438e307,-1.347305475748503e307,-1.3572855155688624e307,-1.3672655553892216e307,-1.3772455952095807e307,-1.3872256350299404e307,-1.3972056748502993e307,-1.4071857146706585e307,-1.417165754491018e307,-1.4271457943113774e307,-1.4371258341317366e307,-1.4471058739520957e307,-1.4570859137724552e307,-1.4670659535928146e307,-1.4770459934131735e307,-1.4870260332335327e307,-1.4970060730538924e307,-1.5069861128742516e307,-1.5169661526946107e307,-1.5269461925149702e307,-1.5369262323353294e307,-1.5469062721556885e307,-1.5568863119760477e307,-1.5668663517964071e307,-1.5768463916167666e307,-1.5868264314371258e307,-1.5968064712574852e307,-1.6067865110778444e307,-1.6167665508982035e307,-1.626746590718563e307,-1.6367266305389221e307,-1.6467066703592813e307,-1.6566867101796408e307,-1.6666667500000002e307,-1.6766467898203594e307,-1.6866268296407185e307,-1.696606869461078e307,-1.7065869092814372e307,-1.7165669491017963e307,-1.7265469889221555e307,-1.7365270287425152e307,-1.7465070685628744e307,-1.7564871083832335e307,-1.766467148203593e307,-1.776447188023952e307,-1.7864272278443113e307,-1.7964072676646705e307,-1.80638730748503e307,-1.8163673473053894e307,-1.8263473871257486e307,-1.836327426946108e307,-1.8463074667664672e307,-1.856287506586826e307,-1.8662675464071858e307,-1.876247586227545e307,-1.8862276260479041e307,-1.8962076658682636e307,-1.906187705688623e307,-1.9161677455089822e307,-1.926147785329341e307,-1.9361278251497005e307,-1.94610786497006e307,-1.9560879047904191e307,-1.9660679446107783e307,-1.976047984431138e307,-1.9860280242514972e307,-1.9960080640718563e307,-2.0059881038922155e307,-2.0159681437125747e307,-2.0259481835329341e307,-2.0359282233532933e307,-2.0459082631736527e307,-2.0558883029940122e307,-2.0658683428143714e307,-2.0758483826347305e307,-2.0858284224550897e307,-2.095808462275449e307,-2.1057885020958086e307,-2.1157685419161678e307,-2.125748581736527e307,-2.1357286215568864e307,-2.1457086613772458e307,-2.1556887011976047e307,-2.165668741017964e307,-2.1756487808383233e307,-2.1856288206586828e307,-2.195608860479042e307,-2.205588900299401e307,-2.2155689401197608e307,-2.2255489799401197e307,-2.235529019760479e307,-2.2455090595808383e307,-2.2554890994011975e307,-2.265469139221557e307,-2.2754491790419164e307,-2.2854292188622753e307,-2.295409258682635e307,-2.305389298502994e307,-2.315369338323353e307,-2.325349378143713e307,-2.335329417964072e307,-2.345309457784431e307,-2.355289497604791e307,-2.3652695374251497e307,-2.375249577245509e307,-2.385229617065868e307,-2.395209656886228e307,-2.405189696706587e307,-2.415169736526946e307,-2.4251497763473053e307,-2.435129816167664e307,-2.445109855988024e307,-2.455089895808383e307,-2.4650699356287425e307,-2.475049975449102e307,-2.4850300152694614e307,-2.4950100550898203e307,-2.5049900949101797e307,-2.514970134730539e307,-2.524950174550898e307,-2.534930214371258e307,-2.5449102541916165e307,-2.5548902940119764e307,-2.5648703338323353e307,-2.574850373652694e307,-2.584830413473054e307,-2.5948104532934126e307,-2.6047904931137725e307,-2.614770532934132e307,-2.624750572754491e307,-2.6347306125748503e307,-2.64471065239521e307,-2.6546906922155687e307,-2.664670732035928e307,-2.674650771856288e307,-2.6846308116766465e307,-2.6946108514970064e307,-2.7045908913173653e307,-2.7145709311377243e307,-2.724550970958084e307,-2.7345310107784426e307,-2.7445110505988025e307,-2.7544910904191615e307,-2.764471130239521e307,-2.7744511700598803e307,-2.78443120988024e307,-2.7944112497005987e307,-2.804391289520958e307,-2.8143713293413175e307,-2.8243513691616765e307,-2.8343314089820364e307,-2.8443114488023953e307,-2.854291488622755e307,-2.8642715284431137e307,-2.8742515682634726e307,-2.8842316080838326e307,-2.8942116479041915e307,-2.904191687724551e307,-2.91417172754491e307,-2.92415176736527e307,-2.9341318071856287e307,-2.9441118470059876e307,-2.9540918868263476e307,-2.9640719266467065e307,-2.974051966467066e307,-2.9840320062874253e307,-2.994012046107785e307,-3.0039920859281437e307,-3.013972125748503e307,-3.023952165568862e307,-3.0339322053892215e307,-3.0439122452095814e307,-3.05389228502994e307,-3.0638723248503e307,-3.073852364670658e307,-3.083832404491018e307,-3.0938124443113776e307,-3.103792484131736e307,-3.113772523952096e307,-3.1237525637724554e307,-3.1337326035928143e307,-3.1437126434131737e307,-3.1536926832335336e307,-3.163672723053892e307,-3.1736527628742515e307,-3.183632802694611e307,-3.19361284251497e307,-3.20359288233533e307,-3.213572922155688e307,-3.223552961976048e307,-3.233533001796407e307,-3.243513041616766e307,-3.253493081437126e307,-3.263473121257485e307,-3.2734531610778443e307,-3.2834332008982037e307,-3.293413240718563e307,-3.303393280538922e307,-3.3133733203592815e307,-3.323353360179641e307,-3.3333334e307,-3.3433134398203593e307,-3.3532934796407187e307,-3.363273519461078e307,-3.373253559281437e307,-3.3832335991017965e307,-3.3932136389221554e307,-3.403193678742515e307,-3.4131737185628743e307,-3.423153758383233e307,-3.433133798203593e307,-3.443113838023952e307,-3.4530938778443115e307,-3.463073917664671e307,-3.47305395748503e307,-3.4830339973053893e307,-3.4930140371257487e307,-3.5029940769461077e307,-3.512974116766467e307,-3.522954156586827e307,-3.5329341964071855e307,-3.542914236227545e307,-3.552894276047904e307,-3.562874315868263e307,-3.572854355688623e307,-3.5828343955089816e307,-3.5928144353293415e307,-3.602794475149701e307,-3.61277451497006e307,-3.6227545547904193e307,-3.6327345946107787e307,-3.6427146344311377e307,-3.652694674251497e307,-3.6626747140718565e307,-3.6726547538922155e307,-3.6826347937125754e307,-3.692614833532934e307,-3.7025948733532933e307,-3.7125749131736527e307,-3.7225549529940116e307,-3.7325349928143715e307,-3.7425150326347305e307,-3.75249507245509e307,-3.7624751122754493e307,-3.7724551520958083e307,-3.7824351919161677e307,-3.792415231736527e307,-3.8023952715568865e307,-3.8123753113772455e307,-3.822355351197605e307,-3.8323353910179643e307,-3.8423154308383233e307,-3.8522954706586827e307,-3.8622755104790416e307,-3.872255550299401e307,-3.8822355901197605e307,-3.89221562994012e307,-3.902195669760479e307,-3.912175709580839e307,-3.9221557494011977e307,-3.9321357892215566e307,-3.9421158290419166e307,-3.9520958688622755e307,-3.962075908682635e307,-3.9720559485029943e307,-3.9820359883233533e307,-3.9920160281437127e307,-4.001996067964072e307,-4.011976107784431e307,-4.0219561476047905e307,-4.0319361874251494e307,-4.041916227245509e307,-4.051896267065869e307,-4.061876306886227e307,-4.0718563467065866e307,-4.0818363865269466e307,-4.091816426347305e307,-4.101796466167665e307,-4.1117765059880244e307,-4.1217565458083833e307,-4.1317365856287427e307,-4.1417166254491016e307,-4.151696665269461e307,-4.1616767050898205e307,-4.1716567449101794e307,-4.181636784730539e307,-4.1916168245508983e307,-4.201596864371257e307,-4.211576904191617e307,-4.221556944011976e307,-4.231536983832335e307,-4.241517023652695e307,-4.251497063473054e307,-4.2614771032934133e307,-4.2714571431137727e307,-4.281437182934132e307,-4.291417222754491e307,-4.30139726257485e307,-4.31137730239521e307,-4.321357342215569e307,-4.3313373820359283e307,-4.341317421856287e307,-4.3512974616766467e307,-4.361277501497006e307,-4.371257541317365e307,-4.3812375811377244e307,-4.391217620958084e307,-4.4011976607784433e307,-4.411177700598802e307,-4.421157740419162e307,-4.431137780239521e307,-4.44111782005988e307,-4.45109785988024e307,-4.4610778997005984e307,-4.4710579395209583e307,-4.4810379793413177e307,-4.4910180191616767e307,-4.500998058982036e307,-4.510978098802395e307,-4.520958138622754e307,-4.530938178443114e307,-4.540918218263473e307,-4.550898258083833e307,-4.560878297904192e307,-4.570858337724551e307,-4.58083837754491e307,-4.590818417365269e307,-4.600798457185629e307,-4.610778497005987e307,-4.620758536826348e307,-4.630738576646706e307,-4.640718616467066e307,-4.650698656287426e307,-4.660678696107784e307,-4.670658735928143e307,-4.680638775748503e307,-4.690618815568863e307,-4.700598855389221e307,-4.710578895209582e307,-4.72055893502994e307,-4.730538974850299e307,-4.740519014670659e307,-4.750499054491018e307,-4.760479094311377e307,-4.770459134131736e307,-4.780439173952097e307,-4.790419213772455e307,-4.800399253592814e307,-4.810379293413174e307,-4.820359333233532e307,-4.830339373053893e307,-4.840319412874252e307,-4.850299452694611e307,-4.86027949251497e307,-4.870259532335329e307,-4.880239572155689e307,-4.890219611976047e307,-4.900199651796407e307,-4.910179691616766e307,-4.920159731437126e307,-4.930139771257485e307,-4.940119811077844e307,-4.950099850898203e307,-4.960079890718563e307,-4.970059930538923e307,-4.980039970359281e307,-4.990020010179641e307,-5.00000005e307,-5.009980089820359e307,-5.019960129640719e307,-5.029940169461078e307,-5.039920209281437e307,-5.049900249101796e307,-5.059880288922156e307,-5.069860328742515e307,-5.079840368562874e307,-5.089820408383233e307,-5.099800448203593e307,-5.109780488023953e307,-5.119760527844311e307,-5.129740567664671e307,-5.13972060748503e307,-5.149700647305389e307,-5.159680687125749e307,-5.169660726946108e307,-5.179640766766467e307,-5.189620806586826e307,-5.199600846407187e307,-5.209580886227545e307,-5.2195609260479035e307,-5.229540965868263e307,-5.239521005688623e307,-5.249501045508982e307,-5.259481085329341e307,-5.269461125149701e307,-5.279441164970059e307,-5.28942120479042e307,-5.299401244610779e307,-5.309381284431137e307,-5.319361324251497e307,-5.329341364071857e307,-5.339321403892216e307,-5.349301443712575e307,-5.359281483532935e307,-5.369261523353293e307,-5.379241563173652e307,-5.389221602994013e307,-5.399201642814371e307,-5.40918168263473e307,-5.41916172245509e307,-5.42914176227545e307,-5.439121802095808e307,-5.449101841916168e307,-5.459081881736527e307,-5.469061921556886e307,-5.479041961377247e307,-5.489022001197605e307,-5.499002041017964e307,-5.508982080838323e307,-5.518962120658683e307,-5.528942160479042e307,-5.5389222002994e307,-5.548902240119761e307,-5.55888227994012e307,-5.568862319760479e307,-5.578842359580839e307,-5.588822399401197e307,-5.598802439221556e307,-5.608782479041917e307,-5.618762518862276e307,-5.628742558682634e307,-5.638722598502995e307,-5.648702638323353e307,-5.658682678143712e307,-5.668662717964073e307,-5.678642757784431e307,-5.68862279760479e307,-5.69860283742515e307,-5.70858287724551e307,-5.718562917065868e307,-5.728542956886227e307,-5.738522996706587e307,-5.748503036526946e307,-5.758483076347306e307,-5.768463116167665e307,-5.778443155988024e307,-5.788423195808384e307,-5.798403235628743e307,-5.808383275449102e307,-5.818363315269461e307,-5.82834335508982e307,-5.83832339491018e307,-5.84830343473054e307,-5.858283474550898e307,-5.868263514371257e307,-5.878243554191616e307,-5.888223594011976e307,-5.898203633832336e307,-5.908183673652694e307,-5.918163713473054e307,-5.928143753293414e307,-5.938123793113772e307,-5.948103832934132e307,-5.958083872754491e307,-5.96806391257485e307,-5.97804395239521e307,-5.98802399221557e307,-5.998004032035928e307,-6.007984071856287e307,-6.017964111676646e307,-6.027944151497006e307,-6.037924191317366e307,-6.047904231137724e307,-6.057884270958084e307,-6.067864310778444e307,-6.077844350598802e307,-6.087824390419162e307,-6.097804430239521e307,-6.10778447005988e307,-6.11776450988024e307,-6.1277445497006e307,-6.137724589520958e307,-6.147704629341316e307,-6.157684669161678e307,-6.167664708982036e307,-6.177644748802395e307,-6.187624788622754e307,-6.197604828443114e307,-6.207584868263473e307,-6.217564908083832e307,-6.227544947904192e307,-6.23752498772455e307,-6.24750502754491e307,-6.25748506736527e307,-6.267465107185629e307,-6.277445147005988e307,-6.287425186826347e307,-6.297405226646707e307,-6.307385266467066e307,-6.317365306287426e307,-6.327345346107784e307,-6.337325385928143e307,-6.347305425748504e307,-6.357285465568862e307,-6.367265505389221e307,-6.377245545209581e307,-6.387225585029941e307,-6.397205624850299e307,-6.40718566467066e307,-6.417165704491018e307,-6.427145744311376e307,-6.437125784131738e307,-6.447105823952096e307,-6.457085863772455e307,-6.467065903592814e307,-6.477045943413174e307,-6.487025983233533e307,-6.497006023053891e307,-6.506986062874252e307,-6.51696610269461e307,-6.52694614251497e307,-6.53692618233533e307,-6.546906222155689e307,-6.556886261976047e307,-6.566866301796407e307,-6.576846341616767e307,-6.586826381437125e307,-6.596806421257486e307,-6.606786461077844e307,-6.616766500898204e307,-6.626746540718564e307,-6.636726580538922e307,-6.646706620359281e307,-6.65668666017964e307,-6.666666700000001e307,-6.676646739820359e307,-6.686626779640719e307,-6.696606819461078e307,-6.706586859281436e307,-6.716566899101797e307,-6.726546938922156e307,-6.736526978742515e307,-6.746507018562874e307,-6.756487058383235e307,-6.766467098203593e307,-6.776447138023952e307,-6.786427177844311e307,-6.79640721766467e307,-6.806387257485031e307,-6.816367297305389e307,-6.826347337125749e307,-6.836327376946107e307,-6.846307416766466e307,-6.856287456586827e307,-6.866267496407185e307,-6.876247536227545e307,-6.886227576047904e307,-6.896207615868264e307,-6.906187655688623e307,-6.916167695508982e307,-6.926147735329341e307,-6.9361277751497e307,-6.946107814970061e307,-6.956087854790419e307,-6.966067894610779e307,-6.976047934431137e307,-6.986027974251497e307,-6.996008014071857e307,-7.005988053892215e307,-7.015968093712575e307,-7.025948133532934e307,-7.035928173353294e307,-7.045908213173653e307,-7.055888252994012e307,-7.065868292814371e307,-7.07584833263473e307,-7.085828372455091e307,-7.095808412275449e307,-7.105788452095808e307,-7.115768491916168e307,-7.125748531736527e307,-7.135728571556886e307,-7.145708611377246e307,-7.155688651197605e307,-7.165668691017963e307,-7.175648730838324e307,-7.185628770658683e307,-7.195608810479041e307,-7.205588850299401e307,-7.215568890119761e307,-7.22554892994012e307,-7.235528969760479e307,-7.245509009580839e307,-7.255489049401197e307,-7.265469089221557e307,-7.275449129041917e307,-7.285429168862275e307,-7.295409208682634e307,-7.305389248502994e307,-7.315369288323354e307,-7.325349328143712e307,-7.335329367964072e307,-7.345309407784431e307,-7.35528944760479e307,-7.365269487425151e307,-7.375249527245509e307,-7.385229567065868e307,-7.395209606886228e307,-7.405189646706588e307,-7.415169686526946e307,-7.425149726347305e307,-7.435129766167665e307,-7.445109805988024e307,-7.455089845808384e307,-7.465069885628743e307,-7.475049925449102e307,-7.48502996526946e307,-7.495010005089821e307,-7.50499004491018e307,-7.514970084730538e307,-7.524950124550899e307,-7.534930164371257e307,-7.544910204191617e307,-7.554890244011977e307,-7.564870283832335e307,-7.574850323652694e307,-7.584830363473055e307,-7.594810403293414e307,-7.604790443113772e307,-7.614770482934132e307,-7.624750522754491e307,-7.63473056257485e307,-7.64471060239521e307,-7.654690642215569e307,-7.664670682035928e307,-7.674650721856287e307,-7.684630761676648e307,-7.694610801497006e307,-7.704590841317365e307,-7.714570881137725e307,-7.724550920958084e307,-7.734530960778444e307,-7.744511000598802e307,-7.754491040419162e307,-7.764471080239521e307,-7.77445112005988e307,-7.78443115988024e307,-7.794411199700598e307,-7.804391239520958e307,-7.814371279341318e307,-7.824351319161677e307,-7.834331358982036e307,-7.844311398802395e307,-7.854291438622754e307,-7.864271478443114e307,-7.874251518263474e307,-7.884231558083832e307,-7.894211597904192e307,-7.904191637724551e307,-7.91417167754491e307,-7.92415171736527e307,-7.934131757185628e307,-7.944111797005988e307,-7.954091836826348e307,-7.964071876646707e307,-7.974051916467066e307,-7.984031956287425e307,-7.994011996107784e307,-8.003992035928144e307,-8.013972075748504e307,-8.023952115568862e307,-8.033932155389222e307,-8.043912195209582e307,-8.05389223502994e307,-8.063872274850299e307,-8.073852314670659e307,-8.083832354491018e307,-8.093812394311377e307,-8.103792434131738e307,-8.113772473952096e307,-8.123752513772454e307,-8.133732553592814e307,-8.143712593413174e307,-8.153692633233533e307,-8.163672673053892e307,-8.173652712874252e307,-8.183632752694611e307,-8.19361279251497e307,-8.20359283233533e307,-8.213572872155688e307,-8.223552911976048e307,-8.233532951796408e307,-8.243512991616767e307,-8.253493031437125e307,-8.263473071257485e307,-8.273453111077844e307,-8.283433150898203e307,-8.293413190718564e307,-8.303393230538922e307,-8.313373270359281e307,-8.323353310179642e307,-8.33333335e307,-8.343313389820359e307,-8.353293429640719e307,-8.363273469461078e307,-8.373253509281437e307,-8.383233549101797e307,-8.393213588922156e307,-8.403193628742514e307,-8.413173668562875e307,-8.423153708383234e307,-8.433133748203593e307,-8.443113788023951e307,-8.453093827844312e307,-8.463073867664671e307,-8.473053907485029e307,-8.48303394730539e307,-8.493013987125748e307,-8.502994026946107e307,-8.512974066766468e307,-8.522954106586827e307,-8.532934146407185e307,-8.542914186227545e307,-8.552894226047905e307,-8.562874265868263e307,-8.572854305688623e307,-8.582834345508982e307,-8.592814385329341e307,-8.602794425149701e307,-8.61277446497006e307,-8.622754504790419e307,-8.632734544610778e307,-8.642714584431139e307,-8.652694624251497e307,-8.662674664071857e307,-8.672654703892216e307,-8.682634743712574e307,-8.692614783532935e307,-8.702594823353293e307,-8.712574863173653e307,-8.722554902994012e307,-8.732534942814371e307,-8.742514982634731e307,-8.75249502245509e307,-8.762475062275449e307,-8.772455102095808e307,-8.782435141916168e307,-8.792415181736527e307,-8.802395221556887e307,-8.812375261377245e307,-8.822355301197604e307,-8.832335341017965e307,-8.842315380838323e307,-8.852295420658683e307,-8.862275460479042e307,-8.872255500299402e307,-8.882235540119761e307,-8.892215579940119e307,-8.902195619760479e307,-8.912175659580838e307,-8.922155699401198e307,-8.932135739221557e307,-8.942115779041917e307,-8.952095818862275e307,-8.962075858682634e307,-8.972055898502995e307,-8.982035938323353e307,-8.992015978143713e307,-9.001996017964071e307,-9.011976057784432e307,-9.02195609760479e307,-9.03193613742515e307,-9.041916177245509e307,-9.051896217065867e307,-9.061876256886228e307,-9.071856296706586e307,-9.081836336526947e307,-9.091816376347305e307,-9.101796416167663e307,-9.111776455988024e307,-9.121756495808384e307,-9.131736535628743e307,-9.141716575449101e307,-9.151696615269462e307,-9.16167665508982e307,-9.17165669491018e307,-9.181636734730539e307,-9.191616774550897e307,-9.201596814371258e307,-9.211576854191616e307,-9.221556894011977e307,-9.231536933832337e307,-9.241516973652695e307,-9.251497013473054e307,-9.261477053293412e307,-9.271457093113773e307,-9.281437132934131e307,-9.29141717275449e307,-9.30139721257485e307,-9.31137725239521e307,-9.321357292215569e307,-9.33133733203593e307,-9.341317371856288e307,-9.351297411676646e307,-9.361277451497007e307,-9.371257491317365e307,-9.381237531137723e307,-9.391217570958084e307,-9.401197610778442e307,-9.411177650598803e307,-9.421157690419163e307,-9.431137730239522e307,-9.44111777005988e307,-9.45109780988024e307,-9.461077849700599e307,-9.471057889520957e307,-9.481037929341316e307,-9.491017969161676e307,-9.500998008982037e307,-9.510978048802397e307,-9.520958088622756e307,-9.530938128443114e307,-9.540918168263472e307,-9.550898208083833e307,-9.560878247904191e307,-9.57085828772455e307,-9.58083832754491e307,-9.59081836736527e307,-9.600798407185629e307,-9.610778447005987e307,-9.620758486826348e307,-9.630738526646706e307,-9.640718566467067e307,-9.650698606287425e307,-9.660678646107784e307,-9.670658685928142e307,-9.680638725748504e307,-9.690618765568863e307,-9.700598805389223e307,-9.710578845209582e307,-9.72055888502994e307,-9.730538924850299e307,-9.740518964670657e307,-9.750499004491017e307,-9.760479044311378e307,-9.770459084131738e307,-9.780439123952097e307,-9.790419163772455e307,-9.800399203592814e307,-9.810379243413174e307,-9.820359283233534e307,-9.830339323053893e307,-9.840319362874251e307,-9.85029940269461e307,-9.860279442514968e307,-9.87025948233533e307,-9.88023952215569e307,-9.89021956197605e307,-9.900199601796408e307,-9.910179641616766e307,-9.920159681437125e307,-9.930139721257483e307,-9.940119761077844e307,-9.950099800898204e307,-9.960079840718564e307,-9.970059880538923e307,-9.980039920359281e307,-9.99001996017964e307,-1.0e308]} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/huge_positive.json b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/huge_positive.json new file mode 100644 index 000000000000..c29f87a25b44 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/huge_positive.json @@ -0,0 +1 @@ +{"expected":[1.0e-300,1.0019899700803996e-305,5.00997495012525e-306,3.3399888778370363e-306,2.5049937500405933e-306,2.003996004031968e-306,1.6699972278046017e-306,1.4314265367579942e-306,1.2524984437706837e-306,1.113332104956911e-306,1.0019990060169862e-306,9.109082702635492e-307,8.349993111255683e-307,7.707686443921621e-307,7.157137806248462e-307,6.679995604562892e-307,6.2624961407367526e-307,5.894114231939694e-307,5.566663623557219e-307,5.2736814820900544e-307,5.009997540091208e-307,4.7714263424908375e-307,4.554543425703383e-307,4.3565198847682755e-307,4.174998298688193e-307,4.007998433674212e-307,3.853844707172141e-307,3.711109770988138e-307,3.578570183740229e-307,3.4551712545235752e-307,3.3399989178403507e-307,3.232257052089807e-307,3.1312490508401315e-307,3.0363627447771213e-307,2.947057984484668e-307,2.8628563518908304e-307,2.7833325864724224e-307,2.708107401804421e-307,2.6368414363381198e-307,2.5692301348285587e-307,2.504999397547645e-307,2.4439018661976355e-307,2.385713740408288e-307,2.330232038443599e-307,2.277272231448455e-307,2.2266661931289897e-307,2.1782604168658787e-307,2.131914460430147e-307,2.0874995851094575e-307,2.044897561471964e-307,2.0039996184384724e-307,1.964705515993148e-307,1.9269227248891176e-307,1.8905656992175756e-307,1.855555229802526e-307,1.8218178681342688e-307,1.7892854120242857e-307,1.7578944454017103e-307,1.7275859257170491e-307,1.698304813304841e-307,1.6699997378100412e-307,1.6426226974249252e-307,1.616128787232087e-307,1.5904759534195363e-307,1.5656247705381197e-307,1.5415382393197954e-307,1.5181816028760636e-307,1.4955221793562331e-307,1.473529209371135e-307,1.4521737166843367e-307,1.4314283808441068e-307,1.4112674205788777e-307,1.3916664869097454e-307,1.372602565048249e-307,1.3540538842483777e-307,1.3359998348704203e-307,1.3184208919924018e-307,1.301298544973876e-307,1.284615232437888e-307,1.2683542821910123e-307,1.2524998556493915e-307,1.2370368963813603e-307,1.2219510824152443e-307,1.207228781994789e-307,1.1928570124949122e-307,1.1788234022375224e-307,1.165116154971349e-307,1.1517240168014396e-307,1.1386362453734627e-307,1.1258425811354745e-307,1.113333220515567e-307,1.101098790868022e-307,1.0891303270534132e-307,1.077419249529667e-307,1.0659573438415672e-307,1.0547367414056605e-307,1.043749901496103e-307,1.0329895943447855e-307,1.0224488852761436e-307,1.0121211198034978e-307,1.0019999096196082e-307,9.920791194194766e-308,9.823528544982776e-308,9.72815449071739e-308,9.634614552703473e-308,9.542856327624561e-308,9.452829389647628e-308,9.36448519801736e-308,9.277777009784014e-308,9.192659797335304e-308,9.109090170426505e-308,9.027026302425184e-308,8.946427860507073e-308,8.867255939558361e-308,8.789472999556839e-308,8.713042806220088e-308,8.637930374723593e-308,8.564101916305111e-308,8.491524787584075e-308,8.420167442436314e-308,8.349999386275046e-308,8.280991132598911e-308,8.213114161677011e-308,8.146340881249297e-308,8.080644589128552e-308,8.015999437597481e-308,7.952380399501172e-308,7.889763235941509e-308,7.828124465485877e-308,7.76744133480804e-308,7.707691790684059e-308,7.648854453270821e-308,7.590908590599206e-308,7.533834094217909e-308,7.477611455927855e-308,7.422221745550648e-308,7.367646589677798e-308,7.31386815135066e-308,7.260869110623848e-308,7.208632645967626e-308,7.157142416467375e-308,7.106382544780471e-308,7.056337600813356e-308,7.006992586083451e-308,6.958332918732664e-308,6.910344419161023e-308,6.863013296250727e-308,6.816326134152458e-308,6.7702698796074e-308,6.724831829779762e-308,6.679999620576021e-308,6.635761215428291e-308,6.59210489452045e-308,6.549019244436774e-308,6.506493148213884e-308,6.464515775777751e-308,6.423076574748541e-308,6.382165261596838e-308,6.341771813135733e-308,6.301886458333944e-308,6.262499670435954e-308,6.223602159375813e-308,6.185184864471896e-308,6.147238947390584e-308,6.109755785367356e-308,6.072726964674396e-308,6.0361442743243e-308,5.999999700000014e-308,5.964285418201545e-308,5.928993790600483e-308,5.894117358593786e-308,5.859648838048644e-308,5.825581114230679e-308,5.79190723690803e-308,5.758620415624269e-308,5.7257140151334e-308,5.693181550990457e-308,5.661016685291594e-308,5.629213222557771e-308,5.597765105756387e-308,5.566666412455567e-308,5.535911351105899e-308,5.5054942574447635e-308,5.475409591018554e-308,5.445651931818299e-308,5.416215977024408e-308,5.38709653785641e-308,5.358288536523788e-308,5.329787003274116e-308,5.301587073534906e-308,5.273683985145715e-308,5.24607307567721e-308,5.218749779833993e-308,5.191709626938183e-308,5.164948238490815e-308,5.138461325808293e-308,5.112244687731162e-308,5.086294208402699e-308,5.060605855114792e-308,5.03517567621879e-308,5.009999799099008e-308,4.985074428206736e-308,4.960395843152641e-308,4.935960396855549e-308,4.911764513745683e-308,4.887804688020471e-308,4.86407748195118e-308,4.840579524238613e-308,4.817307508416242e-308,4.794258191299199e-308,4.771428391477558e-308,4.748814987852481e-308,4.726414918213783e-308,4.704225177857575e-308,4.682242818242647e-308,4.660464945684376e-308,4.638888720084883e-308,4.617511353698322e-308,4.596330109930147e-308,4.575342302169268e-308,4.554545292652072e-308,4.533936491357268e-308,4.513513354930611e-308,4.493273385638567e-308,4.473214130349974e-308,4.453333179544894e-308,4.433628166349759e-308,4.414096765598018e-308,4.3947366929155173e-308,4.375545703829833e-308,4.3565215929028397e-308,4.33766219288582e-308,4.318965373896408e-308,4.30042904261674e-308,4.2820511415121674e-308,4.263829648069901e-308,4.245762574057028e-308,4.2278479647973124e-308,4.2100838984662143e-308,4.1924684854036216e-308,4.1749998674437533e-308,4.157676217261759e-308,4.140495737736498e-308,4.1234566613290697e-308,4.106557249476624e-308,4.089795792001003e-308,4.0731706065318306e-308,4.056680037943586e-308,4.040322457806325e-308,4.024096263849619e-308,4.0079998794393636e-308,3.992031753067098e-308,3.976190357851477e-308,3.9604741910515745e-308,3.9448817735916697e-308,3.929411649597236e-308,3.9140623859417754e-308,3.8988325718042696e-308,3.8837208182368887e-308,3.8687257577427317e-308,3.8538460438633175e-308,3.839080350775535e-308,3.8244273728978524e-308,3.8098858245054897e-308,3.795454439354342e-308,3.781131970313424e-308,3.7669171890056e-308,3.7528088854563846e-308,3.7388058677506147e-308,3.7249069616967734e-308,3.7111110104987674e-308,3.6974168744349913e-308,3.6838234305444453e-308,3.6703295723197703e-308,3.656934209407004e-308,3.64363626731187e-308,3.6304346871124793e-308,3.617328425178227e-308,3.60431645289478e-308,3.591397756394961e-308,3.578571336295411e-308,3.5658362074388647e-308,3.5531913986419215e-308,3.5406359524481537e-308,3.528168924886433e-308,3.515789385234351e-308,3.503496415786593e-308,3.4912891116281635e-308,3.479166580412329e-308,3.4671279421431755e-308,3.4551723289626655e-308,3.4432988849420786e-308,3.4315067658777466e-308,3.419795139090964e-308,3.408163183231989e-308,3.396610088088023e-308,3.3851350543950894e-308,3.373737293653711e-308,3.3624160279482924e-308,3.351170489770138e-308,3.339999921844001e-308,3.328903576958093e-308,3.3178807177974665e-308,3.30693061678071e-308,3.296052555899846e-308,3.285245826563398e-308,3.274509729442524e-308,3.263843574320153e-308,3.2532466799430788e-308,3.2427183738768986e-308,3.232257992363789e-308,3.221864880183003e-308,3.2115383905140545e-308,3.201277884802541e-308,3.191082732628506e-308,3.1809523115773256e-308,3.1708860071130436e-308,3.160883212454101e-308,3.150943328451408e-308,3.141065763468717e-308,3.131249933265236e-308,3.1214952608804274e-308,3.111801176520969e-308,3.1021671174497994e-308,3.0925925278772306e-308,3.083076858854061e-308,3.0736195681666615e-308,3.0642201202339883e-308,3.054877986006471e-308,3.0455926428667523e-308,3.0363635745322323e-308,3.0271902709593756e-308,3.018072228249747e-308,3.009008948557748e-308,2.999999940000001e-308,2.9910447165663635e-308,2.9821427980325266e-308,2.9732937098741745e-308,2.964496983182663e-308,2.955752154582192e-308,2.9470587661484442e-308,2.9384163653286446e-308,2.929824504863036e-308,2.921282742707717e-308,2.91279064195883e-308,2.904347770778073e-308,2.8959537023194904e-308,2.887608014657543e-308,2.87931029071641e-308,2.871060118200508e-308,2.862857089526205e-308,2.8547008017546946e-308,2.846590856526021e-308,2.8385268599942223e-308,2.8305084227635747e-308,2.8225351598259085e-308,2.814606690498991e-308,2.8067226383659357e-308,2.7988826312156305e-308,2.791086300984165e-308,2.783333283697223e-308,2.775623219413449e-308,2.767955752168738e-308,2.760330529921454e-308,2.7527472044985515e-308,2.7452054315425793e-308,2.7377048704595547e-308,2.730245184367692e-308,2.7228260400469645e-308,2.715447107889484e-308,2.708108061850695e-308,2.700808579401342e-308,2.69354834148023e-308,2.6863270324477296e-308,2.679144340040036e-308,2.6719999553241606e-308,2.6648935726536335e-308,2.657824889624919e-308,2.6507936070345184e-308,2.6437994288367534e-308,2.6368420621022165e-308,2.629921216976874e-308,2.6230366066418144e-308,2.6161879472736203e-308,2.6093749580053715e-308,2.602597360888245e-308,2.595854880853715e-308,2.5891472456763426e-308,2.5824741859371356e-308,2.5758354349874777e-308,2.56923072891361e-308,2.562659806501659e-308,2.5561224092031967e-308,2.549618281101335e-308,2.543147168877323e-308,2.5367088217776644e-308,2.5303029915817267e-308,2.523929432569841e-308,2.517587901491882e-308,2.511278157536323e-308,2.5049999622997503e-308,2.4987530797568427e-308,2.492537276230787e-308,2.486352320364143e-308,2.480197983090139e-308,2.47407403760439e-308,2.4679802593370384e-308,2.4619164259253005e-308,2.4558823171864193e-308,2.4498777150910146e-308,2.443902403736824e-308,2.4379561693228197e-308,2.432038800123716e-308,2.426150086464833e-308,2.420289820697333e-308,2.414457797173814e-308,2.408653812224252e-308,2.4028776641322914e-308,2.39712915311188e-308,2.3914080812842266e-308,2.3857142526551025e-308,2.380047473092457e-308,2.374407550304351e-308,2.368794293817213e-308,2.363207514954388e-308,2.3576470268150036e-308,2.352112644253125e-308,2.3466041838572035e-308,2.3411214639298196e-308,2.3356643044677006e-308,2.330232527142023e-308,2.324825955278988e-308,2.3194444138406636e-308,2.314087729406099e-308,2.30875573015269e-308,2.303448245837813e-308,2.2981651077807007e-308,2.2929061488445773e-308,2.2876712034190284e-308,2.2824601074026186e-308,2.277272698185744e-308,2.2721088146337177e-308,2.266968297070085e-308,2.2618509872601644e-308,2.256756728394814e-308,2.2516853650744104e-308,2.2466367432930486e-308,2.2416107104229543e-308,2.2366071151990995e-308,2.2316258077040293e-308,2.226666639352889e-308,2.221729462878649e-308,2.216814132317527e-308,2.2119205029946057e-308,2.207048431509636e-308,2.202197775723029e-308,2.197368394742036e-308,2.192560148907105e-308,2.1877728997784183e-308,2.183006510122603e-308,2.178260843899622e-308,2.1735357662498296e-308,2.1688311434811946e-308,2.164146843056692e-308,2.15948273358186e-308,2.154838684792508e-308,2.150214567542596e-308,2.1456102537922593e-308,2.14102561659599e-308,2.136460530090971e-308,2.131914869485559e-308,2.127388511047913e-308,2.1228813320947644e-308,2.118393210980338e-308,2.113924027085403e-308,2.109473660806471e-308,2.105041993545124e-308,2.1006289076974807e-308,2.0962342866437917e-308,2.091858014738168e-308,2.087499977298438e-308,2.083160060596125e-308,2.078838151846559e-308,2.0745341391991053e-308,2.070247911727512e-308,2.0659793594203845e-308,2.061728373171773e-308,2.0574948447718716e-308,2.0532786668978436e-308,2.0490797331047463e-308,2.044897937816577e-308,2.040733176317421e-308,2.036585344742713e-308,2.0324543400706034e-308,2.028340060113426e-308,2.0242424035092747e-308,2.0201612697136775e-308,2.0160965589913726e-308,2.0120481724081867e-308,2.008016011823005e-308,2.00399997987984e-308,1.99999998e-308,1.9960159163743435e-308,1.99204769395563e-308,1.9880952184509637e-308,1.9841583963143224e-308,1.9802371347391775e-308,1.976331341651203e-308,1.9724409257010665e-308,1.9685657962573096e-308,1.964705863399308e-308,1.9608610379103175e-308,1.957031231270599e-308,1.953216355650628e-308,1.949416323904374e-308,1.945631049562673e-308,1.9418604468266634e-308,1.9381044305613027e-308,1.934362916288964e-308,1.9306358201831005e-308,1.9269230590619823e-308,1.9232245503825136e-308,1.919540212234113e-308,1.9158699633326637e-308,1.9122137230145394e-308,1.908571411230694e-308,1.9049429485408204e-308,1.901328256107573e-308,1.8977272556908577e-308,1.89413986964219e-308,1.89056602089911e-308,1.887005632979667e-308,1.8834586299769636e-308,1.879924936553756e-308,1.876404477937129e-308,1.872897179913215e-308,1.8694029688219815e-308,1.8659217715520737e-308,1.862453515535717e-308,1.8589981287436713e-308,1.855555539680247e-308,1.8521256773783744e-308,1.8487084713947253e-308,1.84530385180489e-308,1.8419117491986103e-308,1.838532094675061e-308,1.8351648198381836e-308,1.831809856792075e-308,1.828467138136422e-308,1.825136596961987e-308,1.821818166846149e-308,1.818511781848479e-308,1.81521737650638e-308,1.8119348858307633e-308,1.8086642453017767e-308,1.8054053908645733e-308,1.8021582589251333e-308,1.7989227863461284e-308,1.795698910442826e-308,1.7924865689790417e-308,1.789285700163138e-308,1.7860962426440567e-308,1.7829181355074023e-308,1.779751318271566e-308,1.7765957308838843e-308,1.773451313716845e-308,1.7703180075643347e-308,1.767195753637916e-308,1.764084493563157e-308,1.7609841693759904e-308,1.757894723519114e-308,1.7548160988384283e-308,1.751748238579515e-308,1.7486910863841454e-308,1.7456445862868314e-308,1.74260868271141e-308,1.739583320467665e-308,1.7365684447479795e-308,1.733564001124029e-308,1.730569935543505e-308,1.7275861943268725e-308,1.724612724164166e-308,1.721649472111808e-308,1.718696385589472e-308,1.7157534123769707e-308,1.712820500611177e-308,1.7098975987829795e-308,1.7069846557342654e-308,1.7040816206549357e-308,1.7011884430799524e-308,1.698305072886412e-308,1.695431460290654e-308,1.692567555845394e-308,1.6897133104368846e-308,1.686868675282114e-308,1.6840336019260225e-308,1.681208042238751e-308,1.678391948412919e-308,1.675585272960929e-308,1.6727879687122944e-308,1.669999988811e-308,1.667221286712883e-308,1.6644518161830446e-308,1.6616915312932853e-308,1.6589403864195647e-308,1.6561983362394917e-308,1.653465335729831e-308,1.6507413401640394e-308,1.648026305109829e-308,1.6453201864267516e-308,1.6426229402638e-308,1.639934523057047e-308,1.6372548915272973e-308,1.634584002677762e-308,1.6319218137917645e-308,1.629268282430458e-308,1.6266233664305746e-308,1.6239870239021877e-308,1.621359213226506e-308,1.6187398930536773e-308,1.6161290223006247e-308,1.613526560148895e-308,1.610932466042535e-308,1.6083466996859807e-308,1.6057692210419746e-308,1.603199990329498e-308,1.6006389680217213e-308,1.5980861148439823e-308,1.595541391771776e-308,1.5930047600287637e-308,1.5904761810848073e-308,1.587955616654017e-308,1.5854430286928176e-308,1.582938379398037e-308,1.5804416312050074e-308,1.5779527467856905e-308,1.5754716890468137e-308,1.572998421128031e-308,1.5705329064000946e-308,1.5680751084630474e-308,1.5656249911444336e-308,1.5631825184975214e-308,1.5607476547995455e-308,1.5583203645499687e-308,1.5559006124687516e-308,1.5534883634946456e-308,1.551083582783502e-308,1.54868623570659e-308,1.546296287848937e-308,1.5439137050076805e-308,1.541538453190438e-308,1.539170498613689e-308,1.5368098077011743e-308,1.5344563470823083e-308,1.532110083590607e-308,1.529770984262129e-308,1.5274390163339346e-308,1.5251141472425513e-308,1.522796344622463e-308,1.5204855763046044e-308,1.5181818103148763e-308,1.5158850148726657e-308,1.51359515838939e-308,1.5113122094670463e-308,1.5090361368967734e-308,1.5067669096574366e-308,1.5045044969142117e-308,1.502248868017191e-308,1.4999999925e-308,1.497757840078425e-308,1.4955223806490533e-308,1.493293584287926e-308,1.491071421249203e-308,1.48885586196384e-308,1.486646877038276e-308,1.484444437253136e-308,1.4822485135619374e-308,1.4800590770898194e-308,1.4778760991322734e-308,1.475699551153889e-308,1.473529404787111e-308,1.471365631831008e-308,1.469208204250049e-308,1.467057094172896e-308,1.4649122738911973e-308,1.462773715858405e-308,1.4606413926885907e-308,1.4585152771552793e-308,1.456395342190289e-308,1.454281560882582e-308,1.4521739064771267e-308,1.4500723523737696e-308,1.4479768721261153e-308,1.4458874394404154e-308,1.443804028174472e-308,1.441726612336546e-308,1.4396551660842747e-308,1.4375896637236036e-308,1.43553007970772e-308,1.433476388636004e-308,1.4314285652529797e-308,1.4293865844472844e-308,1.427350421250639e-308,1.4253200508368324e-308,1.4232954485207094e-308,1.4212765897571753e-308,1.4192634501401986e-308,1.417256005401831e-308,1.4152542314112326e-308,1.4132581041737005e-308,1.411267599829716e-308,1.4092826946539907e-308,1.407303365054523e-308,1.4053295875716655e-308,1.403361338877198e-308,1.401398595773407e-308,1.3994413351921755e-308,1.3974895341940795e-308,1.39554316996749e-308,1.393602219827685e-308,1.391666661215972e-308,1.389736471698808e-308,1.3878116289669357e-308,1.385892110834524e-308,1.383977895238317e-308,1.3820689602367847e-308,1.380165284009289e-308,1.3782668448552495e-308,1.376373621193319e-308,1.374485591560568e-308,1.372602734611672e-308,1.370725029118106e-308,1.3688524539673474e-308,1.366984988162088e-308,1.3651226108194434e-308,1.363265301170179e-308,1.3614130385579365e-308,1.3595658024384674e-308,1.357723572378875e-308,1.3558863280568593e-308,1.354054049259971e-308,1.3522267158848695e-308,1.3504043079365886e-308,1.3485868055278063e-308,1.346774188878122e-308,1.344966438313337e-308,1.343163534264747e-308,1.341365457268431e-308,1.339572187964554e-308,1.337783707096672e-308,1.33599999551104e-308,1.334221034155932e-308,1.332446804080961e-308,1.330677286436406e-308,1.3289124624725427e-308,1.327152313538985e-308,1.325396821084026e-308,1.323645966653986e-308,1.3218997318925653e-308,1.3201580985402055e-308,1.3184210484334486e-308,1.316688563504311e-308,1.3149606257796515e-308,1.3132372173805543e-308,1.31151832052171e-308,1.3098039175108033e-308,1.308093990747909e-308,1.306388522724885e-308,1.3046874960247803e-308,1.302990893321237e-308,1.301298697377905e-308,1.2996108910478584e-308,1.297927457273014e-308,1.296248379083559e-308,1.2945736395973798e-308,1.292903222019496e-308,1.2912371096415e-308,1.289575285840998e-308,1.2879177340810594e-308,1.286264437909667e-308,1.2846153809591717e-308,1.2829705469457557e-308,1.281329919668893e-308,1.279693483010819e-308,1.278061220936003e-308,1.276433117490624e-308,1.274809156802051e-308,1.2731893230783266e-308,1.2715736006076554e-308,1.2699619737578974e-308,1.2683544269760615e-308,1.266750944787807e-308,1.265151511796947e-308,1.263556112684953e-308,1.26196473221047e-308,1.260377355208829e-308,1.2587939665915633e-308,1.257214551345935e-308,1.2556390945344565e-308,1.2540675812944217e-308,1.2524999968374376e-308,1.2509363264489614e-308,1.249376555487839e-308,1.247820669385849e-308,1.2462686536472487e-308,1.244720493848324e-308,1.243176175636941e-308,1.241635684732107e-308,1.2400990069235247e-308,1.238566128071159e-308,1.237037034104801e-308,1.235511711023641e-308,1.233990144895836e-308,1.23247232185809e-308,1.230958228115232e-308,1.2294478499397945e-308,1.2279411736716045e-308,1.2264381857173676e-308,1.22493887255026e-308,1.2234432207095225e-308,1.2219512168000596e-308,1.2204628474920366e-308,1.218978099520486e-308,1.2174969596849095e-308,1.21601941484889e-308,1.2145454519397024e-308,1.2130750579479274e-308,1.2116082199270683e-308,1.2101449249931734e-308,1.208685160324457e-308,1.2072289131609233e-308,1.2057761708039983e-308,1.204326920616159e-308,1.2028811500205655e-308,1.2014388465006987e-308,1.1999999976e-308,1.1985645909215105e-308,1.1971326141275163e-308,1.195704054939195e-308,1.194278901136264e-308,1.1928571405566327e-308,1.1914387610960567e-308,1.1900237507077936e-308,1.188612097402262e-308,1.1872037892467035e-308,1.185798814364847e-308,1.1843971609365726e-308,1.182998817197582e-308,1.1816037714390685e-308,1.1802120120073916e-308,1.178823527303751e-308,1.177438305783864e-308,1.1760563359576477e-308,1.174677606388898e-308,1.17330210569498e-308,1.1719298225465065e-308,1.1705607456670344e-308,1.169194863832751e-308,1.16783216587217e-308,1.1664726406658254e-308,1.165116277145971e-308,1.1637630642962766e-308,1.1624129911515335e-308,1.161066046797356e-308,1.159722220369888e-308,1.1583815010555113e-308,1.1570438780905543e-308,1.155709340761006e-308,1.1543778784022277e-308,1.15304948039867e-308,1.151724136183591e-308,1.1504018352387757e-308,1.1490825670942577e-308,1.147766321328043e-308,1.1464530875658355e-308,1.145142855480764e-308,1.143835614793113e-308,1.142531355270052e-308,1.14123006672537e-308,1.1399317390192083e-308,1.1386363620577996e-308,1.137343925793205e-308,1.136054420223055e-308,1.1347678353902903e-308,1.1334841613829056e-308,1.132203388333697e-308,1.130925506420007e-308,1.129650505863475e-308,1.1283783769297847e-308,1.1271091099284216e-308,1.125842695212423e-308,1.124579123178134e-308,1.1233183842649663e-308,1.122060468955156e-308,1.120805367773524e-308,1.1195530712872384e-308,1.1183035701055785e-308,1.117056854879699e-308,1.1158129163023993e-308,1.1145717451078875e-308,1.113333332071556e-308,1.1120976680097463e-308,1.1108647437795293e-308,1.1096345502784735e-308,1.108407078444426e-308,1.1071823192552853e-308,1.105960263728784e-308,1.1047409029222673e-308,1.103524227932475e-308,1.102310229895326e-308,1.1010988999857023e-308,1.0998902294172336e-308,1.098684209442088e-308,1.097480831350758e-308,1.0962800864718526e-308,1.0950819661718893e-308,1.093886461855085e-308,1.092693564963152e-308,1.091503266975095e-308,1.0903155594070055e-308,1.089130433811862e-308,1.087947881779329e-308,1.0867678949355593e-308,1.085590464942994e-308,1.0844155835001687e-308,1.083243242341516e-308,1.082073433237175e-308,1.080906147992794e-308,1.079741378449344e-308,1.0785791164829246e-308,1.0774193540045787e-308,1.076262082960101e-308,1.075107295329855e-308,1.073954983128586e-308,1.0728051384052385e-308,1.071657753242769e-308,1.0705128197579715e-308,1.0693703301012906e-308,1.0682302764566444e-308,1.0670926510412475e-308,1.065957446105432e-308,1.0648246539324727e-308,1.0636942668384114e-308,1.062566277171883e-308,1.0614406773139453e-308,1.060317459677904e-308,1.0591966167091437e-308,1.0580781408849597e-308,1.0569620247143887e-308,1.0558482607380404e-308,1.054736841527934e-308,1.053627759687329e-308,1.052521007850567e-308,1.051416578682902e-308,1.050314464880345e-308,1.0492146591694965e-308,1.0481171543073914e-308,1.047021943081338e-308,1.045929018308759e-308,1.0448383728370384e-308,1.0437499995433595e-308,1.0426638913345555e-308,1.041580041146952e-308,1.040498441946216e-308,1.0394190867272e-308,1.0383419685137966e-308,1.0372670803587824e-308,1.0361944153436733e-308,1.035123966578572e-308,1.0340557272020247e-308,1.0329896903808694e-308,1.0319258493100955e-308,1.030864197212696e-308,1.0298047273395236e-308,1.028747432969149e-308,1.027692307407716e-308,1.0266393439888054e-308,1.0255885360732884e-308,1.024539877049193e-308,1.0234933603315593e-308,1.022448979362307e-308,1.0214067276100966e-308,1.0203665985701904e-308,1.019328585764321e-308,1.018292682740556e-308,1.0172588830731634e-308,1.0162271803624785e-308,1.0151975682347726e-308,1.014170040342122e-308,1.0131445903622763e-308,1.0121212119985305e-308,1.011099898979595e-308,1.010080645059468e-308,1.0090634440173054e-308,1.0080482896573e-308,1.0070351758085504e-308,1.006024096324938e-308,1.005015045085004e-308,1.0040080159918234e-308,1.0030030029728826e-308,1.00199999997996e-308,1.000999000989001e-308,1.0e-308],"x":[1.0e300,9.98013982035928e304,1.996017964071856e305,2.9940219461077846e305,3.992025928143713e305,4.99002991017964e305,5.988033892215569e305,6.986037874251497e305,7.984041856287425e305,8.982045838323353e305,9.98004982035928e305,1.097805380239521e306,1.1976057784431138e306,1.2974061766467066e306,1.3972065748502995e306,1.4970069730538922e306,1.5968073712574852e306,1.696607769461078e306,1.7964081676646707e306,1.8962085658682634e306,1.9960089640718562e306,2.095809362275449e306,2.195609760479042e306,2.2954101586826347e306,2.3952105568862274e306,2.4950109550898204e306,2.5948113532934132e306,2.694611751497006e306,2.794412149700599e306,2.894212547904192e306,2.9940129461077844e306,3.0938133443113774e306,3.19361374251497e306,3.293414140718563e306,3.3932145389221553e306,3.493014937125749e306,3.5928153353293414e306,3.6926157335329344e306,3.792416131736527e306,3.89221652994012e306,3.9920169281437123e306,4.091817326347306e306,4.1916177245508984e306,4.291418122754491e306,4.391218520958084e306,4.491018919161676e306,4.5908193173652693e306,4.6906197155688624e306,4.7904201137724554e306,4.890220511976048e306,4.990020910179641e306,5.089821308383233e306,5.1896217065868263e306,5.2894221047904194e306,5.3892225029940124e306,5.489022901197605e306,5.588823299401198e306,5.688623697604791e306,5.788424095808384e306,5.888224494011976e306,5.988024892215569e306,6.08782529041916e306,6.187625688622755e306,6.287426086826348e306,6.38722648502994e306,6.487026883233533e306,6.586827281437126e306,6.686627679640719e306,6.786428077844312e306,6.886228476047904e306,6.986028874251498e306,7.08582927245509e306,7.185629670658683e306,7.285430068862275e306,7.385230467065869e306,7.485030865269462e306,7.584831263473054e306,7.684631661676647e306,7.784432059880239e306,7.884232458083833e306,7.984032856287426e306,8.083833254491018e306,8.183633652694611e306,8.283434050898204e306,8.383234449101797e306,8.483034847305389e306,8.582835245508982e306,8.682635643712576e306,8.782436041916168e306,8.882236440119761e306,8.982036838323353e306,9.081837236526947e306,9.18163763473054e306,9.28143803293413e306,9.381238431137725e306,9.481038829341318e306,9.580839227544911e306,9.680639625748501e306,9.780440023952096e306,9.88024042215569e306,9.980040820359282e306,1.0079841218562874e307,1.0179641616766467e307,1.0279442014970061e307,1.0379242413173654e307,1.0479042811377244e307,1.0578843209580839e307,1.0678643607784432e307,1.0778444005988024e307,1.0878244404191615e307,1.097804480239521e307,1.1077845200598804e307,1.1177645598802395e307,1.1277445997005988e307,1.1377246395209582e307,1.1477046793413176e307,1.1576847191616768e307,1.167664758982036e307,1.1776447988023952e307,1.1876248386227546e307,1.1976048784431138e307,1.207584918263473e307,1.2175649580838324e307,1.2275449979041918e307,1.237525037724551e307,1.24750507754491e307,1.2574851173652696e307,1.2674651571856288e307,1.277445197005988e307,1.2874252368263474e307,1.2974052766467066e307,1.307385316467066e307,1.3173653562874252e307,1.3273453961077843e307,1.3373254359281438e307,1.347305475748503e307,1.3572855155688624e307,1.3672655553892216e307,1.3772455952095807e307,1.3872256350299404e307,1.3972056748502993e307,1.4071857146706585e307,1.417165754491018e307,1.4271457943113774e307,1.4371258341317366e307,1.4471058739520957e307,1.4570859137724552e307,1.4670659535928146e307,1.4770459934131735e307,1.4870260332335327e307,1.4970060730538924e307,1.5069861128742516e307,1.5169661526946107e307,1.5269461925149702e307,1.5369262323353294e307,1.5469062721556885e307,1.5568863119760477e307,1.5668663517964071e307,1.5768463916167666e307,1.5868264314371258e307,1.5968064712574852e307,1.6067865110778444e307,1.6167665508982035e307,1.626746590718563e307,1.6367266305389221e307,1.6467066703592813e307,1.6566867101796408e307,1.6666667500000002e307,1.6766467898203594e307,1.6866268296407185e307,1.696606869461078e307,1.7065869092814372e307,1.7165669491017963e307,1.7265469889221555e307,1.7365270287425152e307,1.7465070685628744e307,1.7564871083832335e307,1.766467148203593e307,1.776447188023952e307,1.7864272278443113e307,1.7964072676646705e307,1.80638730748503e307,1.8163673473053894e307,1.8263473871257486e307,1.836327426946108e307,1.8463074667664672e307,1.856287506586826e307,1.8662675464071858e307,1.876247586227545e307,1.8862276260479041e307,1.8962076658682636e307,1.906187705688623e307,1.9161677455089822e307,1.926147785329341e307,1.9361278251497005e307,1.94610786497006e307,1.9560879047904191e307,1.9660679446107783e307,1.976047984431138e307,1.9860280242514972e307,1.9960080640718563e307,2.0059881038922155e307,2.0159681437125747e307,2.0259481835329341e307,2.0359282233532933e307,2.0459082631736527e307,2.0558883029940122e307,2.0658683428143714e307,2.0758483826347305e307,2.0858284224550897e307,2.095808462275449e307,2.1057885020958086e307,2.1157685419161678e307,2.125748581736527e307,2.1357286215568864e307,2.1457086613772458e307,2.1556887011976047e307,2.165668741017964e307,2.1756487808383233e307,2.1856288206586828e307,2.195608860479042e307,2.205588900299401e307,2.2155689401197608e307,2.2255489799401197e307,2.235529019760479e307,2.2455090595808383e307,2.2554890994011975e307,2.265469139221557e307,2.2754491790419164e307,2.2854292188622753e307,2.295409258682635e307,2.305389298502994e307,2.315369338323353e307,2.325349378143713e307,2.335329417964072e307,2.345309457784431e307,2.355289497604791e307,2.3652695374251497e307,2.375249577245509e307,2.385229617065868e307,2.395209656886228e307,2.405189696706587e307,2.415169736526946e307,2.4251497763473053e307,2.435129816167664e307,2.445109855988024e307,2.455089895808383e307,2.4650699356287425e307,2.475049975449102e307,2.4850300152694614e307,2.4950100550898203e307,2.5049900949101797e307,2.514970134730539e307,2.524950174550898e307,2.534930214371258e307,2.5449102541916165e307,2.5548902940119764e307,2.5648703338323353e307,2.574850373652694e307,2.584830413473054e307,2.5948104532934126e307,2.6047904931137725e307,2.614770532934132e307,2.624750572754491e307,2.6347306125748503e307,2.64471065239521e307,2.6546906922155687e307,2.664670732035928e307,2.674650771856288e307,2.6846308116766465e307,2.6946108514970064e307,2.7045908913173653e307,2.7145709311377243e307,2.724550970958084e307,2.7345310107784426e307,2.7445110505988025e307,2.7544910904191615e307,2.764471130239521e307,2.7744511700598803e307,2.78443120988024e307,2.7944112497005987e307,2.804391289520958e307,2.8143713293413175e307,2.8243513691616765e307,2.8343314089820364e307,2.8443114488023953e307,2.854291488622755e307,2.8642715284431137e307,2.8742515682634726e307,2.8842316080838326e307,2.8942116479041915e307,2.904191687724551e307,2.91417172754491e307,2.92415176736527e307,2.9341318071856287e307,2.9441118470059876e307,2.9540918868263476e307,2.9640719266467065e307,2.974051966467066e307,2.9840320062874253e307,2.994012046107785e307,3.0039920859281437e307,3.013972125748503e307,3.023952165568862e307,3.0339322053892215e307,3.0439122452095814e307,3.05389228502994e307,3.0638723248503e307,3.073852364670658e307,3.083832404491018e307,3.0938124443113776e307,3.103792484131736e307,3.113772523952096e307,3.1237525637724554e307,3.1337326035928143e307,3.1437126434131737e307,3.1536926832335336e307,3.163672723053892e307,3.1736527628742515e307,3.183632802694611e307,3.19361284251497e307,3.20359288233533e307,3.213572922155688e307,3.223552961976048e307,3.233533001796407e307,3.243513041616766e307,3.253493081437126e307,3.263473121257485e307,3.2734531610778443e307,3.2834332008982037e307,3.293413240718563e307,3.303393280538922e307,3.3133733203592815e307,3.323353360179641e307,3.3333334e307,3.3433134398203593e307,3.3532934796407187e307,3.363273519461078e307,3.373253559281437e307,3.3832335991017965e307,3.3932136389221554e307,3.403193678742515e307,3.4131737185628743e307,3.423153758383233e307,3.433133798203593e307,3.443113838023952e307,3.4530938778443115e307,3.463073917664671e307,3.47305395748503e307,3.4830339973053893e307,3.4930140371257487e307,3.5029940769461077e307,3.512974116766467e307,3.522954156586827e307,3.5329341964071855e307,3.542914236227545e307,3.552894276047904e307,3.562874315868263e307,3.572854355688623e307,3.5828343955089816e307,3.5928144353293415e307,3.602794475149701e307,3.61277451497006e307,3.6227545547904193e307,3.6327345946107787e307,3.6427146344311377e307,3.652694674251497e307,3.6626747140718565e307,3.6726547538922155e307,3.6826347937125754e307,3.692614833532934e307,3.7025948733532933e307,3.7125749131736527e307,3.7225549529940116e307,3.7325349928143715e307,3.7425150326347305e307,3.75249507245509e307,3.7624751122754493e307,3.7724551520958083e307,3.7824351919161677e307,3.792415231736527e307,3.8023952715568865e307,3.8123753113772455e307,3.822355351197605e307,3.8323353910179643e307,3.8423154308383233e307,3.8522954706586827e307,3.8622755104790416e307,3.872255550299401e307,3.8822355901197605e307,3.89221562994012e307,3.902195669760479e307,3.912175709580839e307,3.9221557494011977e307,3.9321357892215566e307,3.9421158290419166e307,3.9520958688622755e307,3.962075908682635e307,3.9720559485029943e307,3.9820359883233533e307,3.9920160281437127e307,4.001996067964072e307,4.011976107784431e307,4.0219561476047905e307,4.0319361874251494e307,4.041916227245509e307,4.051896267065869e307,4.061876306886227e307,4.0718563467065866e307,4.0818363865269466e307,4.091816426347305e307,4.101796466167665e307,4.1117765059880244e307,4.1217565458083833e307,4.1317365856287427e307,4.1417166254491016e307,4.151696665269461e307,4.1616767050898205e307,4.1716567449101794e307,4.181636784730539e307,4.1916168245508983e307,4.201596864371257e307,4.211576904191617e307,4.221556944011976e307,4.231536983832335e307,4.241517023652695e307,4.251497063473054e307,4.2614771032934133e307,4.2714571431137727e307,4.281437182934132e307,4.291417222754491e307,4.30139726257485e307,4.31137730239521e307,4.321357342215569e307,4.3313373820359283e307,4.341317421856287e307,4.3512974616766467e307,4.361277501497006e307,4.371257541317365e307,4.3812375811377244e307,4.391217620958084e307,4.4011976607784433e307,4.411177700598802e307,4.421157740419162e307,4.431137780239521e307,4.44111782005988e307,4.45109785988024e307,4.4610778997005984e307,4.4710579395209583e307,4.4810379793413177e307,4.4910180191616767e307,4.500998058982036e307,4.510978098802395e307,4.520958138622754e307,4.530938178443114e307,4.540918218263473e307,4.550898258083833e307,4.560878297904192e307,4.570858337724551e307,4.58083837754491e307,4.590818417365269e307,4.600798457185629e307,4.610778497005987e307,4.620758536826348e307,4.630738576646706e307,4.640718616467066e307,4.650698656287426e307,4.660678696107784e307,4.670658735928143e307,4.680638775748503e307,4.690618815568863e307,4.700598855389221e307,4.710578895209582e307,4.72055893502994e307,4.730538974850299e307,4.740519014670659e307,4.750499054491018e307,4.760479094311377e307,4.770459134131736e307,4.780439173952097e307,4.790419213772455e307,4.800399253592814e307,4.810379293413174e307,4.820359333233532e307,4.830339373053893e307,4.840319412874252e307,4.850299452694611e307,4.86027949251497e307,4.870259532335329e307,4.880239572155689e307,4.890219611976047e307,4.900199651796407e307,4.910179691616766e307,4.920159731437126e307,4.930139771257485e307,4.940119811077844e307,4.950099850898203e307,4.960079890718563e307,4.970059930538923e307,4.980039970359281e307,4.990020010179641e307,5.00000005e307,5.009980089820359e307,5.019960129640719e307,5.029940169461078e307,5.039920209281437e307,5.049900249101796e307,5.059880288922156e307,5.069860328742515e307,5.079840368562874e307,5.089820408383233e307,5.099800448203593e307,5.109780488023953e307,5.119760527844311e307,5.129740567664671e307,5.13972060748503e307,5.149700647305389e307,5.159680687125749e307,5.169660726946108e307,5.179640766766467e307,5.189620806586826e307,5.199600846407187e307,5.209580886227545e307,5.2195609260479035e307,5.229540965868263e307,5.239521005688623e307,5.249501045508982e307,5.259481085329341e307,5.269461125149701e307,5.279441164970059e307,5.28942120479042e307,5.299401244610779e307,5.309381284431137e307,5.319361324251497e307,5.329341364071857e307,5.339321403892216e307,5.349301443712575e307,5.359281483532935e307,5.369261523353293e307,5.379241563173652e307,5.389221602994013e307,5.399201642814371e307,5.40918168263473e307,5.41916172245509e307,5.42914176227545e307,5.439121802095808e307,5.449101841916168e307,5.459081881736527e307,5.469061921556886e307,5.479041961377247e307,5.489022001197605e307,5.499002041017964e307,5.508982080838323e307,5.518962120658683e307,5.528942160479042e307,5.5389222002994e307,5.548902240119761e307,5.55888227994012e307,5.568862319760479e307,5.578842359580839e307,5.588822399401197e307,5.598802439221556e307,5.608782479041917e307,5.618762518862276e307,5.628742558682634e307,5.638722598502995e307,5.648702638323353e307,5.658682678143712e307,5.668662717964073e307,5.678642757784431e307,5.68862279760479e307,5.69860283742515e307,5.70858287724551e307,5.718562917065868e307,5.728542956886227e307,5.738522996706587e307,5.748503036526946e307,5.758483076347306e307,5.768463116167665e307,5.778443155988024e307,5.788423195808384e307,5.798403235628743e307,5.808383275449102e307,5.818363315269461e307,5.82834335508982e307,5.83832339491018e307,5.84830343473054e307,5.858283474550898e307,5.868263514371257e307,5.878243554191616e307,5.888223594011976e307,5.898203633832336e307,5.908183673652694e307,5.918163713473054e307,5.928143753293414e307,5.938123793113772e307,5.948103832934132e307,5.958083872754491e307,5.96806391257485e307,5.97804395239521e307,5.98802399221557e307,5.998004032035928e307,6.007984071856287e307,6.017964111676646e307,6.027944151497006e307,6.037924191317366e307,6.047904231137724e307,6.057884270958084e307,6.067864310778444e307,6.077844350598802e307,6.087824390419162e307,6.097804430239521e307,6.10778447005988e307,6.11776450988024e307,6.1277445497006e307,6.137724589520958e307,6.147704629341316e307,6.157684669161678e307,6.167664708982036e307,6.177644748802395e307,6.187624788622754e307,6.197604828443114e307,6.207584868263473e307,6.217564908083832e307,6.227544947904192e307,6.23752498772455e307,6.24750502754491e307,6.25748506736527e307,6.267465107185629e307,6.277445147005988e307,6.287425186826347e307,6.297405226646707e307,6.307385266467066e307,6.317365306287426e307,6.327345346107784e307,6.337325385928143e307,6.347305425748504e307,6.357285465568862e307,6.367265505389221e307,6.377245545209581e307,6.387225585029941e307,6.397205624850299e307,6.40718566467066e307,6.417165704491018e307,6.427145744311376e307,6.437125784131738e307,6.447105823952096e307,6.457085863772455e307,6.467065903592814e307,6.477045943413174e307,6.487025983233533e307,6.497006023053891e307,6.506986062874252e307,6.51696610269461e307,6.52694614251497e307,6.53692618233533e307,6.546906222155689e307,6.556886261976047e307,6.566866301796407e307,6.576846341616767e307,6.586826381437125e307,6.596806421257486e307,6.606786461077844e307,6.616766500898204e307,6.626746540718564e307,6.636726580538922e307,6.646706620359281e307,6.65668666017964e307,6.666666700000001e307,6.676646739820359e307,6.686626779640719e307,6.696606819461078e307,6.706586859281436e307,6.716566899101797e307,6.726546938922156e307,6.736526978742515e307,6.746507018562874e307,6.756487058383235e307,6.766467098203593e307,6.776447138023952e307,6.786427177844311e307,6.79640721766467e307,6.806387257485031e307,6.816367297305389e307,6.826347337125749e307,6.836327376946107e307,6.846307416766466e307,6.856287456586827e307,6.866267496407185e307,6.876247536227545e307,6.886227576047904e307,6.896207615868264e307,6.906187655688623e307,6.916167695508982e307,6.926147735329341e307,6.9361277751497e307,6.946107814970061e307,6.956087854790419e307,6.966067894610779e307,6.976047934431137e307,6.986027974251497e307,6.996008014071857e307,7.005988053892215e307,7.015968093712575e307,7.025948133532934e307,7.035928173353294e307,7.045908213173653e307,7.055888252994012e307,7.065868292814371e307,7.07584833263473e307,7.085828372455091e307,7.095808412275449e307,7.105788452095808e307,7.115768491916168e307,7.125748531736527e307,7.135728571556886e307,7.145708611377246e307,7.155688651197605e307,7.165668691017963e307,7.175648730838324e307,7.185628770658683e307,7.195608810479041e307,7.205588850299401e307,7.215568890119761e307,7.22554892994012e307,7.235528969760479e307,7.245509009580839e307,7.255489049401197e307,7.265469089221557e307,7.275449129041917e307,7.285429168862275e307,7.295409208682634e307,7.305389248502994e307,7.315369288323354e307,7.325349328143712e307,7.335329367964072e307,7.345309407784431e307,7.35528944760479e307,7.365269487425151e307,7.375249527245509e307,7.385229567065868e307,7.395209606886228e307,7.405189646706588e307,7.415169686526946e307,7.425149726347305e307,7.435129766167665e307,7.445109805988024e307,7.455089845808384e307,7.465069885628743e307,7.475049925449102e307,7.48502996526946e307,7.495010005089821e307,7.50499004491018e307,7.514970084730538e307,7.524950124550899e307,7.534930164371257e307,7.544910204191617e307,7.554890244011977e307,7.564870283832335e307,7.574850323652694e307,7.584830363473055e307,7.594810403293414e307,7.604790443113772e307,7.614770482934132e307,7.624750522754491e307,7.63473056257485e307,7.64471060239521e307,7.654690642215569e307,7.664670682035928e307,7.674650721856287e307,7.684630761676648e307,7.694610801497006e307,7.704590841317365e307,7.714570881137725e307,7.724550920958084e307,7.734530960778444e307,7.744511000598802e307,7.754491040419162e307,7.764471080239521e307,7.77445112005988e307,7.78443115988024e307,7.794411199700598e307,7.804391239520958e307,7.814371279341318e307,7.824351319161677e307,7.834331358982036e307,7.844311398802395e307,7.854291438622754e307,7.864271478443114e307,7.874251518263474e307,7.884231558083832e307,7.894211597904192e307,7.904191637724551e307,7.91417167754491e307,7.92415171736527e307,7.934131757185628e307,7.944111797005988e307,7.954091836826348e307,7.964071876646707e307,7.974051916467066e307,7.984031956287425e307,7.994011996107784e307,8.003992035928144e307,8.013972075748504e307,8.023952115568862e307,8.033932155389222e307,8.043912195209582e307,8.05389223502994e307,8.063872274850299e307,8.073852314670659e307,8.083832354491018e307,8.093812394311377e307,8.103792434131738e307,8.113772473952096e307,8.123752513772454e307,8.133732553592814e307,8.143712593413174e307,8.153692633233533e307,8.163672673053892e307,8.173652712874252e307,8.183632752694611e307,8.19361279251497e307,8.20359283233533e307,8.213572872155688e307,8.223552911976048e307,8.233532951796408e307,8.243512991616767e307,8.253493031437125e307,8.263473071257485e307,8.273453111077844e307,8.283433150898203e307,8.293413190718564e307,8.303393230538922e307,8.313373270359281e307,8.323353310179642e307,8.33333335e307,8.343313389820359e307,8.353293429640719e307,8.363273469461078e307,8.373253509281437e307,8.383233549101797e307,8.393213588922156e307,8.403193628742514e307,8.413173668562875e307,8.423153708383234e307,8.433133748203593e307,8.443113788023951e307,8.453093827844312e307,8.463073867664671e307,8.473053907485029e307,8.48303394730539e307,8.493013987125748e307,8.502994026946107e307,8.512974066766468e307,8.522954106586827e307,8.532934146407185e307,8.542914186227545e307,8.552894226047905e307,8.562874265868263e307,8.572854305688623e307,8.582834345508982e307,8.592814385329341e307,8.602794425149701e307,8.61277446497006e307,8.622754504790419e307,8.632734544610778e307,8.642714584431139e307,8.652694624251497e307,8.662674664071857e307,8.672654703892216e307,8.682634743712574e307,8.692614783532935e307,8.702594823353293e307,8.712574863173653e307,8.722554902994012e307,8.732534942814371e307,8.742514982634731e307,8.75249502245509e307,8.762475062275449e307,8.772455102095808e307,8.782435141916168e307,8.792415181736527e307,8.802395221556887e307,8.812375261377245e307,8.822355301197604e307,8.832335341017965e307,8.842315380838323e307,8.852295420658683e307,8.862275460479042e307,8.872255500299402e307,8.882235540119761e307,8.892215579940119e307,8.902195619760479e307,8.912175659580838e307,8.922155699401198e307,8.932135739221557e307,8.942115779041917e307,8.952095818862275e307,8.962075858682634e307,8.972055898502995e307,8.982035938323353e307,8.992015978143713e307,9.001996017964071e307,9.011976057784432e307,9.02195609760479e307,9.03193613742515e307,9.041916177245509e307,9.051896217065867e307,9.061876256886228e307,9.071856296706586e307,9.081836336526947e307,9.091816376347305e307,9.101796416167663e307,9.111776455988024e307,9.121756495808384e307,9.131736535628743e307,9.141716575449101e307,9.151696615269462e307,9.16167665508982e307,9.17165669491018e307,9.181636734730539e307,9.191616774550897e307,9.201596814371258e307,9.211576854191616e307,9.221556894011977e307,9.231536933832337e307,9.241516973652695e307,9.251497013473054e307,9.261477053293412e307,9.271457093113773e307,9.281437132934131e307,9.29141717275449e307,9.30139721257485e307,9.31137725239521e307,9.321357292215569e307,9.33133733203593e307,9.341317371856288e307,9.351297411676646e307,9.361277451497007e307,9.371257491317365e307,9.381237531137723e307,9.391217570958084e307,9.401197610778442e307,9.411177650598803e307,9.421157690419163e307,9.431137730239522e307,9.44111777005988e307,9.45109780988024e307,9.461077849700599e307,9.471057889520957e307,9.481037929341316e307,9.491017969161676e307,9.500998008982037e307,9.510978048802397e307,9.520958088622756e307,9.530938128443114e307,9.540918168263472e307,9.550898208083833e307,9.560878247904191e307,9.57085828772455e307,9.58083832754491e307,9.59081836736527e307,9.600798407185629e307,9.610778447005987e307,9.620758486826348e307,9.630738526646706e307,9.640718566467067e307,9.650698606287425e307,9.660678646107784e307,9.670658685928142e307,9.680638725748504e307,9.690618765568863e307,9.700598805389223e307,9.710578845209582e307,9.72055888502994e307,9.730538924850299e307,9.740518964670657e307,9.750499004491017e307,9.760479044311378e307,9.770459084131738e307,9.780439123952097e307,9.790419163772455e307,9.800399203592814e307,9.810379243413174e307,9.820359283233534e307,9.830339323053893e307,9.840319362874251e307,9.85029940269461e307,9.860279442514968e307,9.87025948233533e307,9.88023952215569e307,9.89021956197605e307,9.900199601796408e307,9.910179641616766e307,9.920159681437125e307,9.930139721257483e307,9.940119761077844e307,9.950099800898204e307,9.960079840718564e307,9.970059880538923e307,9.980039920359281e307,9.99001996017964e307,1.0e308]} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/large_negative.json b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/large_negative.json new file mode 100644 index 000000000000..858d296135d4 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/large_negative.json @@ -0,0 +1 @@ +{"expected":[-0.34657359027997264,-0.3404625388971485,-0.33457109364634363,-0.32888723800141867,-0.32339984141210615,-0.3180985771608443,-0.3129738493750175,-0.3080167280062865,-0.3032188907641098,-0.29857257113706154,-0.2940705117583707,-0.28970592247547644,-0.285472442570696,-0.28136410665409234,-0.27737531381254793,-0.27350079965272023,-0.2697356109214776,-0.26607508242682765,-0.2625148160162577,-0.2590506613986834,-0.2556786986215131,-0.2523952220363065,-0.2491967256055976,-0.2460798894200992,-0.2430415673100419,-0.24007877544713213,-0.23718868184477704,-0.23436859667404164,-0.2316159633214523,-0.22892835012238874,-0.2263034427105594,-0.2237390369300278,-0.22123303226156635,-0.21878342571982545,-0.2163883061820061,-0.21404584911246846,-0.2117543116510497,-0.209512028035861,-0.20731740533400853,-0.2051689194560914,-0.2030651114324875,-0.20100458393138315,-0.19898599800025205,-0.1970080700140687,-0.19506956881496879,-0.1931693130293561,-0.1913061685496268,-0.18947904616873648,-0.1876868993568,-0.1859287221697821,-0.18420354728113442,-0.1825104441279542,-0.18084851716390002,-0.17921690421169933,-0.17761477490863203,-0.17604132923887542,-0.17449579614705407,-0.17297743222775977,-0.17148552048618954,-0.17001936916540536,-0.16857831063604226,-0.16716170034459002,-0.16576891581664793,-0.1643993557118045,-0.1630524389270272,-0.16172760374566036,-0.1604243070293291,-0.15914202345022826,-0.15788024476144552,-0.1566384791031227,-0.15541625034240525,-0.15421309744526276,-0.15302857387838759,-0.15186224703949394,-0.15071369771444632,-0.14958251955974575,-0.14846831860899332,-0.14737071280203803,-0.14628933153559295,-0.145223815234181,-0.14417381494033768,-0.14313899192306542,-0.14211901730359117,-0.1411135716975377,-0.14012234487266978,-0.1391450354214251,-0.13818135044748728,-0.13723100526569784,-0.13629372311464796,-0.13536923488132424,-0.13445727883722083,-0.13355760038536138,-0.13266995181770525,-0.13179409208244222,-0.13092978656070547,-0.13007680685225964,-0.12923493056974283,-0.1284039411410666,-0.1275836276195951,-0.12677378450174875,-0.12597421155169242,-0.1251847136327896,-0.12440510054551648,-0.12363518687154913,-0.12287479182374932,-0.12212373910178903,-0.12138185675316715,-0.12064897703938371,-0.11992493630704866,-0.1192095748637136,-0.11850273685822443,-0.11780427016540394,-0.11711402627488128,-0.11643186018389479,-0.11575763029390307,-0.11509119831084653,-0.11443242914890948,-0.11378119083763925,-0.11313735443228681,-0.11250079392723795,-0.11187138617241163,-0.11124901079250638,-0.11063355010898254,-0.11002488906467202,-0.10942291515091222,-0.10882751833710647,-0.10823859100261622,-0.10765602787089558,-0.10707972594578172,-0.10650958444985963,-0.105945504764822,-0.1053873903737495,-0.10483514680523891,-0.10428868157931083,-0.10374790415503064,-0.10321272587977946,-0.10268305994011473,-0.10215882131416243,-0.10163992672548543,-0.10112629459837419,-0.1006178450145096,-0.10011449967094793,-0.09961618183938206,-0.0991228163266325,-0.09863432943632637,-0.09815064893172172,-0.09767170399963773,-0.09719742521545262,-0.09672774450913209,-0.09626259513225348,-0.09580191162599098,-0.09534562979003001,-0.09489368665237892,-0.09444602044004786,-0.09400257055056606,-0.09356327752430939,-0.09312808301761154,-0.09269692977663274,-0.09226976161196136,-0.09184652337392453,-0.09142716092858447,-0.0910116211343985,-0.09059985181952153,-0.09019180175973017,-0.08978742065694863,-0.08938665911835764,-0.08898946863606766,-0.08859580156733862,-0.08820561111532939,-0.08781885131036,-0.08743547699167115,-0.08705544378966538,-0.08667870810861529,-0.08630522710982402,-0.08593495869522509,-0.08556786149140737,-0.08520389483405284,-0.08484301875277463,-0.08448519395634334,-0.08413038181828997,-0.08377854436287441,-0.0834296442514087,-0.08308364476892435,-0.08274050981117419,-0.08240020387195818,-0.08206269203076469,-0.0817279399407173,-0.08139591381681881,-0.0810665804244838,-0.08073990706835155,-0.08041586158137103,-0.08009441231415076,-0.0797755281245658,-0.07945917836761426,-0.07914533288551726,-0.07883396199805462,-0.0785250364931304,-0.07821852761756136,-0.07791440706808284,-0.07761264698256543,-0.0773132199314374,-0.07701609890930634,-0.0767212573267757,-0.07642866900245006,-0.07613830815512451,-0.0758501493961532,-0.075564167721992,-0.07528033850691103,-0.07499863749587221,-0.07471904079756761,-0.07444152487761452,-0.07416606655190286,-0.07389264298009116,-0.07362123165924707,-0.07335181041762912,-0.07308435740860512,-0.072818851104705,-0.07255527029180339,-0.07229359406342949,-0.07203380181520064,-0.07177587323937647,-0.07151978831953061,-0.0712655273253372,-0.07101307080746883,-0.0707623995926038,-0.07051349477853941,-0.07026633772940889,-0.07002091007099948,-0.06977719368616903,-0.06953517071035871,-0.06929482352719973,-0.06905613476421127,-0.06881908728858802,-0.06858366420307464,-0.06834984884192546,-0.06811762476694706,-0.06788697576362183,-0.06765788583731083,-0.06743033920953362,-0.06720432031432362,-0.06697981379465702,-0.0667568044989536,-0.06653527747764763,-0.06631521797982756,-0.06609661144994233,-0.06587944352457338,-0.06566370002927034,-0.06544936697544936,-0.06523643055735204,-0.06502487714906445,-0.06481469330159394,-0.0646058657400031,-0.06439838136059926,-0.0641922272281783,-0.0639873905733217,-0.06378385878974537,-0.06358161943169947,-0.06338066021141767,-0.06318096899661509,-0.06298253380803359,-0.0627853428170336,-0.06258938434323127,-0.062394646852179984,-0.06220111895309541,-0.062008789396622944,-0.06181764707264666,-0.06162768100813914,-0.06143888036505081,-0.06125123443823829,-0.061064732653430966,-0.06087936456523462,-0.06069511985517166,-0.06051198832975703,-0.060329959918609025,-0.06014902467259428,-0.05996917276200644,-0.05979039447477725,-0.05961268021472009,-0.059436020499804725,-0.059260405960462836,-0.05908582733792381,-0.05891227548257977,-0.058739741352379846,-0.058568216011252484,-0.05839769062755546,-0.058228156472553305,-0.05805960491892103,-0.057892027439274046,-0.05772541560472367,-0.05755976108345749,-0.057395055639344356,-0.05723129113056335,-0.05706845950825623,-0.056906552815203106,-0.05674556318452049,-0.05658548283838161,-0.056426304086758555,-0.05626801932618552,-0.05611062103854294,-0.0559541017898622,-0.05579845422915034,-0.05564367108723433,-0.055489745175624786,-0.05533666938539848,-0.055184436686099396,-0.05503304012465806,-0.05488247282432856,-0.054732727983643155,-0.054583798875384074,-0.05443567884557193,-0.05428836131247092,-0.054141839765610045,-0.053996107764820174,-0.053851158939286874,-0.053706986986618376,-0.053563585671928544,-0.05342094882693471,-0.053279070349069764,-0.05313794420060859,-0.0529975644078083,-0.0528579250600621,-0.05271902030906679,-0.05258084436800308,-0.05244339151072908,-0.05230665607098634,-0.052170632441618396,-0.052035315073801464,-0.051900698476287234,-0.05176677721465731,-0.05163354591058935,-0.05150099924113444,-0.05136913193800565,-0.05123793878687766,-0.05110741462669694,-0.05097755434900263,-0.05084835289725772,-0.05071980526619054,-0.05059190650114603,-0.05046465169744713,-0.050338035999765524,-0.05021205460150216,-0.050086702744176856,-0.049961975716827194,-0.049837868855416384,-0.04971437754224996,-0.049591497205401104,-0.04946922331814467,-0.049347551398399414,-0.04922647700817853,-0.04910599575304837,-0.048986103281594987,-0.048866795284898616,-0.0487480674960158,-0.04862991568946905,-0.048512335680744,-0.04839532332579385,-0.0482788745205509,-0.04816298520044534,-0.048047651339930775,-0.04793286895201668,-0.047818634087807614,-0.04770494283604889,-0.04759179132267887,-0.04747917571038757,-0.04736709219818156,-0.04725553702095505,-0.047144506449067,-0.04703399678792425,-0.04692400437757045,-0.046814525592280935,-0.046705556840163004,-0.04659709456276206,-0.04648913523467305,-0.04638167536315749,-0.046274711487765595,-0.04616824017996383,-0.04606225804276751,-0.04595676171037852,-0.04585174784782798,-0.04574721315062382,-0.045643154344403206,-0.04553956818458969,-0.04543645145605506,-0.04533380097278575,-0.045231613577553814,-0.04512988614159236,-0.04502861556427532,-0.04492779877280159,-0.044827432721883394,-0.04472751439343879,-0.044628040796288425,-0.04452900896585615,-0.04443041596387377,-0.044332258878089705,-0.04423453482198143,-0.044137240934471834,-0.044040374379649236,-0.043943932346491105,-0.04384791204859154,-0.04375231072389211,-0.043657125634416365,-0.04356235406600783,-0.04346799332807131,-0.04337404075331765,-0.04328049369751176,-0.04318734953922395,-0.04309460567958439,-0.04300225954204087,-0.04291030857211955,-0.042818750237188855,-0.04272758202622638,-0.04263680144958878,-0.04254640603878454,-0.04245639334624976,-0.04236676094512666,-0.04227750642904497,-0.04218862741190607,-0.04210012152766981,-0.042011986430144116,-0.04192421979277712,-0.04183681930845199,-0.04174978268928431,-0.04166310766642194,-0.041576791989847435,-0.04149083342818287,-0.04140522976849712,-0.041319978816115585,-0.04123507839443208,-0.041150526344723264,-0.04106632052596525,-0.040982458814652435,-0.040898939104618615,-0.040815759306860294,-0.040732917349362074,-0.04065041117692427,-0.04056823875099255,-0.040486398049489676,-0.04040488706664924,-0.04032370381285154,-0.04024284631446121,-0.04016231261366705,-0.040082100768323595,-0.04000220885179469,-0.03992263495279888,-0.03984337717525668,-0.03976443363813967,-0.03968580247532133,-0.03960748183542972,-0.03952946988170184,-0.039451764791839775,-0.03937436475786849,-0.03929726798599531,-0.03922047269647107,-0.03914397712345285,-0.039067779514868416,-0.03899187813228209,-0.03891627125076236,-0.038840957158750855,-0.03876593415793302,-0.03869120056311012,-0.038616754702072896,-0.03854259491547647,-0.038468719556716935,-0.0383951269918092,-0.038321815599266236,-0.03824878376997981,-0.038176029907102484,-0.03810355242593107,-0.038031349753791244,-0.03795942032992367,-0.037887762605371245,-0.03781637504286778,-0.03774525611672775,-0.03767440431273751,-0.03760381812804754,-0.037533496071066035,-0.03746343666135362,-0.03739363842951923,-0.0373240999171173,-0.037254819676545835,-0.037185796270945905,-0.03711702827410207,-0.03704851427034397,-0.03698025285444896,-0.03691224263154597,-0.036844482217020226,-0.03677697023641911,-0.03670970532535915,-0.03664268612943383,-0.03657591130412261,-0.036509379514700804,-0.036443089436150475,-0.036377039753072375,-0.03631122915959875,-0.036245656359307106,-0.03618032006513496,-0.03611521899929549,-0.03605035189319406,-0.03598571748734567,-0.035921314531293345,-0.035857141783527315,-0.0357931980114051,-0.035729481991072475],"x":[-3.0,-3.049800796812749,-3.099601593625498,-3.149402390438247,-3.199203187250996,-3.249003984063745,-3.298804780876494,-3.348605577689243,-3.398406374501992,-3.448207171314741,-3.49800796812749,-3.547808764940239,-3.597609561752988,-3.647410358565737,-3.697211155378486,-3.747011952191235,-3.7968127490039842,-3.846613545816733,-3.896414342629482,-3.946215139442231,-3.99601593625498,-4.0458167330677295,-4.095617529880478,-4.145418326693227,-4.195219123505976,-4.245019920318725,-4.294820717131474,-4.344621513944223,-4.394422310756972,-4.444223107569721,-4.49402390438247,-4.543824701195219,-4.5936254980079685,-4.643426294820717,-4.693227091633466,-4.743027888446215,-4.792828685258964,-4.842629482071713,-4.892430278884462,-4.942231075697211,-4.99203187250996,-5.04183266932271,-5.091633466135458,-5.1414342629482075,-5.191235059760956,-5.241035856573705,-5.290836653386454,-5.340637450199203,-5.390438247011952,-5.440239043824701,-5.49003984063745,-5.539840637450199,-5.589641434262949,-5.639442231075697,-5.6892430278884465,-5.739043824701195,-5.788844621513944,-5.838645418326693,-5.888446215139442,-5.938247011952191,-5.98804780876494,-6.03784860557769,-6.087649402390438,-6.137450199203188,-6.187250996015936,-6.2370517928286855,-6.286852589641434,-6.336653386454183,-6.386454183266932,-6.436254980079681,-6.48605577689243,-6.535856573705179,-6.585657370517929,-6.635458167330677,-6.685258964143427,-6.735059760956175,-6.7848605577689245,-6.834661354581673,-6.884462151394422,-6.934262948207171,-6.98406374501992,-7.03386454183267,-7.083665338645418,-7.133466135458168,-7.183266932270916,-7.233067729083666,-7.282868525896414,-7.3326693227091635,-7.382470119521912,-7.432270916334661,-7.48207171314741,-7.531872509960159,-7.581673306772909,-7.631474103585657,-7.681274900398407,-7.731075697211155,-7.780876494023905,-7.830677290836653,-7.8804780876494025,-7.930278884462151,-7.9800796812749,-8.02988047808765,-8.079681274900398,-8.129482071713147,-8.179282868525897,-8.229083665338646,-8.278884462151394,-8.328685258964143,-8.378486055776893,-8.428286852589641,-8.47808764940239,-8.52788844621514,-8.577689243027889,-8.627490039840637,-8.677290836653386,-8.727091633466136,-8.776892430278885,-8.826693227091633,-8.876494023904382,-8.926294820717132,-8.97609561752988,-9.025896414342629,-9.07569721115538,-9.125498007968128,-9.175298804780876,-9.225099601593625,-9.274900398406375,-9.324701195219124,-9.374501992031872,-9.42430278884462,-9.474103585657371,-9.52390438247012,-9.573705179282868,-9.623505976095618,-9.673306772908367,-9.723107569721115,-9.772908366533864,-9.822709163346614,-9.872509960159363,-9.922310756972111,-9.97211155378486,-10.02191235059761,-10.071713147410359,-10.121513944223107,-10.171314741035857,-10.221115537848606,-10.270916334661354,-10.320717131474103,-10.370517928286853,-10.420318725099602,-10.47011952191235,-10.5199203187251,-10.569721115537849,-10.619521912350598,-10.669322709163346,-10.719123505976096,-10.768924302788845,-10.818725099601593,-10.868525896414342,-10.918326693227092,-10.96812749003984,-11.01792828685259,-11.06772908366534,-11.117529880478088,-11.167330677290837,-11.217131474103585,-11.266932270916335,-11.316733067729084,-11.366533864541832,-11.41633466135458,-11.466135458167331,-11.51593625498008,-11.565737051792828,-11.615537848605578,-11.665338645418327,-11.715139442231076,-11.764940239043824,-11.814741035856574,-11.864541832669323,-11.914342629482071,-11.96414342629482,-12.01394422310757,-12.063745019920319,-12.113545816733067,-12.163346613545817,-12.213147410358566,-12.262948207171315,-12.312749003984063,-12.362549800796813,-12.412350597609562,-12.46215139442231,-12.51195219123506,-12.56175298804781,-12.611553784860558,-12.661354581673306,-12.711155378486056,-12.760956175298805,-12.810756972111554,-12.860557768924302,-12.910358565737052,-12.9601593625498,-13.00996015936255,-13.0597609561753,-13.109561752988048,-13.159362549800797,-13.209163346613545,-13.258964143426295,-13.308764940239044,-13.358565737051793,-13.408366533864541,-13.458167330677291,-13.50796812749004,-13.557768924302788,-13.607569721115539,-13.657370517928287,-13.707171314741036,-13.756972111553784,-13.806772908366534,-13.856573705179283,-13.906374501992032,-13.95617529880478,-14.00597609561753,-14.055776892430279,-14.105577689243027,-14.155378486055778,-14.205179282868526,-14.254980079681275,-14.304780876494023,-14.354581673306773,-14.404382470119522,-14.45418326693227,-14.50398406374502,-14.55378486055777,-14.603585657370518,-14.653386454183266,-14.703187250996017,-14.752988047808765,-14.802788844621514,-14.852589641434262,-14.902390438247012,-14.952191235059761,-15.00199203187251,-15.05179282868526,-15.101593625498008,-15.151394422310757,-15.201195219123505,-15.250996015936256,-15.300796812749004,-15.350597609561753,-15.400398406374501,-15.450199203187251,-15.5,-15.549800796812749,-15.599601593625499,-15.649402390438247,-15.699203187250996,-15.749003984063744,-15.798804780876495,-15.848605577689243,-15.898406374501992,-15.94820717131474,-15.99800796812749,-16.04780876494024,-16.09760956175299,-16.147410358565736,-16.197211155378486,-16.247011952191237,-16.296812749003983,-16.346613545816734,-16.39641434262948,-16.44621513944223,-16.49601593625498,-16.545816733067728,-16.595617529880478,-16.64541832669323,-16.695219123505975,-16.745019920318725,-16.794820717131476,-16.844621513944222,-16.894422310756973,-16.94422310756972,-16.99402390438247,-17.04382470119522,-17.093625498007967,-17.143426294820717,-17.193227091633467,-17.243027888446214,-17.292828685258964,-17.342629482071715,-17.39243027888446,-17.44223107569721,-17.49203187250996,-17.54183266932271,-17.59163346613546,-17.641434262948206,-17.691235059760956,-17.741035856573706,-17.790836653386453,-17.840637450199203,-17.890438247011954,-17.9402390438247,-17.99003984063745,-18.0398406374502,-18.089641434262948,-18.139442231075698,-18.189243027888445,-18.239043824701195,-18.288844621513945,-18.338645418326692,-18.388446215139442,-18.438247011952193,-18.48804780876494,-18.53784860557769,-18.58764940239044,-18.637450199203187,-18.687250996015937,-18.737051792828684,-18.786852589641434,-18.836653386454184,-18.88645418326693,-18.93625498007968,-18.98605577689243,-19.03585657370518,-19.08565737051793,-19.13545816733068,-19.185258964143426,-19.235059760956176,-19.284860557768923,-19.334661354581673,-19.384462151394423,-19.43426294820717,-19.48406374501992,-19.53386454183267,-19.583665338645417,-19.633466135458168,-19.683266932270918,-19.733067729083665,-19.782868525896415,-19.83266932270916,-19.882470119521912,-19.932270916334662,-19.98207171314741,-20.03187250996016,-20.08167330677291,-20.131474103585656,-20.181274900398407,-20.231075697211157,-20.280876494023904,-20.330677290836654,-20.3804780876494,-20.43027888446215,-20.4800796812749,-20.529880478087648,-20.5796812749004,-20.62948207171315,-20.679282868525895,-20.729083665338646,-20.778884462151396,-20.828685258964143,-20.878486055776893,-20.92828685258964,-20.97808764940239,-21.02788844621514,-21.077689243027887,-21.127490039840637,-21.177290836653388,-21.227091633466134,-21.276892430278885,-21.326693227091635,-21.37649402390438,-21.426294820717132,-21.47609561752988,-21.52589641434263,-21.57569721115538,-21.625498007968126,-21.675298804780876,-21.725099601593627,-21.774900398406373,-21.824701195219124,-21.874501992031874,-21.92430278884462,-21.97410358565737,-22.02390438247012,-22.073705179282868,-22.12350597609562,-22.173306772908365,-22.223107569721115,-22.272908366533866,-22.322709163346612,-22.372509960159363,-22.422310756972113,-22.47211155378486,-22.52191235059761,-22.57171314741036,-22.621513944223107,-22.671314741035857,-22.721115537848604,-22.770916334661354,-22.820717131474105,-22.87051792828685,-22.9203187250996,-22.970119521912352,-23.0199203187251,-23.06972111553785,-23.1195219123506,-23.169322709163346,-23.219123505976096,-23.268924302788843,-23.318725099601593,-23.368525896414344,-23.41832669322709,-23.46812749003984,-23.51792828685259,-23.567729083665338,-23.617529880478088,-23.66733067729084,-23.717131474103585,-23.766932270916335,-23.816733067729082,-23.866533864541832,-23.916334661354583,-23.96613545816733,-24.01593625498008,-24.06573705179283,-24.115537848605577,-24.165338645418327,-24.215139442231077,-24.264940239043824,-24.314741035856574,-24.36454183266932,-24.41434262948207,-24.46414342629482,-24.51394422310757,-24.56374501992032,-24.61354581673307,-24.663346613545816,-24.713147410358566,-24.762948207171316,-24.812749003984063,-24.862549800796813,-24.91235059760956,-24.96215139442231,-25.01195219123506,-25.061752988047807,-25.111553784860558,-25.161354581673308,-25.211155378486055,-25.260956175298805,-25.310756972111555,-25.360557768924302,-25.410358565737052,-25.4601593625498,-25.50996015936255,-25.5597609561753,-25.609561752988046,-25.659362549800797,-25.709163346613547,-25.758964143426294,-25.808764940239044,-25.858565737051794,-25.90836653386454,-25.95816733067729,-26.00796812749004,-26.05776892430279,-26.10756972111554,-26.157370517928285,-26.207171314741036,-26.256972111553786,-26.306772908366533,-26.356573705179283,-26.406374501992033,-26.45617529880478,-26.50597609561753,-26.55577689243028,-26.605577689243027,-26.655378486055778,-26.705179282868524,-26.754980079681275,-26.804780876494025,-26.85458167330677,-26.904382470119522,-26.954183266932272,-27.00398406374502,-27.05378486055777,-27.10358565737052,-27.153386454183266,-27.203187250996017,-27.252988047808763,-27.302788844621514,-27.352589641434264,-27.40239043824701,-27.45219123505976,-27.50199203187251,-27.551792828685258,-27.60159362549801,-27.65139442231076,-27.701195219123505,-27.750996015936256,-27.800796812749002,-27.850597609561753,-27.900398406374503,-27.95019920318725,-28.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/large_positive.json b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/large_positive.json new file mode 100644 index 000000000000..16c792fc30d0 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/large_positive.json @@ -0,0 +1 @@ +{"expected":[0.34657359027997264,0.3404625388971485,0.33457109364634363,0.32888723800141867,0.32339984141210615,0.3180985771608443,0.3129738493750175,0.3080167280062865,0.3032188907641098,0.29857257113706154,0.2940705117583707,0.28970592247547644,0.285472442570696,0.28136410665409234,0.27737531381254793,0.27350079965272023,0.2697356109214776,0.26607508242682765,0.2625148160162577,0.2590506613986834,0.2556786986215131,0.2523952220363065,0.2491967256055976,0.2460798894200992,0.2430415673100419,0.24007877544713213,0.23718868184477704,0.23436859667404164,0.2316159633214523,0.22892835012238874,0.2263034427105594,0.2237390369300278,0.22123303226156635,0.21878342571982545,0.2163883061820061,0.21404584911246846,0.2117543116510497,0.209512028035861,0.20731740533400853,0.2051689194560914,0.2030651114324875,0.20100458393138315,0.19898599800025205,0.1970080700140687,0.19506956881496879,0.1931693130293561,0.1913061685496268,0.18947904616873648,0.1876868993568,0.1859287221697821,0.18420354728113442,0.1825104441279542,0.18084851716390002,0.17921690421169933,0.17761477490863203,0.17604132923887542,0.17449579614705407,0.17297743222775977,0.17148552048618954,0.17001936916540536,0.16857831063604226,0.16716170034459002,0.16576891581664793,0.1643993557118045,0.1630524389270272,0.16172760374566036,0.1604243070293291,0.15914202345022826,0.15788024476144552,0.1566384791031227,0.15541625034240525,0.15421309744526276,0.15302857387838759,0.15186224703949394,0.15071369771444632,0.14958251955974575,0.14846831860899332,0.14737071280203803,0.14628933153559295,0.145223815234181,0.14417381494033768,0.14313899192306542,0.14211901730359117,0.1411135716975377,0.14012234487266978,0.1391450354214251,0.13818135044748728,0.13723100526569784,0.13629372311464796,0.13536923488132424,0.13445727883722083,0.13355760038536138,0.13266995181770525,0.13179409208244222,0.13092978656070547,0.13007680685225964,0.12923493056974283,0.1284039411410666,0.1275836276195951,0.12677378450174875,0.12597421155169242,0.1251847136327896,0.12440510054551648,0.12363518687154913,0.12287479182374932,0.12212373910178903,0.12138185675316715,0.12064897703938371,0.11992493630704866,0.1192095748637136,0.11850273685822443,0.11780427016540394,0.11711402627488128,0.11643186018389479,0.11575763029390307,0.11509119831084653,0.11443242914890948,0.11378119083763925,0.11313735443228681,0.11250079392723795,0.11187138617241163,0.11124901079250638,0.11063355010898254,0.11002488906467202,0.10942291515091222,0.10882751833710647,0.10823859100261622,0.10765602787089558,0.10707972594578172,0.10650958444985963,0.105945504764822,0.1053873903737495,0.10483514680523891,0.10428868157931083,0.10374790415503064,0.10321272587977946,0.10268305994011473,0.10215882131416243,0.10163992672548543,0.10112629459837419,0.1006178450145096,0.10011449967094793,0.09961618183938206,0.0991228163266325,0.09863432943632637,0.09815064893172172,0.09767170399963773,0.09719742521545262,0.09672774450913209,0.09626259513225348,0.09580191162599098,0.09534562979003001,0.09489368665237892,0.09444602044004786,0.09400257055056606,0.09356327752430939,0.09312808301761154,0.09269692977663274,0.09226976161196136,0.09184652337392453,0.09142716092858447,0.0910116211343985,0.09059985181952153,0.09019180175973017,0.08978742065694863,0.08938665911835764,0.08898946863606766,0.08859580156733862,0.08820561111532939,0.08781885131036,0.08743547699167115,0.08705544378966538,0.08667870810861529,0.08630522710982402,0.08593495869522509,0.08556786149140737,0.08520389483405284,0.08484301875277463,0.08448519395634334,0.08413038181828997,0.08377854436287441,0.0834296442514087,0.08308364476892435,0.08274050981117419,0.08240020387195818,0.08206269203076469,0.0817279399407173,0.08139591381681881,0.0810665804244838,0.08073990706835155,0.08041586158137103,0.08009441231415076,0.0797755281245658,0.07945917836761426,0.07914533288551726,0.07883396199805462,0.0785250364931304,0.07821852761756136,0.07791440706808284,0.07761264698256543,0.0773132199314374,0.07701609890930634,0.0767212573267757,0.07642866900245006,0.07613830815512451,0.0758501493961532,0.075564167721992,0.07528033850691103,0.07499863749587221,0.07471904079756761,0.07444152487761452,0.07416606655190286,0.07389264298009116,0.07362123165924707,0.07335181041762912,0.07308435740860512,0.072818851104705,0.07255527029180339,0.07229359406342949,0.07203380181520064,0.07177587323937647,0.07151978831953061,0.0712655273253372,0.07101307080746883,0.0707623995926038,0.07051349477853941,0.07026633772940889,0.07002091007099948,0.06977719368616903,0.06953517071035871,0.06929482352719973,0.06905613476421127,0.06881908728858802,0.06858366420307464,0.06834984884192546,0.06811762476694706,0.06788697576362183,0.06765788583731083,0.06743033920953362,0.06720432031432362,0.06697981379465702,0.0667568044989536,0.06653527747764763,0.06631521797982756,0.06609661144994233,0.06587944352457338,0.06566370002927034,0.06544936697544936,0.06523643055735204,0.06502487714906445,0.06481469330159394,0.0646058657400031,0.06439838136059926,0.0641922272281783,0.0639873905733217,0.06378385878974537,0.06358161943169947,0.06338066021141767,0.06318096899661509,0.06298253380803359,0.0627853428170336,0.06258938434323127,0.062394646852179984,0.06220111895309541,0.062008789396622944,0.06181764707264666,0.06162768100813914,0.06143888036505081,0.06125123443823829,0.061064732653430966,0.06087936456523462,0.06069511985517166,0.06051198832975703,0.060329959918609025,0.06014902467259428,0.05996917276200644,0.05979039447477725,0.05961268021472009,0.059436020499804725,0.059260405960462836,0.05908582733792381,0.05891227548257977,0.058739741352379846,0.058568216011252484,0.05839769062755546,0.058228156472553305,0.05805960491892103,0.057892027439274046,0.05772541560472367,0.05755976108345749,0.057395055639344356,0.05723129113056335,0.05706845950825623,0.056906552815203106,0.05674556318452049,0.05658548283838161,0.056426304086758555,0.05626801932618552,0.05611062103854294,0.0559541017898622,0.05579845422915034,0.05564367108723433,0.055489745175624786,0.05533666938539848,0.055184436686099396,0.05503304012465806,0.05488247282432856,0.054732727983643155,0.054583798875384074,0.05443567884557193,0.05428836131247092,0.054141839765610045,0.053996107764820174,0.053851158939286874,0.053706986986618376,0.053563585671928544,0.05342094882693471,0.053279070349069764,0.05313794420060859,0.0529975644078083,0.0528579250600621,0.05271902030906679,0.05258084436800308,0.05244339151072908,0.05230665607098634,0.052170632441618396,0.052035315073801464,0.051900698476287234,0.05176677721465731,0.05163354591058935,0.05150099924113444,0.05136913193800565,0.05123793878687766,0.05110741462669694,0.05097755434900263,0.05084835289725772,0.05071980526619054,0.05059190650114603,0.05046465169744713,0.050338035999765524,0.05021205460150216,0.050086702744176856,0.049961975716827194,0.049837868855416384,0.04971437754224996,0.049591497205401104,0.04946922331814467,0.049347551398399414,0.04922647700817853,0.04910599575304837,0.048986103281594987,0.048866795284898616,0.0487480674960158,0.04862991568946905,0.048512335680744,0.04839532332579385,0.0482788745205509,0.04816298520044534,0.048047651339930775,0.04793286895201668,0.047818634087807614,0.04770494283604889,0.04759179132267887,0.04747917571038757,0.04736709219818156,0.04725553702095505,0.047144506449067,0.04703399678792425,0.04692400437757045,0.046814525592280935,0.046705556840163004,0.04659709456276206,0.04648913523467305,0.04638167536315749,0.046274711487765595,0.04616824017996383,0.04606225804276751,0.04595676171037852,0.04585174784782798,0.04574721315062382,0.045643154344403206,0.04553956818458969,0.04543645145605506,0.04533380097278575,0.045231613577553814,0.04512988614159236,0.04502861556427532,0.04492779877280159,0.044827432721883394,0.04472751439343879,0.044628040796288425,0.04452900896585615,0.04443041596387377,0.044332258878089705,0.04423453482198143,0.044137240934471834,0.044040374379649236,0.043943932346491105,0.04384791204859154,0.04375231072389211,0.043657125634416365,0.04356235406600783,0.04346799332807131,0.04337404075331765,0.04328049369751176,0.04318734953922395,0.04309460567958439,0.04300225954204087,0.04291030857211955,0.042818750237188855,0.04272758202622638,0.04263680144958878,0.04254640603878454,0.04245639334624976,0.04236676094512666,0.04227750642904497,0.04218862741190607,0.04210012152766981,0.042011986430144116,0.04192421979277712,0.04183681930845199,0.04174978268928431,0.04166310766642194,0.041576791989847435,0.04149083342818287,0.04140522976849712,0.041319978816115585,0.04123507839443208,0.041150526344723264,0.04106632052596525,0.040982458814652435,0.040898939104618615,0.040815759306860294,0.040732917349362074,0.04065041117692427,0.04056823875099255,0.040486398049489676,0.04040488706664924,0.04032370381285154,0.04024284631446121,0.04016231261366705,0.040082100768323595,0.04000220885179469,0.03992263495279888,0.03984337717525668,0.03976443363813967,0.03968580247532133,0.03960748183542972,0.03952946988170184,0.039451764791839775,0.03937436475786849,0.03929726798599531,0.03922047269647107,0.03914397712345285,0.039067779514868416,0.03899187813228209,0.03891627125076236,0.038840957158750855,0.03876593415793302,0.03869120056311012,0.038616754702072896,0.03854259491547647,0.038468719556716935,0.0383951269918092,0.038321815599266236,0.03824878376997981,0.038176029907102484,0.03810355242593107,0.038031349753791244,0.03795942032992367,0.037887762605371245,0.03781637504286778,0.03774525611672775,0.03767440431273751,0.03760381812804754,0.037533496071066035,0.03746343666135362,0.03739363842951923,0.0373240999171173,0.037254819676545835,0.037185796270945905,0.03711702827410207,0.03704851427034397,0.03698025285444896,0.03691224263154597,0.036844482217020226,0.03677697023641911,0.03670970532535915,0.03664268612943383,0.03657591130412261,0.036509379514700804,0.036443089436150475,0.036377039753072375,0.03631122915959875,0.036245656359307106,0.03618032006513496,0.03611521899929549,0.03605035189319406,0.03598571748734567,0.035921314531293345,0.035857141783527315,0.0357931980114051,0.035729481991072475],"x":[3.0,3.049800796812749,3.099601593625498,3.149402390438247,3.199203187250996,3.249003984063745,3.298804780876494,3.348605577689243,3.398406374501992,3.448207171314741,3.49800796812749,3.547808764940239,3.597609561752988,3.647410358565737,3.697211155378486,3.747011952191235,3.7968127490039842,3.846613545816733,3.896414342629482,3.946215139442231,3.99601593625498,4.0458167330677295,4.095617529880478,4.145418326693227,4.195219123505976,4.245019920318725,4.294820717131474,4.344621513944223,4.394422310756972,4.444223107569721,4.49402390438247,4.543824701195219,4.5936254980079685,4.643426294820717,4.693227091633466,4.743027888446215,4.792828685258964,4.842629482071713,4.892430278884462,4.942231075697211,4.99203187250996,5.04183266932271,5.091633466135458,5.1414342629482075,5.191235059760956,5.241035856573705,5.290836653386454,5.340637450199203,5.390438247011952,5.440239043824701,5.49003984063745,5.539840637450199,5.589641434262949,5.639442231075697,5.6892430278884465,5.739043824701195,5.788844621513944,5.838645418326693,5.888446215139442,5.938247011952191,5.98804780876494,6.03784860557769,6.087649402390438,6.137450199203188,6.187250996015936,6.2370517928286855,6.286852589641434,6.336653386454183,6.386454183266932,6.436254980079681,6.48605577689243,6.535856573705179,6.585657370517929,6.635458167330677,6.685258964143427,6.735059760956175,6.7848605577689245,6.834661354581673,6.884462151394422,6.934262948207171,6.98406374501992,7.03386454183267,7.083665338645418,7.133466135458168,7.183266932270916,7.233067729083666,7.282868525896414,7.3326693227091635,7.382470119521912,7.432270916334661,7.48207171314741,7.531872509960159,7.581673306772909,7.631474103585657,7.681274900398407,7.731075697211155,7.780876494023905,7.830677290836653,7.8804780876494025,7.930278884462151,7.9800796812749,8.02988047808765,8.079681274900398,8.129482071713147,8.179282868525897,8.229083665338646,8.278884462151394,8.328685258964143,8.378486055776893,8.428286852589641,8.47808764940239,8.52788844621514,8.577689243027889,8.627490039840637,8.677290836653386,8.727091633466136,8.776892430278885,8.826693227091633,8.876494023904382,8.926294820717132,8.97609561752988,9.025896414342629,9.07569721115538,9.125498007968128,9.175298804780876,9.225099601593625,9.274900398406375,9.324701195219124,9.374501992031872,9.42430278884462,9.474103585657371,9.52390438247012,9.573705179282868,9.623505976095618,9.673306772908367,9.723107569721115,9.772908366533864,9.822709163346614,9.872509960159363,9.922310756972111,9.97211155378486,10.02191235059761,10.071713147410359,10.121513944223107,10.171314741035857,10.221115537848606,10.270916334661354,10.320717131474103,10.370517928286853,10.420318725099602,10.47011952191235,10.5199203187251,10.569721115537849,10.619521912350598,10.669322709163346,10.719123505976096,10.768924302788845,10.818725099601593,10.868525896414342,10.918326693227092,10.96812749003984,11.01792828685259,11.06772908366534,11.117529880478088,11.167330677290837,11.217131474103585,11.266932270916335,11.316733067729084,11.366533864541832,11.41633466135458,11.466135458167331,11.51593625498008,11.565737051792828,11.615537848605578,11.665338645418327,11.715139442231076,11.764940239043824,11.814741035856574,11.864541832669323,11.914342629482071,11.96414342629482,12.01394422310757,12.063745019920319,12.113545816733067,12.163346613545817,12.213147410358566,12.262948207171315,12.312749003984063,12.362549800796813,12.412350597609562,12.46215139442231,12.51195219123506,12.56175298804781,12.611553784860558,12.661354581673306,12.711155378486056,12.760956175298805,12.810756972111554,12.860557768924302,12.910358565737052,12.9601593625498,13.00996015936255,13.0597609561753,13.109561752988048,13.159362549800797,13.209163346613545,13.258964143426295,13.308764940239044,13.358565737051793,13.408366533864541,13.458167330677291,13.50796812749004,13.557768924302788,13.607569721115539,13.657370517928287,13.707171314741036,13.756972111553784,13.806772908366534,13.856573705179283,13.906374501992032,13.95617529880478,14.00597609561753,14.055776892430279,14.105577689243027,14.155378486055778,14.205179282868526,14.254980079681275,14.304780876494023,14.354581673306773,14.404382470119522,14.45418326693227,14.50398406374502,14.55378486055777,14.603585657370518,14.653386454183266,14.703187250996017,14.752988047808765,14.802788844621514,14.852589641434262,14.902390438247012,14.952191235059761,15.00199203187251,15.05179282868526,15.101593625498008,15.151394422310757,15.201195219123505,15.250996015936256,15.300796812749004,15.350597609561753,15.400398406374501,15.450199203187251,15.5,15.549800796812749,15.599601593625499,15.649402390438247,15.699203187250996,15.749003984063744,15.798804780876495,15.848605577689243,15.898406374501992,15.94820717131474,15.99800796812749,16.04780876494024,16.09760956175299,16.147410358565736,16.197211155378486,16.247011952191237,16.296812749003983,16.346613545816734,16.39641434262948,16.44621513944223,16.49601593625498,16.545816733067728,16.595617529880478,16.64541832669323,16.695219123505975,16.745019920318725,16.794820717131476,16.844621513944222,16.894422310756973,16.94422310756972,16.99402390438247,17.04382470119522,17.093625498007967,17.143426294820717,17.193227091633467,17.243027888446214,17.292828685258964,17.342629482071715,17.39243027888446,17.44223107569721,17.49203187250996,17.54183266932271,17.59163346613546,17.641434262948206,17.691235059760956,17.741035856573706,17.790836653386453,17.840637450199203,17.890438247011954,17.9402390438247,17.99003984063745,18.0398406374502,18.089641434262948,18.139442231075698,18.189243027888445,18.239043824701195,18.288844621513945,18.338645418326692,18.388446215139442,18.438247011952193,18.48804780876494,18.53784860557769,18.58764940239044,18.637450199203187,18.687250996015937,18.737051792828684,18.786852589641434,18.836653386454184,18.88645418326693,18.93625498007968,18.98605577689243,19.03585657370518,19.08565737051793,19.13545816733068,19.185258964143426,19.235059760956176,19.284860557768923,19.334661354581673,19.384462151394423,19.43426294820717,19.48406374501992,19.53386454183267,19.583665338645417,19.633466135458168,19.683266932270918,19.733067729083665,19.782868525896415,19.83266932270916,19.882470119521912,19.932270916334662,19.98207171314741,20.03187250996016,20.08167330677291,20.131474103585656,20.181274900398407,20.231075697211157,20.280876494023904,20.330677290836654,20.3804780876494,20.43027888446215,20.4800796812749,20.529880478087648,20.5796812749004,20.62948207171315,20.679282868525895,20.729083665338646,20.778884462151396,20.828685258964143,20.878486055776893,20.92828685258964,20.97808764940239,21.02788844621514,21.077689243027887,21.127490039840637,21.177290836653388,21.227091633466134,21.276892430278885,21.326693227091635,21.37649402390438,21.426294820717132,21.47609561752988,21.52589641434263,21.57569721115538,21.625498007968126,21.675298804780876,21.725099601593627,21.774900398406373,21.824701195219124,21.874501992031874,21.92430278884462,21.97410358565737,22.02390438247012,22.073705179282868,22.12350597609562,22.173306772908365,22.223107569721115,22.272908366533866,22.322709163346612,22.372509960159363,22.422310756972113,22.47211155378486,22.52191235059761,22.57171314741036,22.621513944223107,22.671314741035857,22.721115537848604,22.770916334661354,22.820717131474105,22.87051792828685,22.9203187250996,22.970119521912352,23.0199203187251,23.06972111553785,23.1195219123506,23.169322709163346,23.219123505976096,23.268924302788843,23.318725099601593,23.368525896414344,23.41832669322709,23.46812749003984,23.51792828685259,23.567729083665338,23.617529880478088,23.66733067729084,23.717131474103585,23.766932270916335,23.816733067729082,23.866533864541832,23.916334661354583,23.96613545816733,24.01593625498008,24.06573705179283,24.115537848605577,24.165338645418327,24.215139442231077,24.264940239043824,24.314741035856574,24.36454183266932,24.41434262948207,24.46414342629482,24.51394422310757,24.56374501992032,24.61354581673307,24.663346613545816,24.713147410358566,24.762948207171316,24.812749003984063,24.862549800796813,24.91235059760956,24.96215139442231,25.01195219123506,25.061752988047807,25.111553784860558,25.161354581673308,25.211155378486055,25.260956175298805,25.310756972111555,25.360557768924302,25.410358565737052,25.4601593625498,25.50996015936255,25.5597609561753,25.609561752988046,25.659362549800797,25.709163346613547,25.758964143426294,25.808764940239044,25.858565737051794,25.90836653386454,25.95816733067729,26.00796812749004,26.05776892430279,26.10756972111554,26.157370517928285,26.207171314741036,26.256972111553786,26.306772908366533,26.356573705179283,26.406374501992033,26.45617529880478,26.50597609561753,26.55577689243028,26.605577689243027,26.655378486055778,26.705179282868524,26.754980079681275,26.804780876494025,26.85458167330677,26.904382470119522,26.954183266932272,27.00398406374502,27.05378486055777,27.10358565737052,27.153386454183266,27.203187250996017,27.252988047808763,27.302788844621514,27.352589641434264,27.40239043824701,27.45219123505976,27.50199203187251,27.551792828685258,27.60159362549801,27.65139442231076,27.701195219123505,27.750996015936256,27.800796812749002,27.850597609561753,27.900398406374503,27.95019920318725,28.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/larger_negative.json b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/larger_negative.json new file mode 100644 index 000000000000..111c68ecb2d3 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/larger_negative.json @@ -0,0 +1 @@ +{"expected":[-0.035729481991072475,-0.03554724134027826,-0.035366851088091206,-0.03518828318299127,-0.035011510137841796,-0.03483650501576095,-0.034663241416415635,-0.03449169346272319,-0.03432183578794688,-0.03415364352317151,-0.03398709228514617,-0.03382215816448174,-0.03365881771419102,-0.033497047938559885,-0.03333682628233855,-0.03317813062024202,-0.033020939246749634,-0.032865230866193695,-0.032710984583127746,-0.03255817989296524,-0.0324067966728799,-0.03225681517295913,-0.03210821600760244,-0.03196098014715696,-0.0318150889097823,-0.031670523953537796,-0.03152726726868465,-0.031385301170196514,-0.031244608290471886,-0.03110517157224186,-0.030966974261667266,-0.030829999901619384,-0.030694232325138376,-0.030559655649064155,-0.030426254267834272,-0.03029401284744386,-0.030162916319562583,-0.03003294987580395,-0.029904098962142356,-0.029776349273473474,-0.029649686748313586,-0.029524097563633996,-0.029399568129826182,-0.029276085085794146,-0.029153635294170026,-0.029032205836649515,-0.02891178400944342,-0.02879235731884226,-0.02867391347689035,-0.02855644039716645,-0.028439926190667847,-0.028324359161794887,-0.028209727804433152,-0.02809602079813057,-0.02798322700436663,-0.027871335462911324,-0.027760335388271135,-0.02765021616621975,-0.027540967350411154,-0.0274325786590727,-0.027325039971776217,-0.02721834132628469,-0.027112472915472766,-0.027007425084318838,-0.026903188326966927,-0.026799753283856403,-0.026697110738917743,-0.026595251616832554,-0.0264941669803562,-0.026393848027701245,-0.026294286089980273,-0.026195472628706366,-0.026097399233349854,-0.026000057618949742,-0.025903439623778512,-0.02580753720705882,-0.025712342446730808,-0.02561784753726866,-0.02552404478754526,-0.02543092661874355,-0.025338485562313547,-0.025246714257973802,-0.025155605451756154,-0.025065151994092722,-0.024975346837944088,-0.02488618303696758,-0.024797653743724706,-0.024709752207926775,-0.0246224717747177,-0.024535805882993117,-0.02444974806375495,-0.024364291938500447,-0.02427943121764496,-0.024195159698977634,-0.024111471266149067,-0.024028359887190428,-0.02394581961306299,-0.023863844576237588,-0.02378242898930311,-0.023701567143603438,-0.02362125340790212,-0.023541482227074157,-0.023462248120824137,-0.02338354568243032,-0.023305369577513835,-0.02322771454283257,-0.023150575385099098,-0.02307394697982206,-0.022997824270170584,-0.022922202265861048,-0.022847076042065796,-0.02277244073834328,-0.022698291557589068,-0.022624623765007325,-0.02255143268710229,-0.02247871371068926,-0.02240646228192467,-0.02233467390535483,-0.022263344142982915,-0.02219246861335379,-0.02212204299065627,-0.02205206300384241,-0.021982524435763543,-0.021913423122322532,-0.021844754951642044,-0.021776515863248407,-0.021708701847270705,-0.02164130894365484,-0.021574333241392175,-0.021507770877762462,-0.021441618037590787,-0.021375870952518135,-0.02131052590028544,-0.021245579204030616,-0.02118102723159852,-0.02111686639486339,-0.02105309314906364,-0.020989703992148594,-0.020926695464137092,-0.020864064146487525,-0.020801806661479263,-0.020739919671605014,-0.020678399878974102,-0.02061724402472631,-0.020556448888456074,-0.02049601128764688,-0.0204359280771156,-0.020376196148466575,-0.020316812429555256,-0.020257773883961216,-0.020199077510470283,-0.020140720342565747,-0.020082699447928242,-0.02002501192794439,-0.019967654917223767,-0.019910625583124265,-0.019853921125285463,-0.019797538775170057,-0.019741475795613,-0.01968572948037836,-0.01963029715372359,-0.019575176169971224,-0.019520363913087715,-0.019465857796269366,-0.01941165526153517,-0.019357753779326425,-0.019304150848113048,-0.019250843994006367,-0.019197830770378344,-0.019145108757487064,-0.019092675562108388,-0.019040528817173642,-0.018988666181413247,-0.018937085339006104,-0.018885783999234792,-0.018834759896146212,-0.018784010788217877,-0.018733534458029444,-0.018683328711939628,-0.01863339137976825,-0.01858372031448342,-0.01853431339189364,-0.018485168510344877,-0.018436283590422427,-0.018387656574657477,-0.018339285427238308,-0.018291168133726082,-0.018243302700775055,-0.018195687155857176,-0.01814831954699101,-0.01810119794247489,-0.018054320430624174,-0.018007685119512635,-0.01796129013671781,-0.01791513362907029,-0.017869213762406865,-0.017823528721327482,-0.01777807670895587,-0.017732855946703877,-0.017687864674039357,-0.017643101148257612,-0.017598563644256278,-0.017554250454313608,-0.01751015988787013,-0.01746629027131356,-0.01742263994776694,-0.01737920727687998,-0.017335990634623467,-0.01729298841308678,-0.017250199020278377,-0.01720762087992926,-0.01716525243129935,-0.017123092128986675,-0.017081138442739452,-0.01703938985727079,-0.016997844872076253,-0.01695650200125399,-0.016915359773327497,-0.01687441673107102,-0.01683367143133737,-0.016793122444888352,-0.016752768356227566,-0.016712607763435628,-0.01667263927800776,-0.01663286152469371,-0.016593273141339973,-0.01655387277873422,-0.01651465910045196,-0.01647563078270541,-0.016436786514194442,-0.016398124995959693,-0.0163596449412377,-0.016321345075318097,-0.016283224135402796,-0.01624528087046717,-0.01620751404112312,-0.016169922419484107,-0.016132504789032002,-0.016095259944485855,-0.016058186691672378,-0.016021283847398315,-0.015984550239324484,-0.01594798470584164,-0.015911586095947932,-0.015875353269128128,-0.01583928509523443,-0.01580338045436894,-0.015767638236767703,-0.01573205734268633,-0.01569663668228717,-0.015661375175528004,-0.01562627175205221,-0.015591325351080454,-0.015556534921303771,-0.015521899420778135,-0.01548741781682038,-0.015453089085905541,-0.015418912213565554,-0.015384886194289292,-0.015351010031423903,-0.015317282737077486,-0.015283703332023021,-0.015250270845603585,-0.015216984315638768,-0.015183842788332362,-0.015150845318181203,-0.015117990967885266,-0.015085278808258851,-0.015052707918142979,-0.015020277384318883,-0.014987986301422656,-0.014955833771860952,-0.014923818905727802,-0.014891940820722467,-0.014860198642068409,-0.014828591502433187,-0.014797118541849482,-0.01476577890763705,-0.014734571754325729,-0.014703496243579339,-0.014672551544120623,-0.0146417368316571,-0.01461105128880784,-0.014580494105031169,-0.014550064476553295,-0.014519761606297801,-0.014489584703816035,-0.014459532985218343,-0.014429605673106204,-0.01439980199650515,-0.014370121190798547,-0.014340562497662196,-0.014311125164999723,-0.01428180844687878,-0.014252611603468017,-0.014223533900974823,-0.014194574611583844,-0.014165733013396247,-0.0141370083903697,-0.014108400032259109,-0.014079907234558065,-0.014051529298440996,-0.014023265530706016,-0.01399511524371846,-0.013967077755355117,-0.013939152388949112,-0.013911338473235446,-0.013883635342297208,-0.013856042335512412,-0.013828558797501469,-0.01380118407807528,-0.013773917532183962,-0.013746758519866164,-0.013719706406198979,-0.013692760561248456,-0.013665920360020699,-0.013639185182413534,-0.013612554413168713,-0.013586027441824753,-0.013559603662670231,-0.013533282474697709,-0.013507063281558122,-0.013480945491515753,-0.013454928517403686,-0.013429011776579828,-0.013403194690883352,-0.013377476686591741,-0.01335185719437825,-0.013326335649269898,-0.01330091149060592,-0.013275584161996708,-0.013250353111283196,-0.01322521779049676,-0.013200177655819496,-0.013175232167545025,-0.013150380790039688,-0.013125622991704205,-0.013100958244935772,-0.013076386026090545,-0.01305190581544661,-0.013027517097167303,-0.013003219359264979,-0.012979012093565181,-0.01295489479567121,-0.012930866964929061,-0.01290692810439279,-0.012883077720790241,-0.012859315324489163,-0.01283564042946368,-0.012812052553261169,-0.012788551216969455,-0.012765135945184419,-0.012741806265977915,-0.012718561710866064,-0.012695401814777883,-0.012672326116024278,-0.012649334156267332,-0.012626425480489973,-0.01260359963696594,-0.012580856177230097,-0.012558194656049036,-0.01253561463139204,-0.012513115664402318,-0.012490697319368577,-0.012468359163696884,-0.01244610076788284,-0.012423921705484045,-0.012401821553092851,-0.012379799890309429,-0.01235785629971508,-0.012335990366845892,-0.0123142016801666,-0.012292489831044797,-0.012270854413725359,-0.01224929502530518,-0.01222781126570814,-0.012206402737660368,-0.012185069046665742,-0.012163809800981655,-0.012142624611595026,-0.012121513092198574,-0.012100474859167326,-0.012079509531535384,-0.012058616730972915,-0.0120377960817634,-0.012017047210781097,-0.011996369747468755,-0.011975763323815542,-0.011955227574335217,-0.011934762136044512,-0.011914366648441746,-0.011894040753485642,-0.011873784095574384,-0.011853596321524868,-0.011833477080552181,-0.011813426024249266,-0.011793442806566808,-0.011773527083793337,-0.011753678514535505,-0.011733896759698575,-0.011714181482467115,-0.011694532348285876,-0.011674949024840852,-0.011655431182040562,-0.011635978491997483,-0.011616590629009703,-0.011597267269542712,-0.011578008092211439,-0.01155881277776239,-0.011539681009056052,-0.011520612471049378,-0.011501606850778511,-0.011482663837341667,-0.011463783121882168,-0.011444964397571653,-0.011426207359593456,-0.01140751170512615,-0.011388877133327244,-0.011370303345317039,-0.011351790044162646,-0.01133333693486218,-0.011314943724329054,-0.01129661012137649,-0.011278335836702126,-0.011260120582872816,-0.01124196407430955,-0.011223866027272517,-0.011205826159846334,-0.01118784419192541,-0.011169919845199426,-0.011152052843138993,-0.011134242910981421,-0.011116489775716634,-0.011098793166073212,-0.01108115281250458,-0.011063568447175317,-0.011046039803947598,-0.011028566618367763,-0.011011148627653016,-0.010993785570678257,-0.010976477187963019,-0.010959223221658541,-0.01094202341553498,-0.010924877514968694,-0.010907785266929707,-0.010890746419969234,-0.010873760724207364,-0.010856827931320836,-0.010839947794530944,-0.010823120068591534,-0.010806344509777131,-0.010789620875871177,-0.010772948926154356,-0.010756328421393065,-0.010739759123827937,-0.010723240797162543,-0.010706773206552115,-0.010690356118592445,-0.01067398930130884,-0.010657672524145213,-0.010641405557953227,-0.010625188174981585,-0.0106090201488654,-0.010592901254615655,-0.010576831268608764,-0.010560809968576237,-0.010544837133594418,-0.01052891254407435,-0.010513035981751682,-0.01049720722967672,-0.010481426072204527,-0.010465692294985144,-0.010450005684953875,-0.01043436603032166,-0.010418773120565557,-0.010403226746419287,-0.010387726699863873,-0.010372272774118356,-0.010356864763630604,-0.010341502464068196,-0.010326185672309383,-0.010310914186434145,-0.010295687805715307,-0.010280506330609741,-0.010265369562749661,-0.010250277304933967,-0.010235229361119695,-0.010220225536413515,-0.010205265637063317,-0.010190349470449877,-0.010175476845078586,-0.010160647570571247,-0.010145861457657963,-0.010131118318169069,-0.010116417965027168,-0.010101760212239193,-0.010087144874888581,-0.010072571769127485,-0.010058040712169076,-0.010043551522279882,-0.010029104018772229,-0.01001469802199671,-0.010000333353334763],"x":[-28.0,-28.143426294820717,-28.286852589641434,-28.43027888446215,-28.573705179282868,-28.717131474103585,-28.860557768924302,-29.00398406374502,-29.147410358565736,-29.290836653386453,-29.43426294820717,-29.577689243027887,-29.721115537848604,-29.86454183266932,-30.00796812749004,-30.15139442231076,-30.294820717131476,-30.438247011952193,-30.58167330677291,-30.725099601593627,-30.868525896414344,-31.01195219123506,-31.155378486055778,-31.298804780876495,-31.44223107569721,-31.58565737051793,-31.729083665338646,-31.872509960159363,-32.01593625498008,-32.1593625498008,-32.30278884462152,-32.44621513944223,-32.58964143426295,-32.733067729083665,-32.876494023904385,-33.0199203187251,-33.16334661354582,-33.30677290836653,-33.45019920318725,-33.59362549800797,-33.73705179282869,-33.8804780876494,-34.02390438247012,-34.167330677290835,-34.310756972111555,-34.45418326693227,-34.59760956175299,-34.7410358565737,-34.88446215139442,-35.02788844621514,-35.17131474103586,-35.31474103585657,-35.45816733067729,-35.601593625498005,-35.745019920318725,-35.88844621513944,-36.03187250996016,-36.17529880478088,-36.31872509960159,-36.462151394422314,-36.60557768924303,-36.74900398406375,-36.89243027888446,-37.03585657370518,-37.179282868525895,-37.322709163346616,-37.46613545816733,-37.60956175298805,-37.75298804780876,-37.896414342629484,-38.0398406374502,-38.18326693227092,-38.32669322709163,-38.47011952191235,-38.613545816733065,-38.756972111553786,-38.9003984063745,-39.04382470119522,-39.18725099601593,-39.330677290836654,-39.47410358565737,-39.61752988047809,-39.7609561752988,-39.90438247011952,-40.04780876494024,-40.191235059760956,-40.33466135458168,-40.47808764940239,-40.62151394422311,-40.764940239043824,-40.908366533864545,-41.05179282868526,-41.19521912350598,-41.33864541832669,-41.48207171314741,-41.625498007968126,-41.76892430278885,-41.91235059760956,-42.05577689243028,-42.199203187250994,-42.342629482071715,-42.48605577689243,-42.62948207171315,-42.77290836653386,-42.91633466135458,-43.059760956175296,-43.20318725099602,-43.34661354581673,-43.49003984063745,-43.633466135458164,-43.776892430278885,-43.9203187250996,-44.06374501992032,-44.20717131474104,-44.35059760956175,-44.49402390438247,-44.63745019920319,-44.78087649402391,-44.92430278884462,-45.06772908366534,-45.211155378486055,-45.354581673306775,-45.49800796812749,-45.64143426294821,-45.78486055776892,-45.92828685258964,-46.07171314741036,-46.21513944223108,-46.35856573705179,-46.50199203187251,-46.645418326693225,-46.788844621513945,-46.93227091633466,-47.07569721115538,-47.21912350597609,-47.36254980079681,-47.50597609561753,-47.64940239043825,-47.79282868525896,-47.93625498007968,-48.0796812749004,-48.223107569721115,-48.366533864541836,-48.50996015936255,-48.65338645418327,-48.79681274900398,-48.940239043824704,-49.08366533864542,-49.22709163346614,-49.37051792828685,-49.51394422310757,-49.657370517928285,-49.800796812749006,-49.94422310756972,-50.08764940239044,-50.23107569721115,-50.374501992031874,-50.51792828685259,-50.66135458167331,-50.80478087649402,-50.94820717131474,-51.091633466135455,-51.235059760956176,-51.37848605577689,-51.52191235059761,-51.66533864541832,-51.808764940239044,-51.95219123505976,-52.09561752988048,-52.2390438247012,-52.38247011952191,-52.52589641434263,-52.669322709163346,-52.81274900398407,-52.95617529880478,-53.0996015936255,-53.243027888446214,-53.386454183266935,-53.52988047808765,-53.67330677290837,-53.81673306772908,-53.9601593625498,-54.103585657370516,-54.24701195219124,-54.39043824701195,-54.53386454183267,-54.677290836653384,-54.820717131474105,-54.96414342629482,-55.10756972111554,-55.25099601593625,-55.39442231075697,-55.537848605577686,-55.68127490039841,-55.82470119521912,-55.96812749003984,-56.11155378486056,-56.254980079681275,-56.398406374501995,-56.54183266932271,-56.68525896414343,-56.82868525896414,-56.97211155378486,-57.11553784860558,-57.2589641434263,-57.40239043824701,-57.54581673306773,-57.689243027888445,-57.832669322709165,-57.97609561752988,-58.1195219123506,-58.26294820717131,-58.40637450199203,-58.54980079681275,-58.69322709163347,-58.83665338645418,-58.9800796812749,-59.123505976095615,-59.266932270916335,-59.41035856573705,-59.55378486055777,-59.69721115537848,-59.8406374501992,-59.98406374501992,-60.12749003984064,-60.27091633466136,-60.41434262948207,-60.55776892430279,-60.701195219123505,-60.844621513944226,-60.98804780876494,-61.13147410358566,-61.27490039840637,-61.418326693227094,-61.56175298804781,-61.70517928286853,-61.84860557768924,-61.99203187250996,-62.135458167330675,-62.278884462151396,-62.42231075697211,-62.56573705179283,-62.70916334661354,-62.852589641434264,-62.99601593625498,-63.1394422310757,-63.28286852589641,-63.42629482071713,-63.569721115537845,-63.713147410358566,-63.85657370517928,-64.0,-64.14342629482071,-64.28685258964144,-64.43027888446215,-64.57370517928287,-64.71713147410358,-64.86055776892431,-65.00398406374502,-65.14741035856574,-65.29083665338645,-65.43426294820718,-65.57768924302789,-65.7211155378486,-65.86454183266932,-66.00796812749005,-66.15139442231076,-66.29482071713147,-66.43824701195219,-66.58167330677291,-66.72509960159363,-66.86852589641434,-67.01195219123505,-67.15537848605578,-67.2988047808765,-67.44223107569721,-67.58565737051792,-67.72908366533865,-67.87250996015936,-68.01593625498008,-68.1593625498008,-68.30278884462152,-68.44621513944223,-68.58964143426294,-68.73306772908367,-68.87649402390439,-69.0199203187251,-69.16334661354581,-69.30677290836654,-69.45019920318725,-69.59362549800797,-69.73705179282868,-69.88047808764941,-70.02390438247012,-70.16733067729083,-70.31075697211155,-70.45418326693228,-70.59760956175299,-70.7410358565737,-70.88446215139442,-71.02788844621514,-71.17131474103586,-71.31474103585657,-71.45816733067728,-71.60159362549801,-71.74501992031873,-71.88844621513944,-72.03187250996017,-72.17529880478088,-72.3187250996016,-72.4621513944223,-72.60557768924303,-72.74900398406375,-72.89243027888446,-73.03585657370517,-73.1792828685259,-73.32270916334662,-73.46613545816733,-73.60956175298804,-73.75298804780877,-73.89641434262948,-74.0398406374502,-74.18326693227091,-74.32669322709164,-74.47011952191235,-74.61354581673307,-74.75697211155378,-74.9003984063745,-75.04382470119522,-75.18725099601593,-75.33067729083665,-75.47410358565737,-75.61752988047809,-75.7609561752988,-75.90438247011951,-76.04780876494024,-76.19123505976096,-76.33466135458167,-76.4780876494024,-76.62151394422311,-76.76494023904382,-76.90836653386454,-77.05179282868527,-77.19521912350598,-77.33864541832669,-77.4820717131474,-77.62549800796813,-77.76892430278885,-77.91235059760956,-78.05577689243027,-78.199203187251,-78.34262948207171,-78.48605577689243,-78.62948207171314,-78.77290836653387,-78.91633466135458,-79.0597609561753,-79.20318725099601,-79.34661354581674,-79.49003984063745,-79.63346613545816,-79.77689243027888,-79.9203187250996,-80.06374501992032,-80.20717131474103,-80.35059760956176,-80.49402390438247,-80.63745019920319,-80.7808764940239,-80.92430278884463,-81.06772908366534,-81.21115537848605,-81.35458167330677,-81.4980079681275,-81.64143426294821,-81.78486055776892,-81.92828685258964,-82.07171314741036,-82.21513944223108,-82.35856573705179,-82.5019920318725,-82.64541832669323,-82.78884462151395,-82.93227091633466,-83.07569721115537,-83.2191235059761,-83.36254980079681,-83.50597609561753,-83.64940239043824,-83.79282868525897,-83.93625498007968,-84.0796812749004,-84.22310756972112,-84.36653386454184,-84.50996015936255,-84.65338645418326,-84.79681274900399,-84.9402390438247,-85.08366533864542,-85.22709163346613,-85.37051792828686,-85.51394422310757,-85.65737051792829,-85.800796812749,-85.94422310756973,-86.08764940239044,-86.23107569721115,-86.37450199203187,-86.5179282868526,-86.66135458167331,-86.80478087649402,-86.94820717131473,-87.09163346613546,-87.23505976095618,-87.37848605577689,-87.5219123505976,-87.66533864541833,-87.80876494023904,-87.95219123505976,-88.09561752988049,-88.2390438247012,-88.38247011952191,-88.52589641434263,-88.66932270916335,-88.81274900398407,-88.95617529880478,-89.0996015936255,-89.24302788844622,-89.38645418326693,-89.52988047808765,-89.67330677290836,-89.81673306772909,-89.9601593625498,-90.10358565737052,-90.24701195219123,-90.39043824701196,-90.53386454183267,-90.67729083665338,-90.8207171314741,-90.96414342629483,-91.10756972111554,-91.25099601593625,-91.39442231075697,-91.5378486055777,-91.6812749003984,-91.82470119521912,-91.96812749003983,-92.11155378486056,-92.25498007968127,-92.39840637450199,-92.54183266932272,-92.68525896414343,-92.82868525896414,-92.97211155378486,-93.11553784860558,-93.2589641434263,-93.40239043824701,-93.54581673306772,-93.68924302788845,-93.83266932270917,-93.97609561752988,-94.11952191235059,-94.26294820717132,-94.40637450199203,-94.54980079681275,-94.69322709163346,-94.83665338645419,-94.9800796812749,-95.12350597609561,-95.26693227091633,-95.41035856573706,-95.55378486055777,-95.69721115537848,-95.8406374501992,-95.98406374501992,-96.12749003984064,-96.27091633466135,-96.41434262948208,-96.55776892430279,-96.7011952191235,-96.84462151394422,-96.98804780876495,-97.13147410358566,-97.27490039840637,-97.41832669322709,-97.56175298804781,-97.70517928286853,-97.84860557768924,-97.99203187250995,-98.13545816733068,-98.2788844621514,-98.42231075697211,-98.56573705179282,-98.70916334661355,-98.85258964143426,-98.99601593625498,-99.13944223107569,-99.28286852589642,-99.42629482071713,-99.56972111553785,-99.71314741035856,-99.85657370517929,-100.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/larger_positive.json b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/larger_positive.json new file mode 100644 index 000000000000..e5729a14c883 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/larger_positive.json @@ -0,0 +1 @@ +{"expected":[0.035729481991072475,0.03554724134027826,0.035366851088091206,0.03518828318299127,0.035011510137841796,0.03483650501576095,0.034663241416415635,0.03449169346272319,0.03432183578794688,0.03415364352317151,0.03398709228514617,0.03382215816448174,0.03365881771419102,0.033497047938559885,0.03333682628233855,0.03317813062024202,0.033020939246749634,0.032865230866193695,0.032710984583127746,0.03255817989296524,0.0324067966728799,0.03225681517295913,0.03210821600760244,0.03196098014715696,0.0318150889097823,0.031670523953537796,0.03152726726868465,0.031385301170196514,0.031244608290471886,0.03110517157224186,0.030966974261667266,0.030829999901619384,0.030694232325138376,0.030559655649064155,0.030426254267834272,0.03029401284744386,0.030162916319562583,0.03003294987580395,0.029904098962142356,0.029776349273473474,0.029649686748313586,0.029524097563633996,0.029399568129826182,0.029276085085794146,0.029153635294170026,0.029032205836649515,0.02891178400944342,0.02879235731884226,0.02867391347689035,0.02855644039716645,0.028439926190667847,0.028324359161794887,0.028209727804433152,0.02809602079813057,0.02798322700436663,0.027871335462911324,0.027760335388271135,0.02765021616621975,0.027540967350411154,0.0274325786590727,0.027325039971776217,0.02721834132628469,0.027112472915472766,0.027007425084318838,0.026903188326966927,0.026799753283856403,0.026697110738917743,0.026595251616832554,0.0264941669803562,0.026393848027701245,0.026294286089980273,0.026195472628706366,0.026097399233349854,0.026000057618949742,0.025903439623778512,0.02580753720705882,0.025712342446730808,0.02561784753726866,0.02552404478754526,0.02543092661874355,0.025338485562313547,0.025246714257973802,0.025155605451756154,0.025065151994092722,0.024975346837944088,0.02488618303696758,0.024797653743724706,0.024709752207926775,0.0246224717747177,0.024535805882993117,0.02444974806375495,0.024364291938500447,0.02427943121764496,0.024195159698977634,0.024111471266149067,0.024028359887190428,0.02394581961306299,0.023863844576237588,0.02378242898930311,0.023701567143603438,0.02362125340790212,0.023541482227074157,0.023462248120824137,0.02338354568243032,0.023305369577513835,0.02322771454283257,0.023150575385099098,0.02307394697982206,0.022997824270170584,0.022922202265861048,0.022847076042065796,0.02277244073834328,0.022698291557589068,0.022624623765007325,0.02255143268710229,0.02247871371068926,0.02240646228192467,0.02233467390535483,0.022263344142982915,0.02219246861335379,0.02212204299065627,0.02205206300384241,0.021982524435763543,0.021913423122322532,0.021844754951642044,0.021776515863248407,0.021708701847270705,0.02164130894365484,0.021574333241392175,0.021507770877762462,0.021441618037590787,0.021375870952518135,0.02131052590028544,0.021245579204030616,0.02118102723159852,0.02111686639486339,0.02105309314906364,0.020989703992148594,0.020926695464137092,0.020864064146487525,0.020801806661479263,0.020739919671605014,0.020678399878974102,0.02061724402472631,0.020556448888456074,0.02049601128764688,0.0204359280771156,0.020376196148466575,0.020316812429555256,0.020257773883961216,0.020199077510470283,0.020140720342565747,0.020082699447928242,0.02002501192794439,0.019967654917223767,0.019910625583124265,0.019853921125285463,0.019797538775170057,0.019741475795613,0.01968572948037836,0.01963029715372359,0.019575176169971224,0.019520363913087715,0.019465857796269366,0.01941165526153517,0.019357753779326425,0.019304150848113048,0.019250843994006367,0.019197830770378344,0.019145108757487064,0.019092675562108388,0.019040528817173642,0.018988666181413247,0.018937085339006104,0.018885783999234792,0.018834759896146212,0.018784010788217877,0.018733534458029444,0.018683328711939628,0.01863339137976825,0.01858372031448342,0.01853431339189364,0.018485168510344877,0.018436283590422427,0.018387656574657477,0.018339285427238308,0.018291168133726082,0.018243302700775055,0.018195687155857176,0.01814831954699101,0.01810119794247489,0.018054320430624174,0.018007685119512635,0.01796129013671781,0.01791513362907029,0.017869213762406865,0.017823528721327482,0.01777807670895587,0.017732855946703877,0.017687864674039357,0.017643101148257612,0.017598563644256278,0.017554250454313608,0.01751015988787013,0.01746629027131356,0.01742263994776694,0.01737920727687998,0.017335990634623467,0.01729298841308678,0.017250199020278377,0.01720762087992926,0.01716525243129935,0.017123092128986675,0.017081138442739452,0.01703938985727079,0.016997844872076253,0.01695650200125399,0.016915359773327497,0.01687441673107102,0.01683367143133737,0.016793122444888352,0.016752768356227566,0.016712607763435628,0.01667263927800776,0.01663286152469371,0.016593273141339973,0.01655387277873422,0.01651465910045196,0.01647563078270541,0.016436786514194442,0.016398124995959693,0.0163596449412377,0.016321345075318097,0.016283224135402796,0.01624528087046717,0.01620751404112312,0.016169922419484107,0.016132504789032002,0.016095259944485855,0.016058186691672378,0.016021283847398315,0.015984550239324484,0.01594798470584164,0.015911586095947932,0.015875353269128128,0.01583928509523443,0.01580338045436894,0.015767638236767703,0.01573205734268633,0.01569663668228717,0.015661375175528004,0.01562627175205221,0.015591325351080454,0.015556534921303771,0.015521899420778135,0.01548741781682038,0.015453089085905541,0.015418912213565554,0.015384886194289292,0.015351010031423903,0.015317282737077486,0.015283703332023021,0.015250270845603585,0.015216984315638768,0.015183842788332362,0.015150845318181203,0.015117990967885266,0.015085278808258851,0.015052707918142979,0.015020277384318883,0.014987986301422656,0.014955833771860952,0.014923818905727802,0.014891940820722467,0.014860198642068409,0.014828591502433187,0.014797118541849482,0.01476577890763705,0.014734571754325729,0.014703496243579339,0.014672551544120623,0.0146417368316571,0.01461105128880784,0.014580494105031169,0.014550064476553295,0.014519761606297801,0.014489584703816035,0.014459532985218343,0.014429605673106204,0.01439980199650515,0.014370121190798547,0.014340562497662196,0.014311125164999723,0.01428180844687878,0.014252611603468017,0.014223533900974823,0.014194574611583844,0.014165733013396247,0.0141370083903697,0.014108400032259109,0.014079907234558065,0.014051529298440996,0.014023265530706016,0.01399511524371846,0.013967077755355117,0.013939152388949112,0.013911338473235446,0.013883635342297208,0.013856042335512412,0.013828558797501469,0.01380118407807528,0.013773917532183962,0.013746758519866164,0.013719706406198979,0.013692760561248456,0.013665920360020699,0.013639185182413534,0.013612554413168713,0.013586027441824753,0.013559603662670231,0.013533282474697709,0.013507063281558122,0.013480945491515753,0.013454928517403686,0.013429011776579828,0.013403194690883352,0.013377476686591741,0.01335185719437825,0.013326335649269898,0.01330091149060592,0.013275584161996708,0.013250353111283196,0.01322521779049676,0.013200177655819496,0.013175232167545025,0.013150380790039688,0.013125622991704205,0.013100958244935772,0.013076386026090545,0.01305190581544661,0.013027517097167303,0.013003219359264979,0.012979012093565181,0.01295489479567121,0.012930866964929061,0.01290692810439279,0.012883077720790241,0.012859315324489163,0.01283564042946368,0.012812052553261169,0.012788551216969455,0.012765135945184419,0.012741806265977915,0.012718561710866064,0.012695401814777883,0.012672326116024278,0.012649334156267332,0.012626425480489973,0.01260359963696594,0.012580856177230097,0.012558194656049036,0.01253561463139204,0.012513115664402318,0.012490697319368577,0.012468359163696884,0.01244610076788284,0.012423921705484045,0.012401821553092851,0.012379799890309429,0.01235785629971508,0.012335990366845892,0.0123142016801666,0.012292489831044797,0.012270854413725359,0.01224929502530518,0.01222781126570814,0.012206402737660368,0.012185069046665742,0.012163809800981655,0.012142624611595026,0.012121513092198574,0.012100474859167326,0.012079509531535384,0.012058616730972915,0.0120377960817634,0.012017047210781097,0.011996369747468755,0.011975763323815542,0.011955227574335217,0.011934762136044512,0.011914366648441746,0.011894040753485642,0.011873784095574384,0.011853596321524868,0.011833477080552181,0.011813426024249266,0.011793442806566808,0.011773527083793337,0.011753678514535505,0.011733896759698575,0.011714181482467115,0.011694532348285876,0.011674949024840852,0.011655431182040562,0.011635978491997483,0.011616590629009703,0.011597267269542712,0.011578008092211439,0.01155881277776239,0.011539681009056052,0.011520612471049378,0.011501606850778511,0.011482663837341667,0.011463783121882168,0.011444964397571653,0.011426207359593456,0.01140751170512615,0.011388877133327244,0.011370303345317039,0.011351790044162646,0.01133333693486218,0.011314943724329054,0.01129661012137649,0.011278335836702126,0.011260120582872816,0.01124196407430955,0.011223866027272517,0.011205826159846334,0.01118784419192541,0.011169919845199426,0.011152052843138993,0.011134242910981421,0.011116489775716634,0.011098793166073212,0.01108115281250458,0.011063568447175317,0.011046039803947598,0.011028566618367763,0.011011148627653016,0.010993785570678257,0.010976477187963019,0.010959223221658541,0.01094202341553498,0.010924877514968694,0.010907785266929707,0.010890746419969234,0.010873760724207364,0.010856827931320836,0.010839947794530944,0.010823120068591534,0.010806344509777131,0.010789620875871177,0.010772948926154356,0.010756328421393065,0.010739759123827937,0.010723240797162543,0.010706773206552115,0.010690356118592445,0.01067398930130884,0.010657672524145213,0.010641405557953227,0.010625188174981585,0.0106090201488654,0.010592901254615655,0.010576831268608764,0.010560809968576237,0.010544837133594418,0.01052891254407435,0.010513035981751682,0.01049720722967672,0.010481426072204527,0.010465692294985144,0.010450005684953875,0.01043436603032166,0.010418773120565557,0.010403226746419287,0.010387726699863873,0.010372272774118356,0.010356864763630604,0.010341502464068196,0.010326185672309383,0.010310914186434145,0.010295687805715307,0.010280506330609741,0.010265369562749661,0.010250277304933967,0.010235229361119695,0.010220225536413515,0.010205265637063317,0.010190349470449877,0.010175476845078586,0.010160647570571247,0.010145861457657963,0.010131118318169069,0.010116417965027168,0.010101760212239193,0.010087144874888581,0.010072571769127485,0.010058040712169076,0.010043551522279882,0.010029104018772229,0.01001469802199671,0.010000333353334763],"x":[28.0,28.143426294820717,28.286852589641434,28.43027888446215,28.573705179282868,28.717131474103585,28.860557768924302,29.00398406374502,29.147410358565736,29.290836653386453,29.43426294820717,29.577689243027887,29.721115537848604,29.86454183266932,30.00796812749004,30.15139442231076,30.294820717131476,30.438247011952193,30.58167330677291,30.725099601593627,30.868525896414344,31.01195219123506,31.155378486055778,31.298804780876495,31.44223107569721,31.58565737051793,31.729083665338646,31.872509960159363,32.01593625498008,32.1593625498008,32.30278884462152,32.44621513944223,32.58964143426295,32.733067729083665,32.876494023904385,33.0199203187251,33.16334661354582,33.30677290836653,33.45019920318725,33.59362549800797,33.73705179282869,33.8804780876494,34.02390438247012,34.167330677290835,34.310756972111555,34.45418326693227,34.59760956175299,34.7410358565737,34.88446215139442,35.02788844621514,35.17131474103586,35.31474103585657,35.45816733067729,35.601593625498005,35.745019920318725,35.88844621513944,36.03187250996016,36.17529880478088,36.31872509960159,36.462151394422314,36.60557768924303,36.74900398406375,36.89243027888446,37.03585657370518,37.179282868525895,37.322709163346616,37.46613545816733,37.60956175298805,37.75298804780876,37.896414342629484,38.0398406374502,38.18326693227092,38.32669322709163,38.47011952191235,38.613545816733065,38.756972111553786,38.9003984063745,39.04382470119522,39.18725099601593,39.330677290836654,39.47410358565737,39.61752988047809,39.7609561752988,39.90438247011952,40.04780876494024,40.191235059760956,40.33466135458168,40.47808764940239,40.62151394422311,40.764940239043824,40.908366533864545,41.05179282868526,41.19521912350598,41.33864541832669,41.48207171314741,41.625498007968126,41.76892430278885,41.91235059760956,42.05577689243028,42.199203187250994,42.342629482071715,42.48605577689243,42.62948207171315,42.77290836653386,42.91633466135458,43.059760956175296,43.20318725099602,43.34661354581673,43.49003984063745,43.633466135458164,43.776892430278885,43.9203187250996,44.06374501992032,44.20717131474104,44.35059760956175,44.49402390438247,44.63745019920319,44.78087649402391,44.92430278884462,45.06772908366534,45.211155378486055,45.354581673306775,45.49800796812749,45.64143426294821,45.78486055776892,45.92828685258964,46.07171314741036,46.21513944223108,46.35856573705179,46.50199203187251,46.645418326693225,46.788844621513945,46.93227091633466,47.07569721115538,47.21912350597609,47.36254980079681,47.50597609561753,47.64940239043825,47.79282868525896,47.93625498007968,48.0796812749004,48.223107569721115,48.366533864541836,48.50996015936255,48.65338645418327,48.79681274900398,48.940239043824704,49.08366533864542,49.22709163346614,49.37051792828685,49.51394422310757,49.657370517928285,49.800796812749006,49.94422310756972,50.08764940239044,50.23107569721115,50.374501992031874,50.51792828685259,50.66135458167331,50.80478087649402,50.94820717131474,51.091633466135455,51.235059760956176,51.37848605577689,51.52191235059761,51.66533864541832,51.808764940239044,51.95219123505976,52.09561752988048,52.2390438247012,52.38247011952191,52.52589641434263,52.669322709163346,52.81274900398407,52.95617529880478,53.0996015936255,53.243027888446214,53.386454183266935,53.52988047808765,53.67330677290837,53.81673306772908,53.9601593625498,54.103585657370516,54.24701195219124,54.39043824701195,54.53386454183267,54.677290836653384,54.820717131474105,54.96414342629482,55.10756972111554,55.25099601593625,55.39442231075697,55.537848605577686,55.68127490039841,55.82470119521912,55.96812749003984,56.11155378486056,56.254980079681275,56.398406374501995,56.54183266932271,56.68525896414343,56.82868525896414,56.97211155378486,57.11553784860558,57.2589641434263,57.40239043824701,57.54581673306773,57.689243027888445,57.832669322709165,57.97609561752988,58.1195219123506,58.26294820717131,58.40637450199203,58.54980079681275,58.69322709163347,58.83665338645418,58.9800796812749,59.123505976095615,59.266932270916335,59.41035856573705,59.55378486055777,59.69721115537848,59.8406374501992,59.98406374501992,60.12749003984064,60.27091633466136,60.41434262948207,60.55776892430279,60.701195219123505,60.844621513944226,60.98804780876494,61.13147410358566,61.27490039840637,61.418326693227094,61.56175298804781,61.70517928286853,61.84860557768924,61.99203187250996,62.135458167330675,62.278884462151396,62.42231075697211,62.56573705179283,62.70916334661354,62.852589641434264,62.99601593625498,63.1394422310757,63.28286852589641,63.42629482071713,63.569721115537845,63.713147410358566,63.85657370517928,64.0,64.14342629482071,64.28685258964144,64.43027888446215,64.57370517928287,64.71713147410358,64.86055776892431,65.00398406374502,65.14741035856574,65.29083665338645,65.43426294820718,65.57768924302789,65.7211155378486,65.86454183266932,66.00796812749005,66.15139442231076,66.29482071713147,66.43824701195219,66.58167330677291,66.72509960159363,66.86852589641434,67.01195219123505,67.15537848605578,67.2988047808765,67.44223107569721,67.58565737051792,67.72908366533865,67.87250996015936,68.01593625498008,68.1593625498008,68.30278884462152,68.44621513944223,68.58964143426294,68.73306772908367,68.87649402390439,69.0199203187251,69.16334661354581,69.30677290836654,69.45019920318725,69.59362549800797,69.73705179282868,69.88047808764941,70.02390438247012,70.16733067729083,70.31075697211155,70.45418326693228,70.59760956175299,70.7410358565737,70.88446215139442,71.02788844621514,71.17131474103586,71.31474103585657,71.45816733067728,71.60159362549801,71.74501992031873,71.88844621513944,72.03187250996017,72.17529880478088,72.3187250996016,72.4621513944223,72.60557768924303,72.74900398406375,72.89243027888446,73.03585657370517,73.1792828685259,73.32270916334662,73.46613545816733,73.60956175298804,73.75298804780877,73.89641434262948,74.0398406374502,74.18326693227091,74.32669322709164,74.47011952191235,74.61354581673307,74.75697211155378,74.9003984063745,75.04382470119522,75.18725099601593,75.33067729083665,75.47410358565737,75.61752988047809,75.7609561752988,75.90438247011951,76.04780876494024,76.19123505976096,76.33466135458167,76.4780876494024,76.62151394422311,76.76494023904382,76.90836653386454,77.05179282868527,77.19521912350598,77.33864541832669,77.4820717131474,77.62549800796813,77.76892430278885,77.91235059760956,78.05577689243027,78.199203187251,78.34262948207171,78.48605577689243,78.62948207171314,78.77290836653387,78.91633466135458,79.0597609561753,79.20318725099601,79.34661354581674,79.49003984063745,79.63346613545816,79.77689243027888,79.9203187250996,80.06374501992032,80.20717131474103,80.35059760956176,80.49402390438247,80.63745019920319,80.7808764940239,80.92430278884463,81.06772908366534,81.21115537848605,81.35458167330677,81.4980079681275,81.64143426294821,81.78486055776892,81.92828685258964,82.07171314741036,82.21513944223108,82.35856573705179,82.5019920318725,82.64541832669323,82.78884462151395,82.93227091633466,83.07569721115537,83.2191235059761,83.36254980079681,83.50597609561753,83.64940239043824,83.79282868525897,83.93625498007968,84.0796812749004,84.22310756972112,84.36653386454184,84.50996015936255,84.65338645418326,84.79681274900399,84.9402390438247,85.08366533864542,85.22709163346613,85.37051792828686,85.51394422310757,85.65737051792829,85.800796812749,85.94422310756973,86.08764940239044,86.23107569721115,86.37450199203187,86.5179282868526,86.66135458167331,86.80478087649402,86.94820717131473,87.09163346613546,87.23505976095618,87.37848605577689,87.5219123505976,87.66533864541833,87.80876494023904,87.95219123505976,88.09561752988049,88.2390438247012,88.38247011952191,88.52589641434263,88.66932270916335,88.81274900398407,88.95617529880478,89.0996015936255,89.24302788844622,89.38645418326693,89.52988047808765,89.67330677290836,89.81673306772909,89.9601593625498,90.10358565737052,90.24701195219123,90.39043824701196,90.53386454183267,90.67729083665338,90.8207171314741,90.96414342629483,91.10756972111554,91.25099601593625,91.39442231075697,91.5378486055777,91.6812749003984,91.82470119521912,91.96812749003983,92.11155378486056,92.25498007968127,92.39840637450199,92.54183266932272,92.68525896414343,92.82868525896414,92.97211155378486,93.11553784860558,93.2589641434263,93.40239043824701,93.54581673306772,93.68924302788845,93.83266932270917,93.97609561752988,94.11952191235059,94.26294820717132,94.40637450199203,94.54980079681275,94.69322709163346,94.83665338645419,94.9800796812749,95.12350597609561,95.26693227091633,95.41035856573706,95.55378486055777,95.69721115537848,95.8406374501992,95.98406374501992,96.12749003984064,96.27091633466135,96.41434262948208,96.55776892430279,96.7011952191235,96.84462151394422,96.98804780876495,97.13147410358566,97.27490039840637,97.41832669322709,97.56175298804781,97.70517928286853,97.84860557768924,97.99203187250995,98.13545816733068,98.2788844621514,98.42231075697211,98.56573705179282,98.70916334661355,98.85258964143426,98.99601593625498,99.13944223107569,99.28286852589642,99.42629482071713,99.56972111553785,99.71314741035856,99.85657370517929,100.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/medium_negative.json b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/medium_negative.json new file mode 100644 index 000000000000..0d507fa9335e --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/medium_negative.json @@ -0,0 +1 @@ +{"expected":[-1.5222612188617113,-1.504586603996554,-1.4875757829269853,-1.4711827314360777,-1.4553660422356198,-1.4400883274295309,-1.4253157146233255,-1.4110174196020666,-1.397165382025739,-1.3837339533089152,-1.3706996279639225,-1.3580408113409939,-1.3457376180039984,-1.3337716960170605,-1.3221260732461817,-1.3107850224467472,-1.299733942447189,-1.2889592531779241,-1.27844830265359,-1.268189284311477,-1.258171163352654,-1.2483836109342261,-1.23881694522946,-1.2294620785132346,-1.2203104695484495,-1.2113540806486411,-1.2025853388762893,-1.1939971009078294,-1.185582621157269,-1.177335522802342,-1.1692497714017163,-1.1613196508300776,-1.1535397412909425,-1.1459048991955825,-1.1384102387211692,-1.131051114882736,-1.123823107972237,-1.1167220092343302,-1.1097438076627764,-1.1028846778138675,-1.096140968544315,-1.0895091925906872,-1.0829860169160574,-1.0765682537570536,-1.0702528523112094,-1.0640368910104332,-1.0579175703316916,-1.0518922061007079,-1.045958223248642,-1.0401131499854857,-1.0343546123572196,-1.028680329156812,-1.0230881071618,-1.017575836673619,-1.01214148733604,-1.0067831042119981,-1.0014988040999027,-0.996286772072088,-0.9911452582195268,-0.9860725745882294,-0.9810670922939403,-0.9761272388028316,-0.9712514953668497,-0.966438394603295,-0.9616865182089999,-0.9569944948002216,-0.9523609978700524,-0.9477847438557462,-0.9432644903089489,-0.9387990341623247,-0.9343872100865429,-0.9300278889320407,-0.9257199762503567,-0.9214624108902181,-0.9172541636638843,-0.913094236079575,-0.9089816591360902,-0.904915492175996,-0.9008948217939962,-0.8969187607973309,-0.8929864472152577,-0.8890970433548595,-0.8852497349006028,-0.8814437300552372,-0.877678258719779,-0.8739525717104644,-0.8702659400106908,-0.8666176540560862,-0.8630070230509628,-0.859433374314514,-0.8558960526552202,-0.8523944197720077,-0.8489278536808073,-0.845495748165227,-0.8420975122501315,-0.838732569696995,-0.8354003585199522,-0.8321003305215402,-0.8288319508471755,-0.8255946975574674,-0.8223880612175182,-0.8192115445024044,-0.8160646618180856,-0.8129469389370146,-0.8098579126477796,-0.806797130418126,-0.8037641500707564,-0.8007585394713281,-0.7977798762281019,-0.7948277474027244,-0.7919017492316563,-0.7890014868577703,-0.7861265740716873,-0.7832766330624223,-0.7804512941769463,-0.777650195688278,-0.774872983571753,-0.7721193112891199,-0.7693888395801399,-0.7666812362613812,-0.7639961760319074,-0.7613333402855826,-0.7586924169297257,-0.7560731002098495,-0.753475090540255,-0.7508980943402339,-0.7483418238756678,-0.745805997105809,-0.7432903375350367,-0.7407945740694069,-0.7383184408777962,-0.7358616772574791,-0.7334240275039592,-0.7310052407848993,-0.7286050710179959,-0.726223276752647,-0.723859621055281,-0.7215138713982013,-0.7191857995518269,-0.7168751814802011,-0.7145817972396494,-0.7123054308804763,-0.7100458703515905,-0.7078029074079553,-0.7055763375207622,-0.7033659597902362,-0.7011715768609779,-0.6989929948397534,-0.6968300232156529,-0.6946824747825285,-0.6925501655636415,-0.6904329147384397,-0.6883305445713936,-0.686242880342823,-0.6841697502816474,-0.6821109854999962,-0.680066419929618,-0.6780358902600289,-0.6760192358783447,-0.6740162988107384,-0.6720269236654789,-0.6700509575774879,-0.6680882501543787,-0.6661386534239223,-0.664202021782897,-0.662278211947281,-0.6603670829037412,-0.6584684958623832,-0.6565823142107182,-0.6547084034688138,-0.6528466312455901,-0.6509968671962252,-0.6491589829806407,-0.6473328522230288,-0.6455183504723947,-0.6437153551640811,-0.6419237455822467,-0.6401434028232714,-0.638374209760057,-0.636616051007203,-0.6348688128870277,-0.6331323833964104,-0.6314066521744348,-0.6296915104708036,-0.6279868511150107,-0.6262925684862418,-0.624608558483988,-0.6229347184993499,-0.6212709473870122,-0.619617145437874,-0.6179732143523102,-0.6163390572140529,-0.6147145784646723,-0.6130996838786391,-0.6114942805389592,-0.6098982768133553,-0.6083115823309908,-0.6067341079597129,-0.6051657657838074,-0.6036064690822471,-0.6020561323074223,-0.6005146710643429,-0.5989820020902936,-0.5974580432349389,-0.5959427134408578,-0.5944359327245021,-0.5929376221575666,-0.591447703848758,-0.589966100925957,-0.5884927375187573,-0.5870275387413794,-0.5855704306759414,-0.5841213403560853,-0.5826801957509458,-0.5812469257494518,-0.5798214601449581,-0.5784037296201924,-0.5769936657325129,-0.5755912008994714,-0.5741962683846682,-0.5728088022838976,-0.571428737511574,-0.5700560097874312,-0.5686905556234922,-0.5673323123112965,-0.5659812179093863,-0.5646372112310383,-0.5633002318322411,-0.5619702199999086,-0.5606471167403256,-0.5593308637678198,-0.5580214034936534,-0.5567186790151332,-0.5554226341049291,-0.5541332132005997,-0.5528503613943196,-0.5515740244228013,-0.5503041486574124,-0.5490406810944769,-0.5477835693457634,-0.5465327616291508,-0.5452882067594687,-0.5440498541395113,-0.5428176537512175,-0.5415915561470147,-0.5403715124413231,-0.5391574743022175,-0.5379493939432407,-0.5367472241153685,-0.5355509180991189,-0.5343604296968083,-0.5331757132249442,-0.5319967235067573,-0.5308234158648681,-0.5296557461140837,-0.5284936705543233,-0.5273371459636709,-0.5261861295915498,-0.5250405791520187,-0.5239004528171849,-0.5227657092107335,-0.5216363074015704,-0.5205122068975743,-0.5193933676394598,-0.5182797499947439,-0.5171713147518193,-0.5160680231141268,-0.5149698366944296,-0.5138767175091854,-0.5127886279730118,-0.5117055308932492,-0.5106273894646124,-0.5095541672639345,-0.5084858282449976,-0.5074223367334505,-0.5063636574218122,-0.5053097553645565,-0.5042605959732793,-0.5032161450119463,-0.5021763685922174,-0.5011412331688482,-0.5001107055351686,-0.4990847528186323,-0.49806334247644046,-0.4970464422912359,-0.4960340203668667,-0.49502604512421744,-0.49402248529710896,-0.49302330992826193,-0.4920284883653261,-0.49103799025697104,-0.4900517855490416,-0.48906984448077095,-0.4880921375810552,-0.48711863566478664,-0.4861493098292431,-0.4851841314505345,-0.48422307218010474,-0.48326610394128733,-0.48231319892591507,-0.48136432959098097,-0.48041946865535134,-0.47947858909652896,-0.4785416641474657,-0.4776086672934234,-0.47667957226888286,-0.4757543530545002,-0.4748329838741066,-0.47391543919175716,-0.47300169370882084,-0.4720917223611145,-0.47118550031608153,-0.47028300297001047,-0.4693842059452955,-0.46848908508773746,-0.4675976164638854,-0.4667097763584157,-0.46582554127155107,-0.4649448879165162,-0.46406779321703173,-0.4631942343048432,-0.46232418851728674,-0.4614576333948899,-0.46059454667900696,-0.45973490630948777,-0.45887869042238094,-0.45802587734766914,-0.4571764456070364,-0.45633037391166853,-0.45548764116008295,-0.4546482264359907,-0.4538121090061874,-0.45297926831847485,-0.45214968399961114,-0.4513233358532893,-0.45050020385814504,-0.44968026816579115,-0.4488635090988796,-0.4480499071491907,-0.4472394429757481,-0.4464320974029601,-0.44562785141878586,-0.44482668617292814,-0.4440285829750491,-0.4432335232930106,-0.44244148875113953,-0.44165246112851575,-0.4408664223572831,-0.4400833545209831,-0.439303239852912,-0.43852606073449824,-0.437751799693703,-0.43698043940344145,-0.43621196268002504,-0.4354463524816246,-0.43468359190675265,-0.4339236641927684,-0.4331665527143994,-0.4324122409822842,-0.43166071264153405,-0.4309119514703128,-0.4301659413784362,-0.4294226664059878,-0.4286821107219546,-0.42794425862287955,-0.42720909453153044,-0.4264766029955883,-0.42574676868635003,-0.42501957639744914,-0.4242950110435926,-0.4235730576593135,-0.42285370139774003,-0.4221369275293787,-0.4214227214409153,-0.4207110686340288,-0.42000195472422097,-0.41929536543966117,-0.4185912866200448,-0.41788970421546645,-0.41719060428530674,-0.41649397299713387,-0.4157997966256173,-0.4151080615514561,-0.4144187542603204,-0.413731861341805,-0.4130473694883972,-0.41236526549445535,-0.41168553625520227,-0.41100816876572893,-0.41033315012001087,-0.4096604675099374,-0.4089901082243513,-0.40832205964810064,-0.4076563092611023,-0.40699284463741653,-0.4063316534443322,-0.4056727234414634,-0.40501604247985734,-0.40436159850111175,-0.4037093795365033,-0.40305937370612677,-0.4024115692180438,-0.40176595436744195,-0.4011225175358033,-0.4004812471900837,-0.39984213188190076,-0.39920516024673136,-0.39857032100311923,-0.39793760295189134,-0.39730699497538285,-0.3966784860366722,-0.3960520651788241,-0.3954277215241415,-0.3948054442734263,-0.3941852227052488,-0.3935670461752247,-0.3929509041153011,-0.39233678603305056,-0.39172468151097284,-0.39111458020580514,-0.39050647184783915,-0.3899003462402472,-0.389296193258415,-0.38869400284928224,-0.3880937650306902,-0.38749546989073774,-0.3868991075871432,-0.38630466834661403,-0.38571214246422414,-0.3851215203027965,-0.38453279229229376,-0.3839459489292161,-0.3833609807760043,-0.38277787846045,-0.3821966326751136,-0.3816172341767463,-0.38103967378572035,-0.38046394238546466,-0.3798900309219069,-0.37931793040292144,-0.3787476318977833,-0.3781791265366284,-0.37761240550991904,-0.3770474600679155,-0.3764842815201535,-0.37592286123492685,-0.37536319063877616,-0.3748052612159821,-0.3742490645080656,-0.37369459211329165,-0.37314183568617965,-0.3725907869370185,-0.37204143763138703,-0.37149377958967866,-0.3709478046866322,-0.3704035048508673,-0.36986087206442436,-0.36931989836230933,-0.3687805758320439,-0.3682428966132196,-0.367706852897057,-0.3671724369259695,-0.3666396409931313,-0.36610845744205067,-0.36557887866614586,-0.3650508971083283,-0.3645245052605866,-0.36399969566357804,-0.3634764609062219,-0.36295479362529837,-0.3624346865050508,-0.3619161322767923,-0.36139912371851646,-0.3608836536545119,-0.3603697149549805,-0.3598573005356597,-0.35934640335744894,-0.3588370164260394,-0.3583291327915473,-0.35782274554815174,-0.35731784783373527,-0.35681443282952846,-0.3563124937597581,-0.3558120238912986,-0.3553130165333275,-0.354815465036983,-0.35431936279502707,-0.3538247032415097,-0.3533314798514377,-0.3528396861404467,-0.35234931566447575,-0.35186036201944604,-0.3513728188409417,-0.35088667980389465,-0.3504019386222722,-0.3499185890487672,-0.3494366248744922,-0.34895603992867563,-0.34847682807836167,-0.3479989832281121,-0.34752249931971263,-0.34704737033187966,-0.34657359027997264],"x":[-1.1,-1.103784860557769,-1.1075697211155378,-1.1113545816733068,-1.1151394422310756,-1.1189243027888447,-1.1227091633466135,-1.1264940239043826,-1.1302788844621514,-1.1340637450199202,-1.1378486055776893,-1.1416334661354581,-1.1454183266932272,-1.149203187250996,-1.1529880478087648,-1.156772908366534,-1.1605577689243027,-1.1643426294820718,-1.1681274900398406,-1.1719123505976095,-1.1756972111553785,-1.1794820717131473,-1.1832669322709164,-1.1870517928286852,-1.1908366533864543,-1.1946215139442231,-1.198406374501992,-1.202191235059761,-1.2059760956175298,-1.2097609561752989,-1.2135458167330677,-1.2173306772908365,-1.2211155378486056,-1.2249003984063744,-1.2286852589641435,-1.2324701195219123,-1.2362549800796814,-1.2400398406374502,-1.243824701195219,-1.247609561752988,-1.251394422310757,-1.255179282868526,-1.2589641434262948,-1.2627490039840636,-1.2665338645418327,-1.2703187250996015,-1.2741035856573706,-1.2778884462151394,-1.2816733067729085,-1.2854581673306773,-1.2892430278884461,-1.2930278884462152,-1.296812749003984,-1.300597609561753,-1.304382470119522,-1.3081673306772907,-1.3119521912350598,-1.3157370517928286,-1.3195219123505977,-1.3233067729083665,-1.3270916334661356,-1.3308764940239044,-1.3346613545816732,-1.3384462151394423,-1.3422310756972111,-1.3460159362549802,-1.349800796812749,-1.3535856573705178,-1.357370517928287,-1.3611553784860557,-1.3649402390438248,-1.3687250996015936,-1.3725099601593624,-1.3762948207171315,-1.3800796812749003,-1.3838645418326694,-1.3876494023904382,-1.3914342629482073,-1.395219123505976,-1.399003984063745,-1.402788844621514,-1.4065737051792828,-1.4103585657370519,-1.4141434262948207,-1.4179282868525895,-1.4217131474103586,-1.4254980079681274,-1.4292828685258965,-1.4330677290836653,-1.4368525896414344,-1.4406374501992032,-1.444422310756972,-1.448207171314741,-1.45199203187251,-1.455776892430279,-1.4595617529880478,-1.4633466135458166,-1.4671314741035857,-1.4709163346613545,-1.4747011952191236,-1.4784860557768924,-1.4822709163346615,-1.4860557768924303,-1.4898406374501991,-1.4936254980079682,-1.497410358565737,-1.501195219123506,-1.504980079681275,-1.5087649402390437,-1.5125498007968128,-1.5163346613545816,-1.5201195219123507,-1.5239043824701195,-1.5276892430278886,-1.5314741035856574,-1.5352589641434262,-1.5390438247011953,-1.542828685258964,-1.5466135458167332,-1.550398406374502,-1.5541832669322708,-1.5579681274900399,-1.5617529880478087,-1.5655378486055778,-1.5693227091633466,-1.5731075697211154,-1.5768924302788845,-1.5806772908366533,-1.5844621513944224,-1.5882470119521912,-1.5920318725099603,-1.595816733067729,-1.599601593625498,-1.603386454183267,-1.6071713147410358,-1.6109561752988049,-1.6147410358565737,-1.6185258964143425,-1.6223107569721116,-1.6260956175298804,-1.6298804780876495,-1.6336653386454183,-1.6374501992031874,-1.6412350597609562,-1.645019920318725,-1.648804780876494,-1.652589641434263,-1.656374501992032,-1.6601593625498008,-1.6639442231075696,-1.6677290836653387,-1.6715139442231075,-1.6752988047808766,-1.6790836653386454,-1.6828685258964144,-1.6866533864541833,-1.690438247011952,-1.6942231075697212,-1.69800796812749,-1.701792828685259,-1.7055776892430279,-1.7093625498007967,-1.7131474103585658,-1.7169322709163346,-1.7207171314741037,-1.7245019920318725,-1.7282868525896415,-1.7320717131474104,-1.7358565737051792,-1.7396414342629483,-1.743426294820717,-1.7472111553784861,-1.750996015936255,-1.7547808764940238,-1.7585657370517929,-1.7623505976095617,-1.7661354581673308,-1.7699203187250996,-1.7737051792828684,-1.7774900398406375,-1.7812749003984063,-1.7850597609561754,-1.7888446215139442,-1.7926294820717132,-1.796414342629482,-1.800199203187251,-1.80398406374502,-1.8077689243027888,-1.8115537848605578,-1.8153386454183267,-1.8191235059760955,-1.8229083665338646,-1.8266932270916334,-1.8304780876494025,-1.8342629482071713,-1.8380478087649403,-1.8418326693227092,-1.845617529880478,-1.849402390438247,-1.853187250996016,-1.856972111553785,-1.8607569721115538,-1.8645418326693226,-1.8683266932270917,-1.8721115537848605,-1.8758964143426295,-1.8796812749003984,-1.8834661354581674,-1.8872509960159363,-1.891035856573705,-1.8948207171314742,-1.898605577689243,-1.902390438247012,-1.9061752988047809,-1.9099601593625497,-1.9137450199203188,-1.9175298804780876,-1.9213147410358566,-1.9250996015936255,-1.9288844621513945,-1.9326693227091634,-1.9364541832669322,-1.9402390438247012,-1.94402390438247,-1.9478087649402391,-1.951593625498008,-1.9553784860557768,-1.9591633466135459,-1.9629482071713147,-1.9667330677290837,-1.9705179282868526,-1.9743027888446214,-1.9780876494023905,-1.9818725099601593,-1.9856573705179283,-1.9894422310756972,-1.9932270916334662,-1.997011952191235,-2.000796812749004,-2.004581673306773,-2.008366533864542,-2.0121513944223106,-2.0159362549800797,-2.0197211155378487,-2.0235059760956173,-2.0272908366533864,-2.0310756972111554,-2.0348605577689245,-2.038645418326693,-2.042430278884462,-2.046215139442231,-2.05,-2.053784860557769,-2.057569721115538,-2.061354581673307,-2.0651394422310756,-2.0689243027888446,-2.0727091633466137,-2.0764940239043823,-2.0802788844621514,-2.0840637450199204,-2.087848605577689,-2.091633466135458,-2.095418326693227,-2.099203187250996,-2.102988047808765,-2.106772908366534,-2.110557768924303,-2.1143426294820715,-2.1181274900398406,-2.1219123505976096,-2.1256972111553787,-2.1294820717131473,-2.1332669322709163,-2.1370517928286854,-2.140836653386454,-2.144621513944223,-2.148406374501992,-2.152191235059761,-2.15597609561753,-2.159760956175299,-2.163545816733068,-2.1673306772908365,-2.1711155378486056,-2.1749003984063746,-2.1786852589641432,-2.1824701195219123,-2.1862549800796813,-2.1900398406374504,-2.193824701195219,-2.197609561752988,-2.201394422310757,-2.2051792828685257,-2.2089641434262948,-2.212749003984064,-2.216533864541833,-2.2203187250996015,-2.2241035856573705,-2.2278884462151396,-2.231673306772908,-2.2354581673306773,-2.2392430278884463,-2.243027888446215,-2.246812749003984,-2.250597609561753,-2.254382470119522,-2.2581673306772907,-2.2619521912350598,-2.265737051792829,-2.2695219123505974,-2.2733067729083665,-2.2770916334661355,-2.2808764940239046,-2.284661354581673,-2.2884462151394422,-2.2922310756972113,-2.29601593625498,-2.299800796812749,-2.303585657370518,-2.307370517928287,-2.3111553784860557,-2.3149402390438247,-2.318725099601594,-2.3225099601593624,-2.3262948207171315,-2.3300796812749005,-2.333864541832669,-2.337649402390438,-2.3414342629482072,-2.3452191235059763,-2.349003984063745,-2.352788844621514,-2.356573705179283,-2.3603585657370516,-2.3641434262948207,-2.3679282868525897,-2.3717131474103588,-2.3754980079681274,-2.3792828685258964,-2.3830677290836655,-2.386852589641434,-2.390637450199203,-2.394422310756972,-2.398207171314741,-2.40199203187251,-2.405776892430279,-2.409561752988048,-2.4133466135458166,-2.4171314741035856,-2.4209163346613547,-2.4247011952191233,-2.4284860557768924,-2.4322709163346614,-2.4360557768924305,-2.439840637450199,-2.443625498007968,-2.447410358565737,-2.451195219123506,-2.454980079681275,-2.458764940239044,-2.462549800796813,-2.4663346613545816,-2.4701195219123506,-2.4739043824701197,-2.4776892430278883,-2.4814741035856573,-2.4852589641434264,-2.489043824701195,-2.492828685258964,-2.496613545816733,-2.500398406374502,-2.504183266932271,-2.50796812749004,-2.511752988047809,-2.5155378486055775,-2.5193227091633466,-2.5231075697211156,-2.5268924302788847,-2.5306772908366533,-2.5344621513944223,-2.5382470119521914,-2.54203187250996,-2.545816733067729,-2.549601593625498,-2.553386454183267,-2.5571713147410358,-2.560956175298805,-2.564741035856574,-2.5685258964143425,-2.5723107569721115,-2.5760956175298806,-2.579880478087649,-2.5836653386454183,-2.5874501992031873,-2.5912350597609564,-2.595019920318725,-2.598804780876494,-2.602589641434263,-2.6063745019920317,-2.6101593625498007,-2.61394422310757,-2.617729083665339,-2.6215139442231075,-2.6252988047808765,-2.6290836653386456,-2.632868525896414,-2.6366533864541832,-2.6404382470119523,-2.644223107569721,-2.64800796812749,-2.651792828685259,-2.655577689243028,-2.6593625498007967,-2.6631474103585657,-2.666932270916335,-2.6707171314741034,-2.6745019920318724,-2.6782868525896415,-2.6820717131474106,-2.685856573705179,-2.689641434262948,-2.6934262948207173,-2.697211155378486,-2.700996015936255,-2.704780876494024,-2.708565737051793,-2.7123505976095617,-2.7161354581673307,-2.7199203187250998,-2.7237051792828684,-2.7274900398406374,-2.7312749003984065,-2.735059760956175,-2.738844621513944,-2.742629482071713,-2.7464143426294823,-2.750199203187251,-2.75398406374502,-2.757768924302789,-2.7615537848605576,-2.7653386454183266,-2.7691235059760957,-2.7729083665338647,-2.7766932270916334,-2.7804780876494024,-2.7842629482071715,-2.78804780876494,-2.791832669322709,-2.795617529880478,-2.799402390438247,-2.803187250996016,-2.806972111553785,-2.810756972111554,-2.8145418326693226,-2.8183266932270916,-2.8221115537848607,-2.8258964143426293,-2.8296812749003983,-2.8334661354581674,-2.8372509960159364,-2.841035856573705,-2.844820717131474,-2.848605577689243,-2.8523904382470118,-2.856175298804781,-2.85996015936255,-2.863745019920319,-2.8675298804780875,-2.8713147410358566,-2.8750996015936257,-2.8788844621513943,-2.8826693227091633,-2.8864541832669324,-2.890239043824701,-2.89402390438247,-2.897808764940239,-2.901593625498008,-2.9053784860557768,-2.909163346613546,-2.912948207171315,-2.9167330677290835,-2.9205179282868525,-2.9243027888446216,-2.9280876494023906,-2.9318725099601592,-2.9356573705179283,-2.9394422310756974,-2.943227091633466,-2.947011952191235,-2.950796812749004,-2.954581673306773,-2.9583665338645417,-2.962151394422311,-2.96593625498008,-2.9697211155378485,-2.9735059760956175,-2.9772908366533866,-2.981075697211155,-2.9848605577689242,-2.9886454183266933,-2.9924302788844623,-2.996215139442231,-3.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/medium_positive.json b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/medium_positive.json new file mode 100644 index 000000000000..f8fef44dfda1 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/medium_positive.json @@ -0,0 +1 @@ +{"expected":[1.5222612188617113,1.504586603996554,1.4875757829269853,1.4711827314360777,1.4553660422356198,1.4400883274295309,1.4253157146233255,1.4110174196020666,1.397165382025739,1.3837339533089152,1.3706996279639225,1.3580408113409939,1.3457376180039984,1.3337716960170605,1.3221260732461817,1.3107850224467472,1.299733942447189,1.2889592531779241,1.27844830265359,1.268189284311477,1.258171163352654,1.2483836109342261,1.23881694522946,1.2294620785132346,1.2203104695484495,1.2113540806486411,1.2025853388762893,1.1939971009078294,1.185582621157269,1.177335522802342,1.1692497714017163,1.1613196508300776,1.1535397412909425,1.1459048991955825,1.1384102387211692,1.131051114882736,1.123823107972237,1.1167220092343302,1.1097438076627764,1.1028846778138675,1.096140968544315,1.0895091925906872,1.0829860169160574,1.0765682537570536,1.0702528523112094,1.0640368910104332,1.0579175703316916,1.0518922061007079,1.045958223248642,1.0401131499854857,1.0343546123572196,1.028680329156812,1.0230881071618,1.017575836673619,1.01214148733604,1.0067831042119981,1.0014988040999027,0.996286772072088,0.9911452582195268,0.9860725745882294,0.9810670922939403,0.9761272388028316,0.9712514953668497,0.966438394603295,0.9616865182089999,0.9569944948002216,0.9523609978700524,0.9477847438557462,0.9432644903089489,0.9387990341623247,0.9343872100865429,0.9300278889320407,0.9257199762503567,0.9214624108902181,0.9172541636638843,0.913094236079575,0.9089816591360902,0.904915492175996,0.9008948217939962,0.8969187607973309,0.8929864472152577,0.8890970433548595,0.8852497349006028,0.8814437300552372,0.877678258719779,0.8739525717104644,0.8702659400106908,0.8666176540560862,0.8630070230509628,0.859433374314514,0.8558960526552202,0.8523944197720077,0.8489278536808073,0.845495748165227,0.8420975122501315,0.838732569696995,0.8354003585199522,0.8321003305215402,0.8288319508471755,0.8255946975574674,0.8223880612175182,0.8192115445024044,0.8160646618180856,0.8129469389370146,0.8098579126477796,0.806797130418126,0.8037641500707564,0.8007585394713281,0.7977798762281019,0.7948277474027244,0.7919017492316563,0.7890014868577703,0.7861265740716873,0.7832766330624223,0.7804512941769463,0.777650195688278,0.774872983571753,0.7721193112891199,0.7693888395801399,0.7666812362613812,0.7639961760319074,0.7613333402855826,0.7586924169297257,0.7560731002098495,0.753475090540255,0.7508980943402339,0.7483418238756678,0.745805997105809,0.7432903375350367,0.7407945740694069,0.7383184408777962,0.7358616772574791,0.7334240275039592,0.7310052407848993,0.7286050710179959,0.726223276752647,0.723859621055281,0.7215138713982013,0.7191857995518269,0.7168751814802011,0.7145817972396494,0.7123054308804763,0.7100458703515905,0.7078029074079553,0.7055763375207622,0.7033659597902362,0.7011715768609779,0.6989929948397534,0.6968300232156529,0.6946824747825285,0.6925501655636415,0.6904329147384397,0.6883305445713936,0.686242880342823,0.6841697502816474,0.6821109854999962,0.680066419929618,0.6780358902600289,0.6760192358783447,0.6740162988107384,0.6720269236654789,0.6700509575774879,0.6680882501543787,0.6661386534239223,0.664202021782897,0.662278211947281,0.6603670829037412,0.6584684958623832,0.6565823142107182,0.6547084034688138,0.6528466312455901,0.6509968671962252,0.6491589829806407,0.6473328522230288,0.6455183504723947,0.6437153551640811,0.6419237455822467,0.6401434028232714,0.638374209760057,0.636616051007203,0.6348688128870277,0.6331323833964104,0.6314066521744348,0.6296915104708036,0.6279868511150107,0.6262925684862418,0.624608558483988,0.6229347184993499,0.6212709473870122,0.619617145437874,0.6179732143523102,0.6163390572140529,0.6147145784646723,0.6130996838786391,0.6114942805389592,0.6098982768133553,0.6083115823309908,0.6067341079597129,0.6051657657838074,0.6036064690822471,0.6020561323074223,0.6005146710643429,0.5989820020902936,0.5974580432349389,0.5959427134408578,0.5944359327245021,0.5929376221575666,0.591447703848758,0.589966100925957,0.5884927375187573,0.5870275387413794,0.5855704306759414,0.5841213403560853,0.5826801957509458,0.5812469257494518,0.5798214601449581,0.5784037296201924,0.5769936657325129,0.5755912008994714,0.5741962683846682,0.5728088022838976,0.571428737511574,0.5700560097874312,0.5686905556234922,0.5673323123112965,0.5659812179093863,0.5646372112310383,0.5633002318322411,0.5619702199999086,0.5606471167403256,0.5593308637678198,0.5580214034936534,0.5567186790151332,0.5554226341049291,0.5541332132005997,0.5528503613943196,0.5515740244228013,0.5503041486574124,0.5490406810944769,0.5477835693457634,0.5465327616291508,0.5452882067594687,0.5440498541395113,0.5428176537512175,0.5415915561470147,0.5403715124413231,0.5391574743022175,0.5379493939432407,0.5367472241153685,0.5355509180991189,0.5343604296968083,0.5331757132249442,0.5319967235067573,0.5308234158648681,0.5296557461140837,0.5284936705543233,0.5273371459636709,0.5261861295915498,0.5250405791520187,0.5239004528171849,0.5227657092107335,0.5216363074015704,0.5205122068975743,0.5193933676394598,0.5182797499947439,0.5171713147518193,0.5160680231141268,0.5149698366944296,0.5138767175091854,0.5127886279730118,0.5117055308932492,0.5106273894646124,0.5095541672639345,0.5084858282449976,0.5074223367334505,0.5063636574218122,0.5053097553645565,0.5042605959732793,0.5032161450119463,0.5021763685922174,0.5011412331688482,0.5001107055351686,0.4990847528186323,0.49806334247644046,0.4970464422912359,0.4960340203668667,0.49502604512421744,0.49402248529710896,0.49302330992826193,0.4920284883653261,0.49103799025697104,0.4900517855490416,0.48906984448077095,0.4880921375810552,0.48711863566478664,0.4861493098292431,0.4851841314505345,0.48422307218010474,0.48326610394128733,0.48231319892591507,0.48136432959098097,0.48041946865535134,0.47947858909652896,0.4785416641474657,0.4776086672934234,0.47667957226888286,0.4757543530545002,0.4748329838741066,0.47391543919175716,0.47300169370882084,0.4720917223611145,0.47118550031608153,0.47028300297001047,0.4693842059452955,0.46848908508773746,0.4675976164638854,0.4667097763584157,0.46582554127155107,0.4649448879165162,0.46406779321703173,0.4631942343048432,0.46232418851728674,0.4614576333948899,0.46059454667900696,0.45973490630948777,0.45887869042238094,0.45802587734766914,0.4571764456070364,0.45633037391166853,0.45548764116008295,0.4546482264359907,0.4538121090061874,0.45297926831847485,0.45214968399961114,0.4513233358532893,0.45050020385814504,0.44968026816579115,0.4488635090988796,0.4480499071491907,0.4472394429757481,0.4464320974029601,0.44562785141878586,0.44482668617292814,0.4440285829750491,0.4432335232930106,0.44244148875113953,0.44165246112851575,0.4408664223572831,0.4400833545209831,0.439303239852912,0.43852606073449824,0.437751799693703,0.43698043940344145,0.43621196268002504,0.4354463524816246,0.43468359190675265,0.4339236641927684,0.4331665527143994,0.4324122409822842,0.43166071264153405,0.4309119514703128,0.4301659413784362,0.4294226664059878,0.4286821107219546,0.42794425862287955,0.42720909453153044,0.4264766029955883,0.42574676868635003,0.42501957639744914,0.4242950110435926,0.4235730576593135,0.42285370139774003,0.4221369275293787,0.4214227214409153,0.4207110686340288,0.42000195472422097,0.41929536543966117,0.4185912866200448,0.41788970421546645,0.41719060428530674,0.41649397299713387,0.4157997966256173,0.4151080615514561,0.4144187542603204,0.413731861341805,0.4130473694883972,0.41236526549445535,0.41168553625520227,0.41100816876572893,0.41033315012001087,0.4096604675099374,0.4089901082243513,0.40832205964810064,0.4076563092611023,0.40699284463741653,0.4063316534443322,0.4056727234414634,0.40501604247985734,0.40436159850111175,0.4037093795365033,0.40305937370612677,0.4024115692180438,0.40176595436744195,0.4011225175358033,0.4004812471900837,0.39984213188190076,0.39920516024673136,0.39857032100311923,0.39793760295189134,0.39730699497538285,0.3966784860366722,0.3960520651788241,0.3954277215241415,0.3948054442734263,0.3941852227052488,0.3935670461752247,0.3929509041153011,0.39233678603305056,0.39172468151097284,0.39111458020580514,0.39050647184783915,0.3899003462402472,0.389296193258415,0.38869400284928224,0.3880937650306902,0.38749546989073774,0.3868991075871432,0.38630466834661403,0.38571214246422414,0.3851215203027965,0.38453279229229376,0.3839459489292161,0.3833609807760043,0.38277787846045,0.3821966326751136,0.3816172341767463,0.38103967378572035,0.38046394238546466,0.3798900309219069,0.37931793040292144,0.3787476318977833,0.3781791265366284,0.37761240550991904,0.3770474600679155,0.3764842815201535,0.37592286123492685,0.37536319063877616,0.3748052612159821,0.3742490645080656,0.37369459211329165,0.37314183568617965,0.3725907869370185,0.37204143763138703,0.37149377958967866,0.3709478046866322,0.3704035048508673,0.36986087206442436,0.36931989836230933,0.3687805758320439,0.3682428966132196,0.367706852897057,0.3671724369259695,0.3666396409931313,0.36610845744205067,0.36557887866614586,0.3650508971083283,0.3645245052605866,0.36399969566357804,0.3634764609062219,0.36295479362529837,0.3624346865050508,0.3619161322767923,0.36139912371851646,0.3608836536545119,0.3603697149549805,0.3598573005356597,0.35934640335744894,0.3588370164260394,0.3583291327915473,0.35782274554815174,0.35731784783373527,0.35681443282952846,0.3563124937597581,0.3558120238912986,0.3553130165333275,0.354815465036983,0.35431936279502707,0.3538247032415097,0.3533314798514377,0.3528396861404467,0.35234931566447575,0.35186036201944604,0.3513728188409417,0.35088667980389465,0.3504019386222722,0.3499185890487672,0.3494366248744922,0.34895603992867563,0.34847682807836167,0.3479989832281121,0.34752249931971263,0.34704737033187966,0.34657359027997264],"x":[1.1,1.103784860557769,1.1075697211155378,1.1113545816733068,1.1151394422310756,1.1189243027888447,1.1227091633466135,1.1264940239043826,1.1302788844621514,1.1340637450199202,1.1378486055776893,1.1416334661354581,1.1454183266932272,1.149203187250996,1.1529880478087648,1.156772908366534,1.1605577689243027,1.1643426294820718,1.1681274900398406,1.1719123505976095,1.1756972111553785,1.1794820717131473,1.1832669322709164,1.1870517928286852,1.1908366533864543,1.1946215139442231,1.198406374501992,1.202191235059761,1.2059760956175298,1.2097609561752989,1.2135458167330677,1.2173306772908365,1.2211155378486056,1.2249003984063744,1.2286852589641435,1.2324701195219123,1.2362549800796814,1.2400398406374502,1.243824701195219,1.247609561752988,1.251394422310757,1.255179282868526,1.2589641434262948,1.2627490039840636,1.2665338645418327,1.2703187250996015,1.2741035856573706,1.2778884462151394,1.2816733067729085,1.2854581673306773,1.2892430278884461,1.2930278884462152,1.296812749003984,1.300597609561753,1.304382470119522,1.3081673306772907,1.3119521912350598,1.3157370517928286,1.3195219123505977,1.3233067729083665,1.3270916334661356,1.3308764940239044,1.3346613545816732,1.3384462151394423,1.3422310756972111,1.3460159362549802,1.349800796812749,1.3535856573705178,1.357370517928287,1.3611553784860557,1.3649402390438248,1.3687250996015936,1.3725099601593624,1.3762948207171315,1.3800796812749003,1.3838645418326694,1.3876494023904382,1.3914342629482073,1.395219123505976,1.399003984063745,1.402788844621514,1.4065737051792828,1.4103585657370519,1.4141434262948207,1.4179282868525895,1.4217131474103586,1.4254980079681274,1.4292828685258965,1.4330677290836653,1.4368525896414344,1.4406374501992032,1.444422310756972,1.448207171314741,1.45199203187251,1.455776892430279,1.4595617529880478,1.4633466135458166,1.4671314741035857,1.4709163346613545,1.4747011952191236,1.4784860557768924,1.4822709163346615,1.4860557768924303,1.4898406374501991,1.4936254980079682,1.497410358565737,1.501195219123506,1.504980079681275,1.5087649402390437,1.5125498007968128,1.5163346613545816,1.5201195219123507,1.5239043824701195,1.5276892430278886,1.5314741035856574,1.5352589641434262,1.5390438247011953,1.542828685258964,1.5466135458167332,1.550398406374502,1.5541832669322708,1.5579681274900399,1.5617529880478087,1.5655378486055778,1.5693227091633466,1.5731075697211154,1.5768924302788845,1.5806772908366533,1.5844621513944224,1.5882470119521912,1.5920318725099603,1.595816733067729,1.599601593625498,1.603386454183267,1.6071713147410358,1.6109561752988049,1.6147410358565737,1.6185258964143425,1.6223107569721116,1.6260956175298804,1.6298804780876495,1.6336653386454183,1.6374501992031874,1.6412350597609562,1.645019920318725,1.648804780876494,1.652589641434263,1.656374501992032,1.6601593625498008,1.6639442231075696,1.6677290836653387,1.6715139442231075,1.6752988047808766,1.6790836653386454,1.6828685258964144,1.6866533864541833,1.690438247011952,1.6942231075697212,1.69800796812749,1.701792828685259,1.7055776892430279,1.7093625498007967,1.7131474103585658,1.7169322709163346,1.7207171314741037,1.7245019920318725,1.7282868525896415,1.7320717131474104,1.7358565737051792,1.7396414342629483,1.743426294820717,1.7472111553784861,1.750996015936255,1.7547808764940238,1.7585657370517929,1.7623505976095617,1.7661354581673308,1.7699203187250996,1.7737051792828684,1.7774900398406375,1.7812749003984063,1.7850597609561754,1.7888446215139442,1.7926294820717132,1.796414342629482,1.800199203187251,1.80398406374502,1.8077689243027888,1.8115537848605578,1.8153386454183267,1.8191235059760955,1.8229083665338646,1.8266932270916334,1.8304780876494025,1.8342629482071713,1.8380478087649403,1.8418326693227092,1.845617529880478,1.849402390438247,1.853187250996016,1.856972111553785,1.8607569721115538,1.8645418326693226,1.8683266932270917,1.8721115537848605,1.8758964143426295,1.8796812749003984,1.8834661354581674,1.8872509960159363,1.891035856573705,1.8948207171314742,1.898605577689243,1.902390438247012,1.9061752988047809,1.9099601593625497,1.9137450199203188,1.9175298804780876,1.9213147410358566,1.9250996015936255,1.9288844621513945,1.9326693227091634,1.9364541832669322,1.9402390438247012,1.94402390438247,1.9478087649402391,1.951593625498008,1.9553784860557768,1.9591633466135459,1.9629482071713147,1.9667330677290837,1.9705179282868526,1.9743027888446214,1.9780876494023905,1.9818725099601593,1.9856573705179283,1.9894422310756972,1.9932270916334662,1.997011952191235,2.000796812749004,2.004581673306773,2.008366533864542,2.0121513944223106,2.0159362549800797,2.0197211155378487,2.0235059760956173,2.0272908366533864,2.0310756972111554,2.0348605577689245,2.038645418326693,2.042430278884462,2.046215139442231,2.05,2.053784860557769,2.057569721115538,2.061354581673307,2.0651394422310756,2.0689243027888446,2.0727091633466137,2.0764940239043823,2.0802788844621514,2.0840637450199204,2.087848605577689,2.091633466135458,2.095418326693227,2.099203187250996,2.102988047808765,2.106772908366534,2.110557768924303,2.1143426294820715,2.1181274900398406,2.1219123505976096,2.1256972111553787,2.1294820717131473,2.1332669322709163,2.1370517928286854,2.140836653386454,2.144621513944223,2.148406374501992,2.152191235059761,2.15597609561753,2.159760956175299,2.163545816733068,2.1673306772908365,2.1711155378486056,2.1749003984063746,2.1786852589641432,2.1824701195219123,2.1862549800796813,2.1900398406374504,2.193824701195219,2.197609561752988,2.201394422310757,2.2051792828685257,2.2089641434262948,2.212749003984064,2.216533864541833,2.2203187250996015,2.2241035856573705,2.2278884462151396,2.231673306772908,2.2354581673306773,2.2392430278884463,2.243027888446215,2.246812749003984,2.250597609561753,2.254382470119522,2.2581673306772907,2.2619521912350598,2.265737051792829,2.2695219123505974,2.2733067729083665,2.2770916334661355,2.2808764940239046,2.284661354581673,2.2884462151394422,2.2922310756972113,2.29601593625498,2.299800796812749,2.303585657370518,2.307370517928287,2.3111553784860557,2.3149402390438247,2.318725099601594,2.3225099601593624,2.3262948207171315,2.3300796812749005,2.333864541832669,2.337649402390438,2.3414342629482072,2.3452191235059763,2.349003984063745,2.352788844621514,2.356573705179283,2.3603585657370516,2.3641434262948207,2.3679282868525897,2.3717131474103588,2.3754980079681274,2.3792828685258964,2.3830677290836655,2.386852589641434,2.390637450199203,2.394422310756972,2.398207171314741,2.40199203187251,2.405776892430279,2.409561752988048,2.4133466135458166,2.4171314741035856,2.4209163346613547,2.4247011952191233,2.4284860557768924,2.4322709163346614,2.4360557768924305,2.439840637450199,2.443625498007968,2.447410358565737,2.451195219123506,2.454980079681275,2.458764940239044,2.462549800796813,2.4663346613545816,2.4701195219123506,2.4739043824701197,2.4776892430278883,2.4814741035856573,2.4852589641434264,2.489043824701195,2.492828685258964,2.496613545816733,2.500398406374502,2.504183266932271,2.50796812749004,2.511752988047809,2.5155378486055775,2.5193227091633466,2.5231075697211156,2.5268924302788847,2.5306772908366533,2.5344621513944223,2.5382470119521914,2.54203187250996,2.545816733067729,2.549601593625498,2.553386454183267,2.5571713147410358,2.560956175298805,2.564741035856574,2.5685258964143425,2.5723107569721115,2.5760956175298806,2.579880478087649,2.5836653386454183,2.5874501992031873,2.5912350597609564,2.595019920318725,2.598804780876494,2.602589641434263,2.6063745019920317,2.6101593625498007,2.61394422310757,2.617729083665339,2.6215139442231075,2.6252988047808765,2.6290836653386456,2.632868525896414,2.6366533864541832,2.6404382470119523,2.644223107569721,2.64800796812749,2.651792828685259,2.655577689243028,2.6593625498007967,2.6631474103585657,2.666932270916335,2.6707171314741034,2.6745019920318724,2.6782868525896415,2.6820717131474106,2.685856573705179,2.689641434262948,2.6934262948207173,2.697211155378486,2.700996015936255,2.704780876494024,2.708565737051793,2.7123505976095617,2.7161354581673307,2.7199203187250998,2.7237051792828684,2.7274900398406374,2.7312749003984065,2.735059760956175,2.738844621513944,2.742629482071713,2.7464143426294823,2.750199203187251,2.75398406374502,2.757768924302789,2.7615537848605576,2.7653386454183266,2.7691235059760957,2.7729083665338647,2.7766932270916334,2.7804780876494024,2.7842629482071715,2.78804780876494,2.791832669322709,2.795617529880478,2.799402390438247,2.803187250996016,2.806972111553785,2.810756972111554,2.8145418326693226,2.8183266932270916,2.8221115537848607,2.8258964143426293,2.8296812749003983,2.8334661354581674,2.8372509960159364,2.841035856573705,2.844820717131474,2.848605577689243,2.8523904382470118,2.856175298804781,2.85996015936255,2.863745019920319,2.8675298804780875,2.8713147410358566,2.8750996015936257,2.8788844621513943,2.8826693227091633,2.8864541832669324,2.890239043824701,2.89402390438247,2.897808764940239,2.901593625498008,2.9053784860557768,2.909163346613546,2.912948207171315,2.9167330677290835,2.9205179282868525,2.9243027888446216,2.9280876494023906,2.9318725099601592,2.9356573705179283,2.9394422310756974,2.943227091633466,2.947011952191235,2.950796812749004,2.954581673306773,2.9583665338645417,2.962151394422311,2.96593625498008,2.9697211155378485,2.9735059760956175,2.9772908366533866,2.981075697211155,2.9848605577689242,2.9886454183266933,2.9924302788844623,2.996215139442231,3.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/runner.jl new file mode 100644 index 000000000000..520e136ade6f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/fixtures/julia/runner.jl @@ -0,0 +1,94 @@ +#!/usr/bin/env julia +# +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import JSON + +""" + gen( domain, name ) + +Generate fixture data and write to file. + +# Arguments + +* `domain`: domain +* `name::AbstractString`: output filename + +# Examples + +``` julia +julia> x = range( -1000.0, stop = 1000.0, length = 2001 ); +julia> gen( x, \"data.json\" ); +``` +""" +function gen( domain, name ) + x = collect( domain ); + y = acoth.( x ); + + # Store data to be written to file as a collection: + data = Dict([ + ("x", x), + ("expected", y) + ]); + + # Based on the script directory, create an output filepath: + filepath = joinpath( dir, name ); + + # Write the data to the output filepath as JSON: + outfile = open( filepath, "w" ); + write( outfile, JSON.json(data) ); + write( outfile, "\n" ); + close( outfile ); +end + +# Get the filename: +file = @__FILE__; + +# Extract the directory in which this file resides: +dir = dirname( file ); + +# Positive medium values: +x = range( 1.1, stop = 3.0, length = 503 ); +gen( x, "medium_positive.json" ); + +# Large positive values: +x = range( 3.0, stop = 28.0, length = 503 ); +gen( x, "large_positive.json" ); + +# Larger positive values: +x = range( 28.0, stop = 100.0, length = 503 ); +gen( x, "larger_positive.json" ); + +# Huge positive values: +x = range( 1.0e300, stop = 1.0e308, length = 1003 ); +gen( x, "huge_positive.json" ); + +# Negative medium values: +x = range( -1.1, stop = -3.0, length = 503 ); +gen( x, "medium_negative.json" ); + +# Large negative values: +x = range( -3.0, stop = -28.0, length = 503 ); +gen( x, "large_negative.json" ); + +# Larger negative values: +x = range( -28.0, stop = -100.0, length = 503 ); +gen( x, "larger_negative.json" ); + +# Huge negative values: +x = range( -1.0e300, stop = -1.0e308, length = 1003 ); +gen( x, "huge_negative.json" ); diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/test.js b/lib/node_modules/@stdlib/math/base/special/acothf/test/test.js new file mode 100644 index 000000000000..7134810b99e2 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/test.js @@ -0,0 +1,276 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var randu = require( '@stdlib/random/base/randu' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var isAlmostSameValue = require( '@stdlib/number/float32/base/assert/is-almost-same-value' ); +var acothf = require( './../lib' ); + + +// FIXTURES // + +var largerPositive = require( './fixtures/julia/larger_positive.json' ); +var largePositive = require( './fixtures/julia/large_positive.json' ); +var mediumPositive = require( './fixtures/julia/medium_positive.json' ); +var hugePositive = require( './fixtures/julia/huge_positive.json' ); +var largerNegative = require( './fixtures/julia/larger_negative.json' ); +var largeNegative = require( './fixtures/julia/large_negative.json' ); +var mediumNegative = require( './fixtures/julia/medium_negative.json' ); +var hugeNegative = require( './fixtures/julia/huge_negative.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof acothf, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for medium positive values', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumPositive.x; + expected = mediumPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for medium negative values', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumNegative.x; + expected = mediumNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for large positive values', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largePositive.x; + expected = largePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for large negative values', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largeNegative.x; + expected = largeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for larger positive values', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerPositive.x; + expected = largerPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for larger negative values', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerNegative.x; + expected = largerNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for huge positive values', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugePositive.x; + expected = hugePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for huge negative values', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugeNegative.x; + expected = hugeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { + var v = acothf( NaN ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided a value on the open interval (-1,1)', function test( t ) { + var v; + var i; + + for ( i = 0; i < 1e3; i++ ) { + v = ( randu()*2.0 ) - 1.0; + t.strictEqual( isnanf( acothf( v ) ), true, 'returns expected value when provided '+v ); + } + t.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/acothf/test/test.native.js new file mode 100644 index 000000000000..f4e085f48772 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/acothf/test/test.native.js @@ -0,0 +1,285 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var randu = require( '@stdlib/random/base/randu' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var isAlmostSameValue = require( '@stdlib/number/float32/base/assert/is-almost-same-value' ); + + +// FIXTURES // + +var largerPositive = require( './fixtures/julia/larger_positive.json' ); +var largePositive = require( './fixtures/julia/large_positive.json' ); +var mediumPositive = require( './fixtures/julia/medium_positive.json' ); +var hugePositive = require( './fixtures/julia/huge_positive.json' ); +var largerNegative = require( './fixtures/julia/larger_negative.json' ); +var largeNegative = require( './fixtures/julia/large_negative.json' ); +var mediumNegative = require( './fixtures/julia/medium_negative.json' ); +var hugeNegative = require( './fixtures/julia/huge_negative.json' ); + + +// VARIABLES // + +var acothf = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( acothf instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof acothf, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for medium positive values', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumPositive.x; + expected = mediumPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for medium negative values', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumNegative.x; + expected = mediumNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for large positive values', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largePositive.x; + expected = largePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for large negative values', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largeNegative.x; + expected = largeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for larger positive values', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerPositive.x; + expected = largerPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for larger negative values', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerNegative.x; + expected = largerNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 2.3 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for huge positive values', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugePositive.x; + expected = hugePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse hyperbolic cotangent for huge negative values', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugeNegative.x; + expected = hugeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = acothf( x[ i ] ); + e = f32( expected[ i ] ); + if ( isAlmostSameValue( y, e, 0 ) ) { + t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e+'.' ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { + var v = acothf( NaN ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided a value on the open interval (-1,1)', opts, function test( t ) { + var v; + var i; + + for ( i = 0; i < 1e3; i++ ) { + v = ( randu()*2.0 ) - 1.0; + t.strictEqual( isnanf( acothf( v ) ), true, 'returns expected value when provided '+v ); + } + t.end(); +}); From bd79c9768caced981fde625c8461695e8b089a15 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Wed, 21 Jan 2026 12:11:55 -0600 Subject: [PATCH 09/19] docs: update README to have required sections --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/_tools/README.md | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/lib/node_modules/@stdlib/_tools/README.md b/lib/node_modules/@stdlib/_tools/README.md index 4c3d77e011f2..baad9e72e38b 100644 --- a/lib/node_modules/@stdlib/_tools/README.md +++ b/lib/node_modules/@stdlib/_tools/README.md @@ -32,6 +32,42 @@ This directory contains Node.js packages which are used for project development. +
+ +## Usage + +```javascript +var tools = require( '@stdlib/_tools' ); +``` + +#### tools + +Namespace containing project development utilities. + +```javascript +var ns = tools; +// returns null +``` + +
+ + + +
+ +## Examples + +```javascript +var tools = require( '@stdlib/_tools' ); + +console.log( tools ); +// => null +``` + +
+ + + +
From 2d10f4f3b4b4383a53ebc0dca44f03d4250e0197 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 21 Jan 2026 12:41:11 -0600 Subject: [PATCH 11/19] docs: update namespace table of contents PR-URL: https://github.com/stdlib-js/stdlib/pull/9848 Reviewed-by: Philipp Burckhardt Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../@stdlib/_tools/eslint/rules/README.md | 3 + .../@stdlib/complex/float64/base/README.md | 3 + lib/node_modules/@stdlib/ndarray/README.md | 2 +- .../@stdlib/ndarray/base/README.md | 32 +++++++++-- lib/node_modules/@stdlib/object/README.md | 57 +++++++++++++++++++ .../@stdlib/random/tools/README.md | 6 ++ lib/node_modules/@stdlib/utils/README.md | 39 ------------- 7 files changed, 98 insertions(+), 44 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/README.md index 275f084c96ba..64f53a1c648d 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/README.md +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/README.md @@ -72,6 +72,7 @@ var eslint = rules; - [`no-dynamic-exports`][@stdlib/_tools/eslint/rules/no-dynamic-exports]: ESLint rule enforcing that only statically analyzable values are exported. - [`no-dynamic-require`][@stdlib/_tools/eslint/rules/no-dynamic-require]: ESLint rule enforcing that `require()` calls have only string literals as arguments. - [`no-empty-comments`][@stdlib/_tools/eslint/rules/no-empty-comments]: ESLint rule to disallow empty comments. +- [`no-empty-lines-between-requires`][@stdlib/_tools/eslint/rules/no-empty-lines-between-requires]: ESLint rule to enforce no empty lines between module-level require statements. - [`no-error-string-concat`][@stdlib/_tools/eslint/rules/no-error-string-concat]: ESLint rule disallowing string concatenation in error messages. - [`no-immediate-require`][@stdlib/_tools/eslint/rules/no-immediate-require]: ESLint rule enforcing that `require()` expressions are not immediately invoked. - [`no-internal-require`][@stdlib/_tools/eslint/rules/no-internal-require]: ESLint rule disallowing `require()` calls into internals of another stdlib package. @@ -417,6 +418,8 @@ console.log( getKeys( rules ) ); [@stdlib/_tools/eslint/rules/no-empty-comments]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/_tools/eslint/rules/no-empty-comments +[@stdlib/_tools/eslint/rules/no-empty-lines-between-requires]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/_tools/eslint/rules/no-empty-lines-between-requires + [@stdlib/_tools/eslint/rules/no-error-string-concat]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/_tools/eslint/rules/no-error-string-concat [@stdlib/_tools/eslint/rules/no-immediate-require]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/_tools/eslint/rules/no-immediate-require diff --git a/lib/node_modules/@stdlib/complex/float64/base/README.md b/lib/node_modules/@stdlib/complex/float64/base/README.md index aa2b701d30a5..533241d9731a 100644 --- a/lib/node_modules/@stdlib/complex/float64/base/README.md +++ b/lib/node_modules/@stdlib/complex/float64/base/README.md @@ -58,6 +58,7 @@ The namespace contains the following functions:
- [`add( z1, z2 )`][@stdlib/complex/float64/base/add]: add two double-precision complex floating-point numbers. +- [`add3( z1, z2, z3 )`][@stdlib/complex/float64/base/add3]: compute the sum of three double-precision complex floating-point numbers. - [`div( z1, z2 )`][@stdlib/complex/float64/base/div]: divide two double-precision complex floating-point numbers. - [`identity( z )`][@stdlib/complex/float64/base/identity]: evaluate the identity function of a double-precision complex floating-point number. - [`muladd( alpha, x, y )`][@stdlib/complex/float64/base/mul-add]: perform a multiply-add operation involving three double-precision complex floating-point numbers. @@ -117,6 +118,8 @@ console.log( objectKeys( ns ) ); [@stdlib/complex/float64/base/add]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/add +[@stdlib/complex/float64/base/add3]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/add3 + [@stdlib/complex/float64/base/div]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/div [@stdlib/complex/float64/base/identity]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/complex/float64/base/identity diff --git a/lib/node_modules/@stdlib/ndarray/README.md b/lib/node_modules/@stdlib/ndarray/README.md index 09226745040e..1fe20e7ef386 100644 --- a/lib/node_modules/@stdlib/ndarray/README.md +++ b/lib/node_modules/@stdlib/ndarray/README.md @@ -77,7 +77,7 @@ In addition, the namespace contains the following multidimensional array utility - [`broadcastArray( x, shape )`][@stdlib/ndarray/broadcast-array]: broadcast an ndarray to a specified shape. - [`broadcastArrays( ...arrays )`][@stdlib/ndarray/broadcast-arrays]: broadcast ndarrays to a common shape. - [`castingModes()`][@stdlib/ndarray/casting-modes]: list of ndarray casting modes. -- [`concat( arrays[, dim] )`][@stdlib/ndarray/concat]: concatenate a list of ndarrays along a specified ndarray dimension. +- [`concat( arrays[, options] )`][@stdlib/ndarray/concat]: concatenate a list of ndarrays along a specified ndarray dimension. - [`copy( x[, options] )`][@stdlib/ndarray/copy]: copy an input ndarray to a new ndarray having the same shape and data type. - [`countFalsy( x[, options] )`][@stdlib/ndarray/count-falsy]: count the number of falsy elements along one or more `ndarray` dimensions. - [`countIf( x[, options], predicate[, thisArg] )`][@stdlib/ndarray/count-if]: count the number of truthy elements along one or more `ndarray` dimensions. diff --git a/lib/node_modules/@stdlib/ndarray/base/README.md b/lib/node_modules/@stdlib/ndarray/base/README.md index 52e31c43cb78..f5737b30f9b0 100644 --- a/lib/node_modules/@stdlib/ndarray/base/README.md +++ b/lib/node_modules/@stdlib/ndarray/base/README.md @@ -58,7 +58,7 @@ var o = ns; - [`broadcastArrayExceptDimensions( arr, shape, dims )`][@stdlib/ndarray/base/broadcast-array-except-dimensions]: broadcast an input ndarray to a target shape while keeping a list of specified dimensions unchanged. - [`broadcastArray( arr, shape )`][@stdlib/ndarray/base/broadcast-array]: broadcast an ndarray to a specified shape. - [`broadcastArrays( arrays )`][@stdlib/ndarray/base/broadcast-arrays]: broadcast ndarrays to a common shape. -- [`broadcastScalar( value, dtype, shape, order )`][@stdlib/ndarray/base/broadcast-scalar]: broadcast a scalar value to an `ndarray` having a specified shape. +- [`broadcastScalar( value, dtype, shape, order )`][@stdlib/ndarray/base/broadcast-scalar]: broadcast a scalar value to an ndarray having a specified shape. - [`broadcastShapes( shapes )`][@stdlib/ndarray/base/broadcast-shapes]: broadcast array shapes to a single shape. - [`bufferCtors( dtype )`][@stdlib/ndarray/base/buffer-ctors]: ndarray data buffer constructors. - [`bufferDataTypeEnum( buffer )`][@stdlib/ndarray/base/buffer-dtype-enum]: return the data type enumeration constant of an ndarray data buffer. @@ -89,11 +89,12 @@ var o = ns; - [`dtype2c( dtype )`][@stdlib/ndarray/base/dtype2c]: return the C data type associated with a provided data type value. - [`dtypes2enums( dtypes )`][@stdlib/ndarray/base/dtypes2enums]: resolve a list of data type enumeration constants. - [`dtypes2signatures( dtypes, nin, nout )`][@stdlib/ndarray/base/dtypes2signatures]: transform a list of array argument data types into a list of signatures. +- [`dtypes2strings( dtypes )`][@stdlib/ndarray/base/dtypes2strings]: resolve a list of data type strings. - [`emptyLike( x )`][@stdlib/ndarray/base/empty-like]: create an uninitialized ndarray having the same shape and data type as a provided ndarray. - [`empty( dtype, shape, order )`][@stdlib/ndarray/base/empty]: create an uninitialized ndarray having a specified shape and data type. - [`everyBy( arrays, predicate[, thisArg] )`][@stdlib/ndarray/base/every-by]: test whether all elements in an ndarray pass a test implemented by a predicate function. - [`every( arrays )`][@stdlib/ndarray/base/every]: test whether every element in an ndarray is truthy. -- [`expandDimensions( x, axis )`][@stdlib/ndarray/base/expand-dimensions]: expand the shape of an array by inserting a new dimension of size one at a specified axis. +- [`expandDimensions( x, dim, writable )`][@stdlib/ndarray/base/expand-dimensions]: expand the shape of an array by inserting a new dimension of size one at a specified dimension index. - [`fillBy( x, fcn[, thisArg] )`][@stdlib/ndarray/base/fill-by]: fill an input ndarray according to a callback function. - [`fill( x, value )`][@stdlib/ndarray/base/fill]: fill an input ndarray with a specified value. - [`find( arrays, predicate[, thisArg] )`][@stdlib/ndarray/base/find]: return the first element in an ndarray which passes a test implemented by a predicate function. @@ -145,7 +146,7 @@ var o = ns; - [`outputPolicyResolveStr( dtype )`][@stdlib/ndarray/base/output-policy-resolve-str]: return the policy string associated with a supported ndarray data type policy value. - [`outputPolicyStr2Enum( policy )`][@stdlib/ndarray/base/output-policy-str2enum]: return the enumeration constant associated with an output ndarray data type policy string. - [`pop( x, dim, writable )`][@stdlib/ndarray/base/pop]: return an array containing a truncated view of an input ndarray and a view of the last element(s) along a specified dimension. -- [`prependSingletonDimensions( x, n )`][@stdlib/ndarray/base/prepend-singleton-dimensions]: prepend singleton dimensions. +- [`prependSingletonDimensions( x, n, writable )`][@stdlib/ndarray/base/prepend-singleton-dimensions]: prepend singleton dimensions. - [`promoteDataTypes( dtypes )`][@stdlib/ndarray/base/promote-dtypes]: resolve the data type that results from applying promotion rules to a provided list of data types. - [`removeSingletonDimensions( x )`][@stdlib/ndarray/base/remove-singleton-dimensions]: remove singleton dimensions. - [`reverseDimension( x, dim, writable )`][@stdlib/ndarray/base/reverse-dimension]: return a view of an input ndarray in which the order of elements along a specified dimension is reversed. @@ -164,14 +165,21 @@ var o = ns; - [`slice( x, slice, strict, writable )`][@stdlib/ndarray/base/slice]: return a view of an input ndarray. - [`someBy( arrays, predicate[, thisArg ] )`][@stdlib/ndarray/base/some-by]: test whether at least `n` elements in an ndarray pass a test implemented by a predicate function. - [`some( arrays )`][@stdlib/ndarray/base/some]: test whether at least `n` elements in an ndarray are truthy. -- [`spreadDimensions( ndims, x, dims )`][@stdlib/ndarray/base/spread-dimensions]: expand the shape of an array to a specified dimensionality by spreading its dimensions to specified dimension indices and inserting dimensions of size one for the remaining dimensions. +- [`spreadDimensions( ndims, x, dims, writable )`][@stdlib/ndarray/base/spread-dimensions]: expand the shape of an array to a specified dimensionality by spreading its dimensions to specified dimension indices and inserting dimensions of size one for the remaining dimensions. - [`stride( x, dim )`][@stdlib/ndarray/base/stride]: return the stride along a specified dimension for a provided ndarray. - [`strides( x, copy )`][@stdlib/ndarray/base/strides]: return the strides of a provided ndarray. - [`strides2offset( shape, strides )`][@stdlib/ndarray/base/strides2offset]: determine the index offset which specifies the location of the first indexed value in a multidimensional array based on a stride array. - [`strides2order( strides )`][@stdlib/ndarray/base/strides2order]: determine the order of a multidimensional array based on a provided stride array. - [`sub2ind( shape, strides, offset, ...subscripts, mode )`][@stdlib/ndarray/base/sub2ind]: convert subscripts to a linear index. +- [`ternaryLoopOrder( shape, stridesX, stridesY, stridesZ, stridesW )`][@stdlib/ndarray/base/ternary-loop-interchange-order]: reorder ndarray dimensions and associated strides for loop interchange. +- [`ternaryOutputDataType( xdtype, ydtype, zdtype, policy )`][@stdlib/ndarray/base/ternary-output-dtype]: resolve the output ndarray data type for a ternary function. +- [`ternaryBlockSize( dtypeX, dtypeY, dtypeZ, dtypeW )`][@stdlib/ndarray/base/ternary-tiling-block-size]: resolve a loop block size for multi-dimensional array tiled loops. +- [`ternary( arrays, fcn )`][@stdlib/ndarray/base/ternary]: apply a ternary callback to elements in input ndarrays and assign results to elements in an output ndarray. - [`ndarray2array( buffer, shape, strides, offset, order )`][@stdlib/ndarray/base/to-array]: convert an ndarray buffer to a generic array. +- [`toFlippedlr( x )`][@stdlib/ndarray/base/to-flippedlr]: return a new ndarray where the order of elements along the last dimension of an input ndarray is reversed. +- [`toFlippedud( x )`][@stdlib/ndarray/base/to-flippedud]: return a new ndarray where the order of elements along the second-to-last dimension of an input ndarray is reversed. - [`toNormalizedIndices( indices, max )`][@stdlib/ndarray/base/to-normalized-indices]: normalize a list of indices to the interval `[0,max]`. +- [`toReversedDimension( x, dim )`][@stdlib/ndarray/base/to-reversed-dimension]: return a new ndarray where the order of elements of an input ndarray along a specified dimension is reversed. - [`toReversed( x )`][@stdlib/ndarray/base/to-reversed]: return a new ndarray where the order of elements of an input ndarray is reversed along each dimension. - [`toUniqueNormalizedIndices( indices, max )`][@stdlib/ndarray/base/to-unique-normalized-indices]: return a list of unique indices after normalizing to the interval `[0,max]`. - [`transpose( x )`][@stdlib/ndarray/base/transpose]: transpose a matrix (or a stack of matrices). @@ -348,6 +356,8 @@ console.log( objectKeys( ns ) ); [@stdlib/ndarray/base/dtypes2signatures]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/dtypes2signatures +[@stdlib/ndarray/base/dtypes2strings]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/dtypes2strings + [@stdlib/ndarray/base/empty-like]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/empty-like [@stdlib/ndarray/base/empty]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/empty @@ -510,10 +520,24 @@ console.log( objectKeys( ns ) ); [@stdlib/ndarray/base/sub2ind]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/sub2ind +[@stdlib/ndarray/base/ternary-loop-interchange-order]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ternary-loop-interchange-order + +[@stdlib/ndarray/base/ternary-output-dtype]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ternary-output-dtype + +[@stdlib/ndarray/base/ternary-tiling-block-size]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ternary-tiling-block-size + +[@stdlib/ndarray/base/ternary]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ternary + [@stdlib/ndarray/base/to-array]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/to-array +[@stdlib/ndarray/base/to-flippedlr]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/to-flippedlr + +[@stdlib/ndarray/base/to-flippedud]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/to-flippedud + [@stdlib/ndarray/base/to-normalized-indices]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/to-normalized-indices +[@stdlib/ndarray/base/to-reversed-dimension]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/to-reversed-dimension + [@stdlib/ndarray/base/to-reversed]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/to-reversed [@stdlib/ndarray/base/to-unique-normalized-indices]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/to-unique-normalized-indices diff --git a/lib/node_modules/@stdlib/object/README.md b/lib/node_modules/@stdlib/object/README.md index 0c5b655f6a28..57c3014f7a4b 100644 --- a/lib/node_modules/@stdlib/object/README.md +++ b/lib/node_modules/@stdlib/object/README.md @@ -45,13 +45,32 @@ The namespace contains the following:
+- [`anyInBy( object, predicate[, thisArg ] )`][@stdlib/object/any-in-by]: test whether at least one property in an object passes a test implemented by a predicate function. +- [`anyOwnBy( object, predicate[, thisArg ] )`][@stdlib/object/any-own-by]: test whether at least one own property of a provided object passes a test implemented by a predicate function. - [`assignIn( target, source1[, source2[,...,sourceN]] )`][@stdlib/object/assign-in]: copy enumerable own and inherited properties from one or more source objects to a target object. - [`assign( target, source1[, source2[,...,sourceN]] )`][@stdlib/object/assign]: copy enumerable own properties from one or more source objects to a target object. +- [`bifurcateIn( obj, [options,] predicate )`][@stdlib/object/bifurcate-in]: split an object's **own** and **inherited** property values into two groups according to a predicate function. +- [`bifurcateOwn( obj, [options,] predicate )`][@stdlib/object/bifurcate-own]: split an object's **own** property values into two groups according to a predicate function. +- [`capitalizeKeys( obj )`][@stdlib/object/capitalize-keys]: convert the first letter of each object key to uppercase. +- [`commonKeysIn( obj1, obj2[, obj3[,...,objN]] )`][@stdlib/object/common-keys-in]: return the common own and inherited property names of two or more objects. +- [`commonKeys( obj1, obj2[, obj3[,...,objN]] )`][@stdlib/object/common-keys]: return the common own property names of two or more objects. - [`Object( value )`][@stdlib/object/ctor]: object constructor. +- [`deepGet( obj, path[, options] )`][@stdlib/object/deep-get]: get a nested property value. +- [`deepSet( obj, path, value[, options] )`][@stdlib/object/deep-set]: set a nested property value. - [`everyInBy( object, predicate[, thisArg ] )`][@stdlib/object/every-in-by]: test whether all properties (own and inherited) of an object pass a test implemented by a predicate function. - [`everyOwnBy( object, predicate[, thisArg ] )`][@stdlib/object/every-own-by]: test whether all own propertes of an object pass a test implemented by a predicate function. +- [`forIn( obj, fcn[, thisArg ] )`][@stdlib/object/for-in]: invoke a function for each own and inherited enumerable property of an object. +- [`forOwn( obj, fcn[, thisArg ] )`][@stdlib/object/for-own]: invoke a function for each own enumerable property of an object. +- [`inverseBy( obj, [options,] transform )`][@stdlib/object/inverse-by]: invert an object, such that keys become values and values become keys, according to a transform function. +- [`inverse( obj[, options] )`][@stdlib/object/inverse]: invert an object, such that keys become values and values become keys. +- [`lowercaseKeys( obj )`][@stdlib/object/lowercase-keys]: convert each object key to lowercase. +- [`moveProperty( source, prop, target )`][@stdlib/object/move-property]: move a property from one object to another object. - [`noneInBy( object, predicate[, thisArg ] )`][@stdlib/object/none-in-by]: test whether every property of an object fails a test implemented by a predicate function. +- [`noneOwnBy( object, predicate[, thisArg ] )`][@stdlib/object/none-own-by]: tests whether every own property of an object fails a test implemented by a predicate function. - [`someInBy( obj, n, predicate[, thisArg ] )`][@stdlib/object/some-in-by]: test whether an object contains at least `n` properties which pass a test implemented by a predicate function. +- [`someOwnBy( obj, n, predicate[, thisArg ] )`][@stdlib/object/some-own-by]: test whether an object contains at least `n` own properties which pass a test implemented by a predicate function. +- [`uncapitalizeKeys( obj )`][@stdlib/object/uncapitalize-keys]: convert the first letter of each object key to lowercase. +- [`uppercaseKeys( obj )`][@stdlib/object/uppercase-keys]: convert each object key to uppercase.
@@ -94,20 +113,58 @@ console.log( objectKeys( ns ) ); +[@stdlib/object/any-in-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/any-in-by + +[@stdlib/object/any-own-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/any-own-by + [@stdlib/object/assign-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/assign-in [@stdlib/object/assign]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/assign +[@stdlib/object/bifurcate-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/bifurcate-in + +[@stdlib/object/bifurcate-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/bifurcate-own + +[@stdlib/object/capitalize-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/capitalize-keys + +[@stdlib/object/common-keys-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/common-keys-in + +[@stdlib/object/common-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/common-keys + [@stdlib/object/ctor]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/ctor +[@stdlib/object/deep-get]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/deep-get + +[@stdlib/object/deep-set]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/deep-set + [@stdlib/object/every-in-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/every-in-by [@stdlib/object/every-own-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/every-own-by +[@stdlib/object/for-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/for-in + +[@stdlib/object/for-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/for-own + +[@stdlib/object/inverse-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/inverse-by + +[@stdlib/object/inverse]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/inverse + +[@stdlib/object/lowercase-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/lowercase-keys + +[@stdlib/object/move-property]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/move-property + [@stdlib/object/none-in-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/none-in-by +[@stdlib/object/none-own-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/none-own-by + [@stdlib/object/some-in-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/some-in-by +[@stdlib/object/some-own-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/some-own-by + +[@stdlib/object/uncapitalize-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/uncapitalize-keys + +[@stdlib/object/uppercase-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/uppercase-keys +
diff --git a/lib/node_modules/@stdlib/random/tools/README.md b/lib/node_modules/@stdlib/random/tools/README.md index 66ee0ea317cf..90763e4e5486 100644 --- a/lib/node_modules/@stdlib/random/tools/README.md +++ b/lib/node_modules/@stdlib/random/tools/README.md @@ -57,6 +57,8 @@ The namespace exports the following: - [`binaryFactory( prng, idtypes, odtypes, policies[, options] )`][@stdlib/random/tools/binary-factory]: create a function for generating pseudorandom values drawn from a binary PRNG. - [`binary( prng, idtypes, odtypes, policies[, options] )`][@stdlib/random/tools/binary]: constructor for creating ndarrays filled with pseudorandom values drawn from a binary PRNG. +- [`ternaryFactory( prng, idtypes, odtypes, policies[, options] )`][@stdlib/random/tools/ternary-factory]: create a function for generating pseudorandom values drawn from a ternary PRNG. +- [`ternary( prng, idtypes, odtypes, policies[, options] )`][@stdlib/random/tools/ternary]: constructor for creating ndarrays filled with pseudorandom values drawn from a ternary PRNG. - [`unaryFactory( prng, idtypes, odtypes, policies[, options] )`][@stdlib/random/tools/unary-factory]: create a function for generating pseudorandom values drawn from a unary PRNG. - [`unary( prng, idtypes, odtypes, policies[, options] )`][@stdlib/random/tools/unary]: constructor for creating ndarrays filled with pseudorandom values drawn from a unary PRNG. @@ -115,6 +117,10 @@ console.log( objectKeys( ns ) ); [@stdlib/random/tools/binary]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/tools/binary +[@stdlib/random/tools/ternary-factory]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/tools/ternary-factory + +[@stdlib/random/tools/ternary]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/tools/ternary + [@stdlib/random/tools/unary-factory]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/tools/unary-factory [@stdlib/random/tools/unary]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/tools/unary diff --git a/lib/node_modules/@stdlib/utils/README.md b/lib/node_modules/@stdlib/utils/README.md index ba0bda00cb85..54b3266c530d 100644 --- a/lib/node_modules/@stdlib/utils/README.md +++ b/lib/node_modules/@stdlib/utils/README.md @@ -62,8 +62,6 @@ The namespace has the following sub-namespaces: - [`any( collection )`][@stdlib/utils/any]: test whether at least one element in a collection is truthy. - [`append( collection1, collection2 )`][@stdlib/utils/append]: add elements from one collection to the end of another collection. - [`bifurcateBy( collection, [options,] predicate )`][@stdlib/utils/bifurcate-by]: split values into two groups according to a predicate function. -- [`bifurcateIn( obj, [options,] predicate )`][@stdlib/utils/bifurcate-in]: split an object's **own** and **inherited** property values into two groups according to a predicate function. -- [`bifurcateOwn( obj, [options,] predicate )`][@stdlib/utils/bifurcate-own]: split an object's **own** property values into two groups according to a predicate function. - [`bifurcate( collection, [options,] filter )`][@stdlib/utils/bifurcate]: split values into two groups. - [`countBy( collection, [options,] indicator )`][@stdlib/utils/count-by]: group values according to an indicator function and return group counts. - [`everyByRight( collection, predicate[, thisArg ] )`][@stdlib/utils/every-by-right]: test whether all elements in a collection pass a test implemented by a predicate function, iterating from right to left. @@ -129,9 +127,6 @@ The namespace has the following sub-namespaces:
-- [`commonKeys( obj1, obj2[, obj3[,...,objN]] )`][@stdlib/utils/common-keys]: return the common own property names of two or more objects. -- [`deepGet( obj, path[, options] )`][@stdlib/utils/deep-get]: get a nested property value. -- [`deepSet( obj, path, value[, options] )`][@stdlib/utils/deep-set]: set a nested property value. - [`setConfigurableReadOnlyAccessor( obj, prop, getter )`][@stdlib/utils/define-configurable-read-only-accessor]: define a configurable **read-only** accessor. - [`setConfigurableReadOnly( obj, prop, value )`][@stdlib/utils/define-configurable-read-only-property]: define a configurable **read-only** property. - [`setConfigurableReadWriteAccessor( obj, prop, getter, setter )`][@stdlib/utils/define-configurable-read-write-accessor]: define a configurable **read-write** accessor. @@ -157,8 +152,6 @@ The namespace has the following sub-namespaces: - [`enumerablePropertySymbolsIn( obj )`][@stdlib/utils/enumerable-property-symbols-in]: return an array of an object's own and inherited enumerable symbol properties. - [`enumerablePropertySymbols( obj )`][@stdlib/utils/enumerable-property-symbols]: return an array of an object's own enumerable symbol properties. - [`flattenObject( obj[, options] )`][@stdlib/utils/flatten-object]: flatten an object. -- [`forIn( obj, fcn[, thisArg ] )`][@stdlib/utils/for-in]: invoke a function for each own and inherited enumerable property of an object. -- [`forOwn( obj, fcn[, thisArg ] )`][@stdlib/utils/for-own]: invoke a function for each own enumerable property of an object. - [`getPrototypeOf( value )`][@stdlib/utils/get-prototype-of]: return the prototype of a provided object. - [`inheritedEnumerableProperties( obj[, level] )`][@stdlib/utils/inherited-enumerable-properties]: return an array of an object's inherited enumerable property names and symbols. - [`inheritedEnumerablePropertySymbols( obj[, level] )`][@stdlib/utils/inherited-enumerable-property-symbols]: return an array of an object's inherited enumerable symbol properties. @@ -175,7 +168,6 @@ The namespace has the following sub-namespaces: - [`inheritedWritablePropertyNames( obj[, level] )`][@stdlib/utils/inherited-writable-property-names]: return an array of an object's inherited writable property names. - [`inheritedWritablePropertySymbols( obj[, level] )`][@stdlib/utils/inherited-writable-property-symbols]: return an array of an object's inherited writable symbol properties. - [`keysIn( obj )`][@stdlib/utils/keys-in]: return an array of an object's own and inherited enumerable property names. -- [`lowercaseKeys( obj )`][@stdlib/utils/lowercase-keys]: convert each object key to lowercase. - [`mapKeys( obj, transform )`][@stdlib/utils/map-keys]: map keys from one object to a new object having the same values. - [`mapValues( obj, transform )`][@stdlib/utils/map-values]: map values from one object to a new object having the same keys. - [`merge( target, source1[, source2[,...,sourceN]] )`][@stdlib/utils/merge]: merge and extend objects. @@ -186,8 +178,6 @@ The namespace has the following sub-namespaces: - [`nonEnumerablePropertySymbolsIn( obj )`][@stdlib/utils/nonenumerable-property-symbols-in]: return an array of an object's own and inherited non-enumerable symbol properties. - [`nonEnumerablePropertySymbols( obj )`][@stdlib/utils/nonenumerable-property-symbols]: return an array of an object's own non-enumerable symbol properties. - [`nonIndexKeys( obj )`][@stdlib/utils/nonindex-keys]: return an array of an object's own enumerable property names which are not integer indices. -- [`objectInverseBy( obj, [options,] transform )`][@stdlib/utils/object-inverse-by]: invert an object, such that keys become values and values become keys, according to a transform function. -- [`objectInverse( obj[, options] )`][@stdlib/utils/object-inverse]: invert an object, such that keys become values and values become keys. - [`omitBy( obj, predicate )`][@stdlib/utils/omit-by]: return a partial object copy excluding properties for which a predicate (function) returns a truthy value. - [`omit( obj, keys )`][@stdlib/utils/omit]: return a partial object copy excluding specified keys. - [`pickArguments( fcn, indices[, thisArg] )`][@stdlib/utils/pick-arguments]: create a function that invokes a provided function with specified arguments. @@ -203,8 +193,6 @@ The namespace has the following sub-namespaces: - [`propertyNames( obj )`][@stdlib/utils/property-names]: return an array of an object's own enumerable and non-enumerable property names. - [`propertySymbolsIn( obj )`][@stdlib/utils/property-symbols-in]: return an array of an object's own and inherited symbol properties. - [`propertySymbols( obj )`][@stdlib/utils/property-symbols]: return an array of an object's own symbol properties. -- [`uncapitalizeKeys( obj )`][@stdlib/utils/uncapitalize-keys]: convert the first letter of each object key to lowercase. -- [`uppercaseKeys( obj )`][@stdlib/utils/uppercase-keys]: convert each object key to uppercase. - [`objectValuesIn( obj )`][@stdlib/utils/values-in]: return an array of an object's own and inherited enumerable property values. - [`objectValues( obj )`][@stdlib/utils/values]: return an array of an object's own enumerable property values. - [`writablePropertiesIn( obj )`][@stdlib/utils/writable-properties-in]: return an array of an object's own and inherited writable property names and symbols. @@ -279,7 +267,6 @@ The namespace has the following sub-namespaces:
-- [`commonKeysIn( obj1, obj2[, obj3[,...,objN]] )`][@stdlib/utils/common-keys-in]: return the common own and inherited property names of two or more objects. - [`constructorName( value )`][@stdlib/utils/constructor-name]: determine the name of a value's constructor. - [`convertPath( from, to )`][@stdlib/utils/convert-path]: convert between POSIX and Windows paths. - [`copy( value[, level] )`][@stdlib/utils/copy]: copy or deep clone a value to an arbitrary depth. @@ -363,8 +350,6 @@ console.log( objectKeys( utils ) ); -[@stdlib/utils/common-keys-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/common-keys-in - [@stdlib/utils/constructor-name]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/constructor-name [@stdlib/utils/convert-path]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/convert-path @@ -513,12 +498,6 @@ console.log( objectKeys( utils ) ); [@stdlib/utils/while]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/while -[@stdlib/utils/common-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/common-keys - -[@stdlib/utils/deep-get]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/deep-get - -[@stdlib/utils/deep-set]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/deep-set - [@stdlib/utils/define-configurable-read-only-accessor]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/define-configurable-read-only-accessor [@stdlib/utils/define-configurable-read-only-property]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/define-configurable-read-only-property @@ -569,10 +548,6 @@ console.log( objectKeys( utils ) ); [@stdlib/utils/flatten-object]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/flatten-object -[@stdlib/utils/for-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/for-in - -[@stdlib/utils/for-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/for-own - [@stdlib/utils/get-prototype-of]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/get-prototype-of [@stdlib/utils/inherited-enumerable-properties]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/inherited-enumerable-properties @@ -605,8 +580,6 @@ console.log( objectKeys( utils ) ); [@stdlib/utils/keys-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/keys-in -[@stdlib/utils/lowercase-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/lowercase-keys - [@stdlib/utils/map-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/map-keys [@stdlib/utils/map-values]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/map-values @@ -627,10 +600,6 @@ console.log( objectKeys( utils ) ); [@stdlib/utils/nonindex-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/nonindex-keys -[@stdlib/utils/object-inverse-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/object-inverse-by - -[@stdlib/utils/object-inverse]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/object-inverse - [@stdlib/utils/omit-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/omit-by [@stdlib/utils/omit]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/omit @@ -661,10 +630,6 @@ console.log( objectKeys( utils ) ); [@stdlib/utils/property-symbols]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/property-symbols -[@stdlib/utils/uncapitalize-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/uncapitalize-keys - -[@stdlib/utils/uppercase-keys]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/uppercase-keys - [@stdlib/utils/values-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/values-in [@stdlib/utils/values]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/values @@ -707,10 +672,6 @@ console.log( objectKeys( utils ) ); [@stdlib/utils/bifurcate-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate-by -[@stdlib/utils/bifurcate-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate-in - -[@stdlib/utils/bifurcate-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate-own - [@stdlib/utils/bifurcate]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate [@stdlib/utils/count-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/count-by From 97055876960092b93d3723e61774883930e73692 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Wed, 21 Jan 2026 15:28:27 -0600 Subject: [PATCH 12/19] docs: fix and regenerate `random` namespace README --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/random/README.md | 106 +++++++++++++++++++++- 1 file changed, 105 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/random/README.md b/lib/node_modules/@stdlib/random/README.md index 6432efb370ef..4c9b393c29e9 100644 --- a/lib/node_modules/@stdlib/random/README.md +++ b/lib/node_modules/@stdlib/random/README.md @@ -54,7 +54,45 @@ The namespace exports the following functions to sample and shuffle elements fro The namespace contains the following functions for generating pseudorandom values drawn from probability distributions: - + + +
+ +- [`arcsine( shape, a, b[, options] )`][@stdlib/random/arcsine]: generate pseudorandom numbers drawn from an arcsine distribution. +- [`bernoulli( shape, p[, options] )`][@stdlib/random/bernoulli]: generate pseudorandom numbers drawn from a Bernoulli distribution. +- [`beta( shape, a, b[, options] )`][@stdlib/random/beta]: generate pseudorandom numbers drawn from a beta distribution. +- [`betaprime( shape, alpha, beta[, options] )`][@stdlib/random/betaprime]: generate pseudorandom numbers drawn from a betaprime distribution. +- [`binomial( shape, n, p[, options] )`][@stdlib/random/binomial]: generate pseudorandom numbers drawn from a binomial distribution. +- [`cauchy( shape, x0, gamma[, options] )`][@stdlib/random/cauchy]: generate pseudorandom numbers drawn from a Cauchy distribution. +- [`chi( shape, k[, options] )`][@stdlib/random/chi]: generate pseudorandom numbers drawn from a chi distribution. +- [`chisquare( shape, k[, options] )`][@stdlib/random/chisquare]: generate pseudorandom numbers drawn from a chi-square distribution. +- [`cosine( shape, mu, s[, options] )`][@stdlib/random/cosine]: generate pseudorandom numbers drawn from a raised cosine distribution. +- [`discreteUniform( shape, a, b[, options] )`][@stdlib/random/discrete-uniform]: generate pseudorandom numbers drawn from a discrete uniform distribution. +- [`erlang( shape, k, lambda[, options] )`][@stdlib/random/erlang]: generate pseudorandom numbers drawn from an Erlang distribution. +- [`exponential( shape, lambda[, options] )`][@stdlib/random/exponential]: generate pseudorandom numbers drawn from an exponential distribution. +- [`f( shape, d1, d2[, options] )`][@stdlib/random/f]: generate pseudorandom numbers drawn from an F distribution. +- [`frechet( shape, alpha, s, m[, options] )`][@stdlib/random/frechet]: generate pseudorandom numbers drawn from a Fréchet distribution. +- [`gamma( shape, alpha, beta[, options] )`][@stdlib/random/gamma]: generate pseudorandom numbers drawn from a gamma distribution. +- [`geometric( shape, p[, options] )`][@stdlib/random/geometric]: generate pseudorandom numbers drawn from a geometric distribution. +- [`gumbel( shape, mu, beta[, options] )`][@stdlib/random/gumbel]: generate pseudorandom numbers drawn from a Gumbel distribution. +- [`hypergeometric( shape, N, K, n[, options] )`][@stdlib/random/hypergeometric]: generate pseudorandom numbers drawn from a hypergeometric distribution. +- [`invgamma( shape, alpha, beta[, options] )`][@stdlib/random/invgamma]: generate pseudorandom numbers drawn from an inverse gamma distribution. +- [`kumaraswamy( shape, a, b[, options] )`][@stdlib/random/kumaraswamy]: generate pseudorandom numbers drawn from a Kumaraswamy distribution. +- [`laplace( shape, mu, b[, options] )`][@stdlib/random/laplace]: generate pseudorandom numbers drawn from a Laplace (double exponential) distribution. +- [`levy( shape, mu, c[, options] )`][@stdlib/random/levy]: generate pseudorandom numbers drawn from a Lévy distribution. +- [`logistic( shape, mu, s[, options] )`][@stdlib/random/logistic]: generate pseudorandom numbers drawn from a logistic distribution. +- [`lognormal( shape, mu, sigma[, options] )`][@stdlib/random/lognormal]: generate pseudorandom numbers drawn from a lognormal distribution. +- [`negativeBinomial( shape, r, p[, options] )`][@stdlib/random/negative-binomial]: generate pseudorandom numbers drawn from a negative binomial distribution. +- [`normal( shape, mu, sigma[, options] )`][@stdlib/random/normal]: generate pseudorandom numbers drawn from a normal distribution. +- [`pareto1( shape, alpha, beta[, options] )`][@stdlib/random/pareto-type1]: generate pseudorandom numbers drawn from a Pareto (Type I) distribution. +- [`poisson( shape, lambda[, options] )`][@stdlib/random/poisson]: generate pseudorandom numbers drawn from a Poisson distribution. +- [`rayleigh( shape, sigma[, options] )`][@stdlib/random/rayleigh]: generate pseudorandom numbers drawn from a Rayleigh distribution. +- [`t( shape, v[, options] )`][@stdlib/random/t]: generate pseudorandom numbers drawn from a Student's t-distribution. +- [`triangular( shape, a, b, c[, options] )`][@stdlib/random/triangular]: generate pseudorandom numbers drawn from a triangular distribution. +- [`uniform( shape, a, b[, options] )`][@stdlib/random/uniform]: generate pseudorandom numbers drawn from a continuous uniform distribution. +- [`weibull( shape, k, lambda[, options] )`][@stdlib/random/weibull]: generate pseudorandom numbers drawn from a Weibull distribution. + +
@@ -148,6 +186,72 @@ logEach( '%f, %f, %f', arr[ 0 ], arr[ 1 ], arr[ 2 ] ); [@stdlib/random/strided]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/strided +[@stdlib/random/arcsine]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/arcsine + +[@stdlib/random/bernoulli]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/bernoulli + +[@stdlib/random/beta]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/beta + +[@stdlib/random/betaprime]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/betaprime + +[@stdlib/random/binomial]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/binomial + +[@stdlib/random/cauchy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/cauchy + +[@stdlib/random/chi]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/chi + +[@stdlib/random/chisquare]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/chisquare + +[@stdlib/random/cosine]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/cosine + +[@stdlib/random/discrete-uniform]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/discrete-uniform + +[@stdlib/random/erlang]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/erlang + +[@stdlib/random/exponential]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/exponential + +[@stdlib/random/f]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/f + +[@stdlib/random/frechet]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/frechet + +[@stdlib/random/gamma]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/gamma + +[@stdlib/random/geometric]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/geometric + +[@stdlib/random/gumbel]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/gumbel + +[@stdlib/random/hypergeometric]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/hypergeometric + +[@stdlib/random/invgamma]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/invgamma + +[@stdlib/random/kumaraswamy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/kumaraswamy + +[@stdlib/random/laplace]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/laplace + +[@stdlib/random/levy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/levy + +[@stdlib/random/logistic]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/logistic + +[@stdlib/random/lognormal]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/lognormal + +[@stdlib/random/negative-binomial]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/negative-binomial + +[@stdlib/random/normal]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/normal + +[@stdlib/random/pareto-type1]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/pareto-type1 + +[@stdlib/random/poisson]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/poisson + +[@stdlib/random/rayleigh]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/rayleigh + +[@stdlib/random/t]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/t + +[@stdlib/random/triangular]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/triangular + +[@stdlib/random/uniform]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/uniform + +[@stdlib/random/weibull]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/weibull + [@stdlib/random/sample]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/sample [@stdlib/random/shuffle]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/shuffle From f548ffd9135e138638611f3a4dea4007b814078e Mon Sep 17 00:00:00 2001 From: Om-A-osc Date: Thu, 22 Jan 2026 11:14:43 +0530 Subject: [PATCH 13/19] feat: add implementation of `stats/base/dists/halfnormal/kurtosis` PR-URL: https://github.com/stdlib-js/stdlib/pull/9771 Ref: https://github.com/stdlib-js/stdlib/issues/9416 Co-authored-by: Philipp Burckhardt Reviewed-by: Philipp Burckhardt --- .../base/dists/halfnormal/kurtosis/README.md | 213 ++++++++++++++++++ .../kurtosis/benchmark/benchmark.js | 59 +++++ .../kurtosis/benchmark/benchmark.native.js | 68 ++++++ .../halfnormal/kurtosis/benchmark/c/Makefile | 146 ++++++++++++ .../kurtosis/benchmark/c/benchmark.c | 138 ++++++++++++ .../dists/halfnormal/kurtosis/binding.gyp | 170 ++++++++++++++ .../dists/halfnormal/kurtosis/docs/repl.txt | 34 +++ .../halfnormal/kurtosis/docs/types/index.d.ts | 52 +++++ .../halfnormal/kurtosis/docs/types/test.ts | 42 ++++ .../halfnormal/kurtosis/examples/c/Makefile | 146 ++++++++++++ .../halfnormal/kurtosis/examples/c/example.c | 38 ++++ .../halfnormal/kurtosis/examples/index.js | 30 +++ .../dists/halfnormal/kurtosis/include.gypi | 53 +++++ .../stats/base/dists/halfnormal/kurtosis.h | 38 ++++ .../dists/halfnormal/kurtosis/lib/index.js | 46 ++++ .../dists/halfnormal/kurtosis/lib/main.js | 45 ++++ .../dists/halfnormal/kurtosis/lib/native.js | 62 +++++ .../dists/halfnormal/kurtosis/manifest.json | 79 +++++++ .../dists/halfnormal/kurtosis/package.json | 68 ++++++ .../dists/halfnormal/kurtosis/src/Makefile | 70 ++++++ .../dists/halfnormal/kurtosis/src/addon.c | 22 ++ .../base/dists/halfnormal/kurtosis/src/main.c | 41 ++++ .../kurtosis/test/fixtures/python/data.json | 1 + .../kurtosis/test/fixtures/python/runner.py | 77 +++++++ .../dists/halfnormal/kurtosis/test/test.js | 86 +++++++ .../halfnormal/kurtosis/test/test.native.js | 97 ++++++++ 26 files changed, 1921 insertions(+) create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/README.md create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/c/benchmark.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/include/stdlib/stats/base/dists/halfnormal/kurtosis.h create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/package.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/fixtures/python/data.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/fixtures/python/runner.py create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/test.native.js diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/README.md b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/README.md new file mode 100644 index 000000000000..9547ce61d3ba --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/README.md @@ -0,0 +1,213 @@ + + +# Kurtosis + +> [Half-normal][halfnormal-distribution] distribution [excess kurtosis][kurtosis]. + +
+ +The [excess kurtosis][kurtosis] of a [half-normal][halfnormal-distribution] distribution with scale `sigma > 0` is + + + +```math +\gamma_2 = \frac{8(\pi-3)}{(\pi-2)^2} +``` + + + + + +
+ + + +
+ +## Usage + +```javascript +var kurtosis = require( '@stdlib/stats/base/dists/halfnormal/kurtosis' ); +``` + +#### kurtosis( sigma ) + +Returns the [excess kurtosis][kurtosis] of a [half-normal][halfnormal-distribution] distribution with scale parameter `sigma`. + +```javascript +var x = kurtosis( 1.0 ); +// returns ~0.869 + +var y = kurtosis( 4.0 ); +// returns ~0.869 +``` + +If provided `sigma <= 0`, the function returns `NaN`. + +```javascript +var x = kurtosis( 0.0 ); +// returns NaN + +var y = kurtosis( -1.0 ); +// returns NaN +``` + +
+ + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var kurtosis = require( '@stdlib/stats/base/dists/halfnormal/kurtosis' ); + +var opts = { + 'dtype': 'float64' +}; +var sigma = uniform( 10, 0.0, 20.0, opts ); + +logEachMap( 'σ: %0.4f, Kurt(X;σ): %0.4f', sigma, kurtosis ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/stats/base/dists/halfnormal/kurtosis.h" +``` + +#### stdlib_base_dists_halfnormal_kurtosis( sigma ) + +Returns the [excess kurtosis][kurtosis] of a [half-normal][halfnormal-distribution] distribution with scale parameter `sigma`. + +```c +double out = stdlib_base_dists_halfnormal_kurtosis( 1.0 ); +// returns ~0.869 +``` + +The function accepts the following arguments: + +- **sigma**: `[in] double` scale parameter. + +```c +double stdlib_base_dists_halfnormal_kurtosis( const double sigma ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/stats/base/dists/halfnormal/kurtosis.h" +#include +#include + +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +int main( void ) { + double sigma; + double y; + int i; + + for ( i = 0; i < 10; i++ ) { + sigma = random_uniform( 0.0, 20.0 ); + y = stdlib_base_dists_halfnormal_kurtosis( sigma ); + printf( "σ: %lf, Kurt(σ): %lf\n", sigma, y ); + } +} +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/benchmark.js new file mode 100644 index 000000000000..107b148cf9bc --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/benchmark.js @@ -0,0 +1,59 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var Float64Array = require( '@stdlib/array/float64' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var pkg = require( './../package.json' ).name; +var kurtosis = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var sigma; + var len; + var y; + var i; + + len = 100; + sigma = new Float64Array( len ); + for ( i = 0; i < len; i++ ) { + sigma[ i ] = uniform( EPS, 10.0 ); + } + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = kurtosis( sigma[ i % len ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/benchmark.native.js new file mode 100644 index 000000000000..a21f882b0380 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/benchmark.native.js @@ -0,0 +1,68 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var Float64Array = require( '@stdlib/array/float64' ); +var uniform = require( '@stdlib/random/base/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var kurtosis = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( kurtosis instanceof Error ) +}; + + +// MAIN // + +bench( pkg+'::native', opts, function benchmark( b ) { + var sigma; + var len; + var y; + var i; + + len = 100; + sigma = new Float64Array( len ); + for ( i = 0; i < len; i++ ) { + sigma[ i ] = uniform( EPS, 10.0 ); + } + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = kurtosis( sigma[ i % len ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/c/Makefile new file mode 100644 index 000000000000..979768abbcec --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := benchmark.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/c/benchmark.c new file mode 100644 index 000000000000..bcf0e12c445c --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/benchmark/c/benchmark.c @@ -0,0 +1,138 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/kurtosis.h" +#include +#include +#include +#include +#include + +#define NAME "halfnormal-kurtosis" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmark results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec / 1.0e6; +} + +/** +* Generates a random number on the interval [min,max). +* +* @param min minimum value (inclusive) +* @param max maximum value (exclusive) +* @return random number +*/ +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + double elapsed; + double sigma[ 100 ]; + double y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + sigma[ i ] = random_uniform( 0.1, 10.0 ); + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_dists_halfnormal_kurtosis( sigma[ i%100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y != y ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/binding.gyp b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/binding.gyp new file mode 100644 index 000000000000..0d6508a12e99 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/binding.gyp @@ -0,0 +1,170 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A `.gyp` file for building a Node.js native add-on. +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # List of files to include in this file: + 'includes': [ + './include.gypi', + ], + + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Target name should match the add-on export name: + 'addon_target_name%': 'addon', + + # Set variables based on the host OS: + 'conditions': [ + [ + 'OS=="win"', + { + # Define the object file suffix: + 'obj': 'obj', + }, + { + # Define the object file suffix: + 'obj': 'o', + } + ], # end condition (OS=="win") + ], # end conditions + }, # end variables + + # Define compile targets: + 'targets': [ + + # Target to generate an add-on: + { + # The target name should match the add-on export name: + 'target_name': '<(addon_target_name)', + + # Define dependencies: + 'dependencies': [], + + # Define directories which contain relevant include headers: + 'include_dirs': [ + # Local include directory: + '<@(include_dirs)', + ], + + # List of source files: + 'sources': [ + '<@(src_files)', + ], + + # Settings which should be applied when a target's object files are used as linker input: + 'link_settings': { + # Define libraries: + 'libraries': [ + '<@(libraries)', + ], + + # Define library directories: + 'library_dirs': [ + '<@(library_dirs)', + ], + }, + + # C/C++ compiler flags: + 'cflags': [ + # Enable commonly used warning options: + '-Wall', + + # Aggressive optimization: + '-O3', + ], + + # C specific compiler flags: + 'cflags_c': [ + # Specify the C standard to which a program is expected to conform: + '-std=c99', + ], + + # C++ specific compiler flags: + 'cflags_cpp': [ + # Specify the C++ standard to which a program is expected to conform: + '-std=c++11', + ], + + # Linker flags: + 'ldflags': [], + + # Apply conditions based on the host OS: + 'conditions': [ + [ + 'OS=="mac"', + { + # Linker flags: + 'ldflags': [ + '-undefined dynamic_lookup', + '-Wl,-no-pie', + '-Wl,-search_paths_first', + ], + }, + ], # end condition (OS=="mac") + [ + 'OS!="win"', + { + # C/C++ flags: + 'cflags': [ + # Generate platform-independent code: + '-fPIC', + ], + }, + ], # end condition (OS!="win") + ], # end conditions + }, # end target <(addon_target_name) + + # Target to copy a generated add-on to a standard location: + { + 'target_name': 'copy_addon', + + # Declare that the output of this target is not linked: + 'type': 'none', + + # Define dependencies: + 'dependencies': [ + # Require that the add-on be generated before building this target: + '<(addon_target_name)', + ], + + # Define a list of actions: + 'actions': [ + { + 'action_name': 'copy_addon', + 'message': 'Copying addon...', + + # Explicitly list the inputs in the command-line invocation below: + 'inputs': [], + + # Declare the expected outputs: + 'outputs': [ + '<(addon_output_dir)/<(addon_target_name).node', + ], + + # Define the command-line invocation: + 'action': [ + 'cp', + '<(PRODUCT_DIR)/<(addon_target_name).node', + '<(addon_output_dir)/<(addon_target_name).node', + ], + }, + ], # end actions + }, # end target copy_addon + ], # end targets +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/repl.txt new file mode 100644 index 000000000000..2e034e590a32 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/repl.txt @@ -0,0 +1,34 @@ + +{{alias}}( sigma ) + Returns the excess kurtosis of a half-normal distribution with + scale parameter `sigma`. + + If provided `NaN` as any argument, the function returns `NaN`. + + If provided `sigma <= 0`, the function returns `NaN`. + + Parameters + ---------- + + sigma: number + Scale parameter. + + Returns + ------- + out: number + Excess kurtosis. + + Examples + -------- + > var y = {{alias}}( 1.0 ) + ~0.869 + > y = {{alias}}( 4.0 ) + ~0.869 + > y = {{alias}}( NaN ) + NaN + > y = {{alias}}( 0.0 ) + NaN + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/types/index.d.ts new file mode 100644 index 000000000000..b18a37375603 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/types/index.d.ts @@ -0,0 +1,52 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Returns the excess kurtosis for a half-normal distribution with scale parameter `sigma`. +* +* ## Notes +* +* - If provided `sigma <= 0`, the function returns `NaN`. +* +* @param sigma - scale parameter +* @returns excess kurtosis +* +* @example +* var y = kurtosis( 1.0 ); +* // returns ~0.869 +* +* @example +* var y = kurtosis( 3.0 ); +* // returns ~0.869 +* +* @example +* var y = kurtosis( NaN ); +* // returns NaN +* +* @example +* var y = kurtosis( 0.0 ); +* // returns NaN +*/ +declare function kurtosis( sigma: number ): number; + + +// EXPORTS // + +export = kurtosis; diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/types/test.ts new file mode 100644 index 000000000000..a4e0a39d0b6e --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/docs/types/test.ts @@ -0,0 +1,42 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import kurtosis = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + kurtosis( 2 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + kurtosis( true ); // $ExpectError + kurtosis( false ); // $ExpectError + kurtosis( '5' ); // $ExpectError + kurtosis( [] ); // $ExpectError + kurtosis( {} ); // $ExpectError + kurtosis( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + kurtosis(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/c/Makefile new file mode 100644 index 000000000000..c8f8e9a1517b --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := example.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled examples. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/c/example.c new file mode 100644 index 000000000000..8dc00dcc8eaf --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/c/example.c @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/kurtosis.h" +#include +#include + +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +int main( void ) { + double sigma; + double y; + int i; + + for ( i = 0; i < 10; i++ ) { + sigma = random_uniform( 0.1, 20.0 ); + y = stdlib_base_dists_halfnormal_kurtosis( sigma ); + printf( "σ: %lf, Kurt(σ): %lf\n", sigma, y ); + } +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/index.js new file mode 100644 index 000000000000..0e2715bdb08d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/examples/index.js @@ -0,0 +1,30 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var kurtosis = require( './../lib' ); + +var opts = { + 'dtype': 'float64' +}; +var sigma = uniform( 10, 0.0, 20.0, opts ); + +logEachMap( 'σ: %0.4f, Kurt(X;σ): %0.4f', sigma, kurtosis ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/include.gypi b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/include.gypi new file mode 100644 index 000000000000..bee8d41a2caf --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A GYP include file for building a Node.js native add-on. +# +# Main documentation: +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Source directory: + 'src_dir': './src', + + # Include directories: + 'include_dirs': [ + '=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "statistics", + "stats", + "distribution", + "dist", + "halfnormal", + "half-normal", + "univariate", + "continuous", + "kurtosis", + "excess kurtosis" + ] +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/Makefile new file mode 100644 index 000000000000..2caf905cedbe --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/Makefile @@ -0,0 +1,70 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + + +# RULES # + +#/ +# Removes generated files for building an add-on. +# +# @example +# make clean-addon +#/ +clean-addon: + $(QUIET) -rm -f *.o *.node + +.PHONY: clean-addon + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: clean-addon + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/addon.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/addon.c new file mode 100644 index 000000000000..020e4b783a07 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/addon.c @@ -0,0 +1,22 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/kurtosis.h" +#include "stdlib/math/base/napi/unary.h" + +STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_dists_halfnormal_kurtosis ) diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/main.c new file mode 100644 index 000000000000..49051811ce07 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/main.c @@ -0,0 +1,41 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/kurtosis.h" +#include "stdlib/math/base/assert/is_nan.h" +#include "stdlib/constants/float64/pi.h" + +/** +* Returns the excess kurtosis of a half-normal distribution with scale parameter `sigma`. +* +* @param sigma scale parameter +* @return excess kurtosis +* +* @example +* double y = stdlib_base_dists_halfnormal_kurtosis( 1.0 ); +* // returns ~0.869 +*/ +double stdlib_base_dists_halfnormal_kurtosis( const double sigma ) { + if ( + stdlib_base_is_nan( sigma ) || + sigma <= 0.0 + ) { + return 0.0 / 0.0; // NaN + } + return ( 8.0 * ( STDLIB_CONSTANT_FLOAT64_PI - 3.0 ) ) / ( ( STDLIB_CONSTANT_FLOAT64_PI - 2.0 ) * ( STDLIB_CONSTANT_FLOAT64_PI - 2.0 ) ); +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/fixtures/python/data.json b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/fixtures/python/data.json new file mode 100644 index 000000000000..d3163a6bf6b0 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/fixtures/python/data.json @@ -0,0 +1 @@ +{"sigma": [0.7302459116647342, 1.704961959568525, 4.233820319289189, 2.195888190206079, 4.869675543299393, 3.790130693695706, 4.061519802817745, 1.327292232113126, 2.9981592100860945, 2.6488562400723814], "expected": [0.8691773036059736, 0.8691773036059736, 0.8691773036059736, 0.8691773036059736, 0.8691773036059736, 0.8691773036059736, 0.8691773036059736, 0.8691773036059736, 0.8691773036059736, 0.8691773036059736]} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/fixtures/python/runner.py new file mode 100644 index 000000000000..2852c388f20d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/fixtures/python/runner.py @@ -0,0 +1,77 @@ +#!/usr/bin/env python +# +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Generate fixtures.""" + +import os +import json +import numpy as np +from scipy.stats import halfnorm + + +# Get the file path: +FILE = os.path.realpath(__file__) + +# Extract the directory in which this file resides: +DIR = os.path.dirname(FILE) + + +def gen(sigma, name): + """Generate fixture data and write to file. + + # Arguments + + * `sigma`: scale parameters + * `name::str`: output filename + + # Examples + + ``` python + python> sigma = np.random.rand(10) * 5.0 + python> gen(sigma, "data.json") + ``` + """ + y = np.empty(len(sigma), dtype=float) + + for i, s in enumerate(sigma): + # SciPy returns excess kurtosis + y[i] = halfnorm.stats(scale=s, moments="k") + + # Store data to be written to file as a dictionary: + data = { + "sigma": sigma.tolist(), + "expected": y.tolist() + } + + # Based on the script directory, create an output filepath: + filepath = os.path.join(DIR, name) + + # Write the data to the output filepath as JSON: + with open(filepath, "w", encoding="utf-8") as outfile: + json.dump(data, outfile) + outfile.write("\n") + + +def main(): + """Generate fixture data.""" + sigma = np.random.rand(10) * 5.0 + gen(sigma, "data.json") + + +if __name__ == "__main__": + main() diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/test.js new file mode 100644 index 000000000000..97083800ca60 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/test.js @@ -0,0 +1,86 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var NINF = require( '@stdlib/constants/float64/ninf' ); +var kurtosis = require( './../lib' ); + + +// FIXTURES // + +var data = require( './fixtures/python/data.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof kurtosis, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN` for `sigma`, the function returns `NaN`', function test( t ) { + var y = kurtosis( NaN ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided `sigma <= 0`, the function returns `NaN`', function test( t ) { + var y; + + y = kurtosis( 0.0 ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + y = kurtosis( -1.0 ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + y = kurtosis( NINF ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the excess kurtosis', function test( t ) { + var expected; + var sigma; + var delta; + var tol; + var y; + var i; + + expected = data.expected; + sigma = data.sigma; + for ( i = 0; i < sigma.length; i++ ) { + y = kurtosis( sigma[i] ); + if ( y === expected[i] ) { + t.equal( y, expected[i], 'sigma: '+sigma[i]+'. E: '+expected[i] ); + } else { + delta = abs( y - expected[ i ] ); + tol = 1.0 * EPS * abs( expected[ i ] ); + t.ok( delta <= tol, 'within tolerance. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' ); + } + } + t.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/test.native.js new file mode 100644 index 000000000000..ddff868996a6 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/test/test.native.js @@ -0,0 +1,97 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var NINF = require( '@stdlib/constants/float64/ninf' ); +var EPS = require( '@stdlib/constants/float64/eps' ); + + +// FIXTURES // + +var data = require( './fixtures/python/data.json' ); + + +// VARIABLES // + +var kurtosis = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( kurtosis instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof kurtosis, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN`, the function returns `NaN`', opts, function test( t ) { + var y = kurtosis( NaN ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a nonpositive `sigma`, the function returns `NaN`', opts, function test( t ) { + var y; + + y = kurtosis( 0.0 ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + y = kurtosis( -1.0 ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + y = kurtosis( NINF ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the excess kurtosis of a half-normal distribution', opts, function test( t ) { + var expected; + var delta; + var sigma; + var tol; + var y; + var i; + + expected = data.expected; + sigma = data.sigma; + for ( i = 0; i < sigma.length; i++ ) { + y = kurtosis( sigma[i] ); + if ( expected[i] !== null ) { + if ( y === expected[i] ) { + t.strictEqual( y, expected[i], 'sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] ); + } else { + delta = abs( y - expected[ i ] ); + tol = 1.0 * EPS * abs( expected[ i ] ); + t.ok( delta <= tol, 'within tolerance. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' ); + } + } + } + t.end(); +}); From ba0f3d421c9480319944168b8494645d0530c645 Mon Sep 17 00:00:00 2001 From: Bhargav Dabhade Date: Thu, 22 Jan 2026 11:30:48 +0530 Subject: [PATCH 14/19] feat: add `stats/base/dists/halfnormal/entropy` PR-URL: https://github.com/stdlib-js/stdlib/pull/9753 Ref: https://github.com/stdlib-js/stdlib/issues/9416 Co-authored-by: Philipp Burckhardt Reviewed-by: Philipp Burckhardt Signed-off-by: Philipp Burckhardt --- .../base/dists/halfnormal/entropy/README.md | 231 ++++++++++++++++++ .../halfnormal/entropy/benchmark/benchmark.js | 60 +++++ .../entropy/benchmark/benchmark.native.js | 70 ++++++ .../halfnormal/entropy/benchmark/c/Makefile | 146 +++++++++++ .../entropy/benchmark/c/benchmark.c | 139 +++++++++++ .../base/dists/halfnormal/entropy/binding.gyp | 170 +++++++++++++ .../dists/halfnormal/entropy/docs/repl.txt | 27 ++ .../halfnormal/entropy/docs/types/index.d.ts | 52 ++++ .../halfnormal/entropy/docs/types/test.ts | 44 ++++ .../halfnormal/entropy/examples/c/Makefile | 146 +++++++++++ .../halfnormal/entropy/examples/c/example.c | 40 +++ .../halfnormal/entropy/examples/index.js | 30 +++ .../dists/halfnormal/entropy/include.gypi | 53 ++++ .../stats/base/dists/halfnormal/entropy.h | 38 +++ .../dists/halfnormal/entropy/lib/index.js | 43 ++++ .../base/dists/halfnormal/entropy/lib/main.js | 63 +++++ .../dists/halfnormal/entropy/lib/native.js | 58 +++++ .../dists/halfnormal/entropy/manifest.json | 86 +++++++ .../dists/halfnormal/entropy/package.json | 70 ++++++ .../dists/halfnormal/entropy/src/Makefile | 70 ++++++ .../base/dists/halfnormal/entropy/src/addon.c | 22 ++ .../base/dists/halfnormal/entropy/src/main.c | 43 ++++ .../entropy/test/fixtures/julia/REQUIRE | 3 + .../entropy/test/fixtures/julia/data.json | 106 ++++++++ .../entropy/test/fixtures/julia/runner.jl | 72 ++++++ .../entropy/test/fixtures/python/data.json | 1 + .../entropy/test/fixtures/python/runner.py | 66 +++++ .../dists/halfnormal/entropy/test/test.js | 86 +++++++ .../halfnormal/entropy/test/test.native.js | 95 +++++++ 29 files changed, 2130 insertions(+) create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/README.md create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/benchmark.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/include/stdlib/stats/base/dists/halfnormal/entropy.h create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/package.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/REQUIRE create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/data.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/runner.jl create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/data.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/runner.py create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.native.js diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/README.md b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/README.md new file mode 100644 index 000000000000..c88e6f047347 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/README.md @@ -0,0 +1,231 @@ + + +# Entropy + +> [Half-normal][half-normal-distribution] distribution [differential entropy][entropy]. + + + +
+ +The [differential entropy][entropy] (in [nats][nats]) for a [half-normal][half-normal-distribution] random variable is + + + +```math +h\left( X \right) = \frac{1}{2}+\ln(\sigma)+\ln\left(\sqrt{\frac{\pi}{2}}\right)+\frac{\gamma}{2} +``` + + + +where `σ > 0` is the scale parameter. + +
+ + + + + +
+ +## Usage + +```javascript +var entropy = require( '@stdlib/stats/base/dists/halfnormal/entropy' ); +``` + +#### entropy( sigma ) + +Returns the [differential entropy][entropy] of a [half-normal][half-normal-distribution] distribution with scale `sigma` (in [nats][nats]). + +```javascript +var y = entropy( 1.0 ); +// returns ~1.014 + +y = entropy( 5.0 ); +// returns ~2.624 +``` + +If provided `sigma ≤ 0`, the function returns `NaN`. + +```javascript +var y = entropy( -1.0 ); +// returns NaN +``` + +
+ + + + + +
+ +
+ + + + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var entropy = require( '@stdlib/stats/base/dists/halfnormal/entropy' ); + +var opts = { + 'dtype': 'float64' +}; +var sigma = uniform( 10, 0.1, 20.0, opts ); + +logEachMap( 'σ: %0.4f, h(X;σ): %0.4f', sigma, entropy ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/stats/base/dists/halfnormal/entropy.h" +``` + +#### stdlib_base_dists_halfnormal_entropy( sigma ) + +Returns the differential entropy of a half-normal distribution. + +```c +double out = stdlib_base_dists_halfnormal_entropy( 1.0 ); +// returns ~1.014 +``` + +The function accepts the following arguments: + +- **sigma**: `[in] double` scale parameter. + +```c +double stdlib_base_dists_halfnormal_entropy( const double sigma ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/stats/base/dists/halfnormal/entropy.h" +#include +#include + +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +int main( void ) { + double sigma; + double y; + int i; + + for ( i = 0; i < 25; i++ ) { + sigma = random_uniform( 0.1, 20.0 ); + y = stdlib_base_dists_halfnormal_entropy( sigma ); + printf( "σ: %lf, h(σ): %lf\n", sigma, y ); + } +} +``` + +
+ + + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.js new file mode 100644 index 000000000000..f1a97a0f41e7 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.js @@ -0,0 +1,60 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var Float64Array = require( '@stdlib/array/float64' ); +var randu = require( '@stdlib/random/base/randu' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var pkg = require( './../package.json' ).name; +var entropy = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var sigma; + var len; + var y; + var i; + + len = 100; + sigma = new Float64Array( len ); + for ( i = 0; i < len; i++ ) { + sigma[ i ] = ( randu()*20.0 ) + EPS; + } + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = entropy( sigma[ i % len ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.native.js new file mode 100644 index 000000000000..e9c7889040a8 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.native.js @@ -0,0 +1,70 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var Float64Array = require( '@stdlib/array/float64' ); +var randu = require( '@stdlib/random/base/randu' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var entropy = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( entropy instanceof Error ) +}; + + +// MAIN // + +bench( format( '%s::native', pkg ), opts, function benchmark( b ) { + var sigma; + var len; + var y; + var i; + + len = 100; + sigma = new Float64Array( len ); + for ( i = 0; i < len; i++ ) { + sigma[ i ] = ( randu() * 20.0 ) + EPS; + } + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = entropy( sigma[ i % len ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/Makefile new file mode 100644 index 000000000000..979768abbcec --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := benchmark.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/benchmark.c new file mode 100644 index 000000000000..4fe8f1e2221a --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/benchmark.c @@ -0,0 +1,139 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/entropy.h" +#include "stdlib/constants/float64/eps.h" +#include +#include +#include +#include +#include + +#define NAME "halfnormal-entropy" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmarks results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +/** +* Generates a random number on the interval [min,max). +* +* @param min minimum value (inclusive) +* @param max maximum value (exclusive) +* @return random number +*/ +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + double elapsed; + double sigma[ 100 ]; + double y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + sigma[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, STDLIB_CONSTANT_FLOAT64_EPS + 20.0 ); + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_dists_halfnormal_entropy( sigma[ i % 100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y != y ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/binding.gyp b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/binding.gyp new file mode 100644 index 000000000000..0d6508a12e99 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/binding.gyp @@ -0,0 +1,170 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A `.gyp` file for building a Node.js native add-on. +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # List of files to include in this file: + 'includes': [ + './include.gypi', + ], + + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Target name should match the add-on export name: + 'addon_target_name%': 'addon', + + # Set variables based on the host OS: + 'conditions': [ + [ + 'OS=="win"', + { + # Define the object file suffix: + 'obj': 'obj', + }, + { + # Define the object file suffix: + 'obj': 'o', + } + ], # end condition (OS=="win") + ], # end conditions + }, # end variables + + # Define compile targets: + 'targets': [ + + # Target to generate an add-on: + { + # The target name should match the add-on export name: + 'target_name': '<(addon_target_name)', + + # Define dependencies: + 'dependencies': [], + + # Define directories which contain relevant include headers: + 'include_dirs': [ + # Local include directory: + '<@(include_dirs)', + ], + + # List of source files: + 'sources': [ + '<@(src_files)', + ], + + # Settings which should be applied when a target's object files are used as linker input: + 'link_settings': { + # Define libraries: + 'libraries': [ + '<@(libraries)', + ], + + # Define library directories: + 'library_dirs': [ + '<@(library_dirs)', + ], + }, + + # C/C++ compiler flags: + 'cflags': [ + # Enable commonly used warning options: + '-Wall', + + # Aggressive optimization: + '-O3', + ], + + # C specific compiler flags: + 'cflags_c': [ + # Specify the C standard to which a program is expected to conform: + '-std=c99', + ], + + # C++ specific compiler flags: + 'cflags_cpp': [ + # Specify the C++ standard to which a program is expected to conform: + '-std=c++11', + ], + + # Linker flags: + 'ldflags': [], + + # Apply conditions based on the host OS: + 'conditions': [ + [ + 'OS=="mac"', + { + # Linker flags: + 'ldflags': [ + '-undefined dynamic_lookup', + '-Wl,-no-pie', + '-Wl,-search_paths_first', + ], + }, + ], # end condition (OS=="mac") + [ + 'OS!="win"', + { + # C/C++ flags: + 'cflags': [ + # Generate platform-independent code: + '-fPIC', + ], + }, + ], # end condition (OS!="win") + ], # end conditions + }, # end target <(addon_target_name) + + # Target to copy a generated add-on to a standard location: + { + 'target_name': 'copy_addon', + + # Declare that the output of this target is not linked: + 'type': 'none', + + # Define dependencies: + 'dependencies': [ + # Require that the add-on be generated before building this target: + '<(addon_target_name)', + ], + + # Define a list of actions: + 'actions': [ + { + 'action_name': 'copy_addon', + 'message': 'Copying addon...', + + # Explicitly list the inputs in the command-line invocation below: + 'inputs': [], + + # Declare the expected outputs: + 'outputs': [ + '<(addon_output_dir)/<(addon_target_name).node', + ], + + # Define the command-line invocation: + 'action': [ + 'cp', + '<(PRODUCT_DIR)/<(addon_target_name).node', + '<(addon_output_dir)/<(addon_target_name).node', + ], + }, + ], # end actions + }, # end target copy_addon + ], # end targets +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/repl.txt new file mode 100644 index 000000000000..d2a09d6de8df --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/repl.txt @@ -0,0 +1,27 @@ + +{{alias}}( σ ) + Returns the differential entropy of a half-normal distribution. + + If provided `NaN` as any argument, the function returns `NaN`. + + If provided `σ ≤ 0`, the function returns `NaN`. + + Parameters + ---------- + σ: number + Scale parameter. + + Returns + ------- + out: number + Entropy. + + Examples + -------- + > var v = {{alias}}( 1.0 ) + ~1.014 + > v = {{alias}}( 5.0 ) + ~2.624 + + See Also + -------- diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/index.d.ts new file mode 100644 index 000000000000..bdebd76e2365 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/index.d.ts @@ -0,0 +1,52 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Returns the differential entropy of a half-normal distribution. +* +* ## Notes +* +* - If provided `σ ≤ 0`, the function returns `NaN`. +* +* @param sigma - scale parameter +* @returns entropy +* +* @example +* var v = entropy( 1.0 ); +* // returns ~1.014 +* +* @example +* var v = entropy( 5.0 ); +* // returns ~2.624 +* +* @example +* var v = entropy( -0.2 ); +* // returns NaN +* +* @example +* var v = entropy( NaN ); +* // returns NaN +*/ +declare function entropy( sigma: number ): number; + + +// EXPORTS // + +export = entropy; diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/test.ts new file mode 100644 index 000000000000..7ae527f801a9 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/test.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import entropy = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + entropy( 0.3 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + entropy( true ); // $ExpectError + entropy( false ); // $ExpectError + entropy( null ); // $ExpectError + entropy( undefined ); // $ExpectError + entropy( '5' ); // $ExpectError + entropy( [] ); // $ExpectError + entropy( {} ); // $ExpectError + entropy( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + entropy(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/Makefile new file mode 100644 index 000000000000..c8f8e9a1517b --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := example.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled examples. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/example.c new file mode 100644 index 000000000000..094c6a1f61ae --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/example.c @@ -0,0 +1,40 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/entropy.h" +#include +#include + +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +int main( void ) { + double sigma; + double y; + int i; + + for ( i = 0; i < 25; i++ ) { + sigma = random_uniform( 0.1, 20.0 ); + y = stdlib_base_dists_halfnormal_entropy( sigma ); + printf( "σ: %lf, h(σ): %lf\n", sigma, y ); + } + + return 0; +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/index.js new file mode 100644 index 000000000000..50e0320fa7ed --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/index.js @@ -0,0 +1,30 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var entropy = require( './../lib' ); + +var opts = { + 'dtype': 'float64' +}; +var sigma = uniform( 10, 0.1, 20.0, opts ); + +logEachMap( 'σ: %0.4f, h(X;σ): %0.4f', sigma, entropy ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/include.gypi b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/include.gypi new file mode 100644 index 000000000000..bee8d41a2caf --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A GYP include file for building a Node.js native add-on. +# +# Main documentation: +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Source directory: + 'src_dir': './src', + + # Include directories: + 'include_dirs': [ + '=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "statistics", + "stats", + "distribution", + "dist", + "entropy", + "information", + "shannon", + "nats", + "halfnormal", + "half-normal", + "univariate", + "continuous" + ] +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/Makefile new file mode 100644 index 000000000000..2caf905cedbe --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/Makefile @@ -0,0 +1,70 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + + +# RULES # + +#/ +# Removes generated files for building an add-on. +# +# @example +# make clean-addon +#/ +clean-addon: + $(QUIET) -rm -f *.o *.node + +.PHONY: clean-addon + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: clean-addon + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/addon.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/addon.c new file mode 100644 index 000000000000..9d73b137a9f8 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/addon.c @@ -0,0 +1,22 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/entropy.h" +#include "stdlib/math/base/napi/unary.h" + +STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_dists_halfnormal_entropy ) diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/main.c new file mode 100644 index 000000000000..ae68f371478c --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/main.c @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/entropy.h" +#include "stdlib/math/base/assert/is_nan.h" +#include "stdlib/math/base/special/ln.h" +#include "stdlib/constants/float64/eulergamma.h" +#include "stdlib/constants/float64/sqrt_half_pi.h" + +/** +* Returns the differential entropy of a half-normal distribution. +* +* @param sigma scale parameter +* @return entropy +* +* @example +* double y = stdlib_base_dists_halfnormal_entropy( 1.0 ); +* // returns ~1.014 +*/ +double stdlib_base_dists_halfnormal_entropy( const double sigma ) { + if ( + stdlib_base_is_nan( sigma ) || + sigma <= 0.0 + ) { + return 0.0/0.0; // NaN + } + return 0.5 + stdlib_base_ln( sigma ) + stdlib_base_ln( STDLIB_CONSTANT_FLOAT64_SQRT_HALF_PI ) + ( 0.5 * STDLIB_CONSTANT_FLOAT64_EULERGAMMA ); +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000000..98be20b58ed3 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/REQUIRE @@ -0,0 +1,3 @@ +Distributions 0.23.8 +julia 1.5 +JSON 0.21 diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/data.json b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/data.json new file mode 100644 index 000000000000..8fc213512749 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/data.json @@ -0,0 +1,106 @@ +{ + "sigma": [ + 1.0000000000000000, + 2.0000000000000000, + 0.5000000000000000, + 5.0000000000000000, + 10.0000000000000000, + 0.1000000000000000, + 20.0000000000000000, + 3.0000000000000000, + 4.0000000000000000, + 6.0000000000000000, + 7.0000000000000000, + 8.0000000000000000, + 9.0000000000000000, + 15.0000000000000000, + 25.0000000000000000, + 0.2500000000000000, + 0.7500000000000000, + 1.5000000000000000, + 2.5000000000000000, + 3.5000000000000000, + 4.5000000000000000, + 5.5000000000000000, + 6.5000000000000000, + 7.5000000000000000, + 8.5000000000000000, + 9.5000000000000000, + 11.0000000000000000, + 12.0000000000000000, + 13.0000000000000000, + 14.0000000000000000, + 16.0000000000000000, + 18.0000000000000000, + 22.0000000000000000, + 30.0000000000000000, + 50.0000000000000000, + 0.2000000000000000, + 0.3000000000000000, + 0.4000000000000000, + 0.6000000000000000, + 0.8000000000000000, + 1.2000000000000000, + 1.8000000000000000, + 2.2000000000000000, + 2.8000000000000000, + 3.2000000000000000, + 3.8000000000000000, + 4.2000000000000000, + 4.8000000000000000, + 5.2000000000000000, + 6.2000000000000000 + ], + "expected": [ + 1.0143991850954936, + 1.7075463656554390, + 0.3212520045355485, + 2.6238370975295940, + 3.3169842780895396, + -1.2881859078985518, + 4.0101314586494850, + 2.1130114737636037, + 2.4006935462153844, + 2.8061586543235486, + 2.9603093341508075, + 3.0938407267753294, + 3.2116237624317130, + 3.7224493861977037, + 4.2332750099636950, + -0.3718951760243967, + 0.7267171126437131, + 1.4198642932036583, + 1.9306899169696490, + 2.2671621535908620, + 2.5184765818717680, + 2.7191472773339194, + 2.8862013619970850, + 3.0293022056377583, + 3.1544653485917650, + 3.2656909837019890, + 3.4122944578938648, + 3.4993058348834940, + 3.5793485425570304, + 3.6534565147107520, + 3.7869879073352750, + 3.9047709429916586, + 4.1054416384538110, + 4.4155965667576496, + 4.9264221905236410, + -0.5950387273386064, + -0.1895736192304422, + 0.0981084532213389, + 0.5035735613295031, + 0.7912556337812842, + 1.1967207418894485, + 1.6021858499976130, + 1.8028565454597640, + 2.0440186022766520, + 2.1775499949011747, + 2.3494002518278340, + 2.4494837103848166, + 2.5830151030093390, + 2.6630578106828753, + 2.8389484771465400 + ] +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/runner.jl new file mode 100644 index 000000000000..2320a6262272 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/runner.jl @@ -0,0 +1,72 @@ +#!/usr/bin/env julia +# +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import JSON + +# Constants +GAMMA = 0.5772156649015329 +SQRT_HALF_PI = sqrt(pi / 2) + +""" + gen( sigma, name ) + +Generate fixture data and write to file. + +# Arguments + +* `sigma`: scale parameter +* `name::AbstractString`: output filename + +# Examples + +```julia +julia> sigma = rand( 1000 ); +julia> gen( sigma, "data.json" ); +``` +""" +# Get the filename: +file = @__FILE__ + +# Extract the directory in which this file resides: +dir = dirname(file) + +function gen( sigma, name ) + z = Array{Float64}( undef, length(sigma) ); + for i in eachindex(sigma) + z[i] = 0.5 + log(sigma[i]) + log(SQRT_HALF_PI) + 0.5 * GAMMA + end + + # Store data to be written to file as a collection: + data = Dict([ + ("sigma", sigma), + ("expected", z) + ]); + + # Based on the script directory, create an output filepath: + filepath = joinpath(dir, name) + + # Write the data to the output filepath as JSON: + open(filepath, "w") do outfile + write(outfile, JSON.json(data)) + write(outfile, "\n") + end +end + +# Generate fixtures: +sigma = ( rand(50) .* 20.0 ) .+ 2.0 +gen(sigma, "data.json") diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/data.json b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/data.json new file mode 100644 index 000000000000..73129263dc75 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/data.json @@ -0,0 +1 @@ +{"sigma": [7.3120967009357, 3.659653200812621, 10.58701717900173, 9.32792554650073, 12.183810862843236, 2.5543579596362735, 8.165999622542362, 15.106230333392332, 5.792446447273344, 19.892636759646667, 9.978625573982212, 3.942886702358013, 15.63436050981639, 16.73588926025132, 5.473366414910566, 13.672304037846299, 9.353909038902724, 7.653965528864299, 3.0976870094279056, 13.904743296764625, 17.547926720119882, 16.506769775980604, 21.255181993474885, 5.415206421087507, 3.481620498651368, 8.383340820258915, 16.26015210738808, 8.311346743413441, 18.800084480980754, 4.144121393537198, 2.654097716029216, 3.983394418597051, 5.612088913756237, 11.059879925712762, 4.278639449006253, 19.244658654738323, 4.0758202148512535, 8.767298754325932, 17.471965852234845, 14.862073428571035, 14.378918034285116, 9.042158579407207, 2.9967427178876487, 18.67126852017133, 17.42226017303423, 6.577547115063776, 13.87227617293182, 4.032837330140502, 13.837087026513974, 13.12693147378764, 14.11018633395323, 12.097230126037353, 8.885980668856329, 9.49804401535346, 20.221162861675875, 16.752854043089147, 9.39889225899203, 2.026201567430151, 9.287375510570527, 20.902159642360918, 18.698596849251032, 21.719399626451207, 7.456326948878083, 21.221113359174417, 15.687099842896703, 3.5181174442427525, 8.09578930725095, 5.482425138858362, 14.045415218462432, 12.462233825061283, 15.441567642079665, 2.6644983247211167, 14.26622370624037, 15.751060947243536, 15.819020855043277, 12.682076047405868, 12.573365238364278, 3.043233727535733, 2.092012656968792, 4.612268203958317, 2.0848757032801783, 15.233121806035896, 4.1165456519582415, 4.020559868868126, 12.70169794636807, 4.347770110932692, 13.007321369629157, 20.046959934123503, 13.731147964813102, 12.812493170350947, 5.14674822466448, 18.513817919758147, 20.302320227774857, 5.786531368121029, 12.01694064866654, 8.935563397542431, 3.418815840197205, 4.679168804755047, 9.721472046217324, 16.52238853966255, 14.135535137775992, 8.364922817009685, 16.20350144804876, 6.964285988317279, 13.01818232317006, 5.756028098749125, 13.184231021135284, 21.03439421508933, 15.13633712397715, 16.94823682244796, 19.768707737324583, 5.376588619282577, 12.202064588173647, 5.475402623054425, 6.064358145916169, 10.121749938565026, 21.455284068259495, 7.51775019168894, 11.539309401865006, 4.479349486555121, 15.594985482821384, 12.705991808695291, 6.506936896931664, 8.053825515876941, 3.386333441630847, 6.7663417473386716, 8.22977256542143, 10.05154782496638, 12.181753691894615, 12.012649253550181, 7.219368960928444, 16.402175651453476, 12.388809364078105, 4.736414824704716, 7.781323873560414, 10.69393722955456, 16.259330160618518, 3.5355324019949013, 5.613116268844793, 19.036930340612923, 7.7268136718362666, 3.329350010357677, 3.4737421867783884, 17.37064324926144, 7.454225945803213, 13.943835760673977, 10.845667656271207, 4.002213586562831, 9.936032782985576, 3.3825458376099764, 10.451560378058332, 4.642635636816502, 4.937861364716792, 2.266239658143892, 16.141881871260438, 10.833758671999675, 19.316795243835756, 20.09451936985337, 20.948320421118577, 5.202894923836954, 16.62890322134843, 20.465221039930253, 9.412363090623222, 9.510630745123617, 2.853997157624007, 13.880027100774202, 7.312845931614907, 11.528446530595112, 18.409043318915046, 12.8504065578073, 10.563211500884293, 5.639626395421822, 19.555298148107738, 14.125360968124559, 5.382935970405194, 21.353394921274322, 3.4459636916476892, 6.18074139980309, 17.544326973245077, 11.776867759135065, 8.202296023159317, 11.352976505217727, 12.103900652734342, 15.088443486888128, 5.886700165072316, 4.9580506501364585, 11.694358526359363, 10.067806038951232, 14.273276662940006, 16.60587589626313, 8.946783602115353, 8.510577347322858, 2.015368724198128, 10.552738341321295, 11.431011407391349, 10.563077676814103, 6.6421804078305895, 4.531123620235915, 18.900401837264223, 16.446538241844074, 8.66493333653209, 4.526307861075319, 3.440027945109552, 13.002692521665429, 5.9035258670370565, 21.22646121477127, 18.808557328329982, 3.7839665167179364, 6.823173776434173, 3.172741681052878, 13.778874987535948, 16.32184305017918, 3.4206883326893527, 6.751437646770049, 16.25880753368741, 10.183335237804476, 20.821199970950953, 7.5249268431608956, 2.1486534847018595, 3.900216980685212, 2.7844503906727196, 7.942226511716962, 14.467949038793316, 8.410946797281545, 12.9736837105417, 3.663097475256523, 16.127991772359017, 9.331372287857587, 7.662332269515069, 6.55250806565904, 13.145176727528588, 17.717097397230056, 9.730318311143805, 2.1534605907121067, 9.403267884040181, 10.913596441058809, 11.252168442248172, 3.516911423690024, 15.713489654342617, 4.3317340108431805, 12.979552974214943, 17.516661009035264, 18.882934988278404, 6.66606909172395, 10.574470168445718, 7.287197195551605, 9.160379166755, 18.24186778475052, 3.342014277035648, 2.5159203146161806, 19.768862429495936, 17.60212347655044, 13.577254466429714, 7.988300995163476, 5.504262339680613, 16.834201271494816, 16.301169737926713, 16.877282695001448, 9.814218182966602, 15.751076599566638, 6.1273926261210026, 7.280417286985766, 12.271069129753545, 10.656640904005036, 11.123445080289038, 16.281883771206008, 18.614609885521304, 21.964462859619594, 6.683687228989131, 9.094766191194468, 3.5301365318509585, 5.659005053195019, 9.724443974416426, 11.89602533842184, 4.210091371986101, 16.970886698013494, 19.07826166196451, 17.183845699429465, 9.1131325199835, 7.129477081375599, 3.7148354572834323, 7.056216888665115, 13.747475202542253, 19.745325512988785, 7.365993741879049, 21.570909757079495, 5.569813760426161, 2.995973670139252, 20.565896133853165, 13.060865231551238, 20.180715496983105, 18.566861245514826, 3.542376917442474, 11.343162334238906, 7.479730830914904, 3.072262316523125, 12.124899317193785, 18.47579922499627, 5.346512141315634, 19.748419603680063, 7.746758147726155, 4.9469612086328345, 16.80484386221918, 18.52832766339508, 19.54341865237862, 13.800697048029214, 19.747162776383487, 18.957992875767843, 16.869842817566028, 15.975627733990718, 17.522411366234337, 14.535619034465688, 18.2438773788453, 8.781364977680614, 3.3314654178498064, 3.947939019057243, 11.40743232776012, 14.836609011752461, 18.965876856839216, 12.293071216042392, 16.32621598842651, 11.321451510097564, 19.727735511529264, 20.31636178005705, 21.681227285967402, 14.91278307781839, 6.13899765864069, 15.75404629854685, 4.910131623313211, 5.0900464156562935, 16.106964131950257, 4.994101502606279, 18.324922502953406, 10.054333636710439, 15.282861481995575, 16.225796664216226, 3.165039070876699, 20.563036738403284, 18.97503049112422, 18.708004013552422, 3.6024054375748364, 3.600908873178517, 6.553071425378807, 6.63988362471881, 14.501849814578359, 12.460924374647313, 17.962489945040605, 16.037064279666552, 14.822917048670945, 9.173475046356723, 8.31415584225967, 9.87196053051326, 15.340014101848487, 15.09338238437542, 17.81637629241228, 12.134511696175556, 19.600607633358337, 20.237290850089238, 2.658210016924703, 8.2058329224176, 5.167927862067694, 19.06571011778635, 13.64569848499891, 20.19645035591683, 15.808781115999029, 19.51112547537697, 20.104629251416164, 14.18756881681452, 18.30221831583144, 21.929127466055554, 15.418308042924929, 6.24492135406167, 20.531520796157498, 3.1481055780557736, 7.969050916738581, 10.609448529611631, 4.776054209759451, 12.641129168765065, 10.749710029193427, 3.178394191944938, 4.456028234264016, 6.685067993674115, 21.461654619219775, 6.427417049824962, 12.491933689418541, 14.25041982637233, 14.821255538935372, 17.868749863924982, 14.847711690059331, 17.285765477484716, 8.653755829648178, 19.511784590572912, 18.1848798345298, 15.650255273594102, 17.371558556292477, 13.86345641021856, 20.001534730624616, 15.887687192840444, 21.1273896846789, 7.72657742691423, 3.320516759750179, 8.470919281545246, 16.27898430671344, 14.872163401189283, 19.608342540445975, 15.272129446083959, 4.681186628611705, 4.695668158797709, 6.3721722169778365, 8.989191618592216, 21.255972177865104, 18.200352977814685, 4.81117665474482, 7.014347649188499, 17.713090968234336, 2.2269071124244992, 11.430261470615921, 10.114621664771619, 4.975327599049534, 9.687890829792192, 15.558254990200387, 5.697288673683747, 19.957266361465955, 7.776058856283437, 11.908076238824492, 8.985261830035219, 19.643152560316334, 17.82867566981589, 18.14598028811822, 14.406670095486518, 14.926706167888344, 2.0173132510379204, 7.5236819399415715, 20.044700935911123, 12.865302156037956, 5.464219561224833, 9.611294703633417, 16.270415803249627, 15.81617788639922, 4.85907759798282, 11.332997944515869, 3.506743380056028, 12.129250542706547, 12.60311769499954, 4.192871046481697, 2.099206652921553, 8.4026637432505, 2.510952317470572, 19.26841195074349, 7.311130212631108, 20.34266532594414, 10.911167837085202, 13.149473656820765, 7.794300396322596, 16.120905792826946, 5.954239628930645, 16.022860326728534, 15.655266271052792, 11.911601937246603, 16.51257420459065, 11.16730745230601, 8.334582172133924, 8.385982094727618, 16.61972297593303, 11.14777618398643, 6.575564916021724, 6.1224161618101585, 11.578090551921603, 4.326389275679716, 14.255297182164577, 12.049305710353064, 20.326596625205465, 13.55940943628882, 20.79877594654879, 2.658122942338095, 4.044317477081535, 5.624962777918728, 20.411501534159086, 17.06777779963188, 13.711425816506068, 4.258792037952064, 11.61582282125782, 8.22981873054444, 12.483859972469258, 4.270332305770257, 17.94516885320091, 8.09264649645602, 11.578822354243648, 6.905880729897369, 5.330606027918894, 6.196199615700131, 21.658863328970696, 2.7938253438663434, 3.4012756337202648, 9.226926523584837, 8.365668849113638, 2.2843649850271657, 6.086165007215634, 10.993608351822452, 18.143005768520716, 20.04074679097978, 2.815255849763934, 16.80542312630299, 8.342403482840384, 14.565290377844867, 12.23536265708624, 8.7011228102748, 16.33253293338467, 13.256758164692773, 11.46394816544135, 21.66032315093322, 10.993001470670288, 10.205415392742381, 11.87244791624268, 2.391373415229912, 7.798125588684733, 18.119573657498073, 11.341385760714896, 18.748002170181728, 15.89153536611748, 17.287928383814837, 11.894156806197444, 2.062398481055448, 12.791973325497255, 20.95869470984486, 15.165031523206988, 12.510881303416724, 11.771734084770262, 4.425649056076164, 20.016099211197673, 4.74441007271472, 11.278122815639131, 6.551271143749702, 16.889592383633936, 3.9708897634956912, 6.625523840004275, 2.484998879687606, 7.3775182999722215, 3.4676707315894166, 2.9794870262335675, 13.414923996377116, 7.60982889850883, 16.10590805919139, 13.769636165863467, 18.355592914746445, 13.125157488657575, 3.903733998558048, 3.759056184333927, 18.493909636778135, 21.81744016883354, 9.655822561465575, 6.406662605516802, 19.018547422477916, 6.08556530236281, 20.048882327314605, 19.51316227214747, 17.20596786533774, 17.49473096407229, 18.170187641712065, 17.98127842502723, 4.61461292918066, 8.465645795450536, 12.372791747779107, 12.694546589346231, 7.390964492947889, 16.11265242052776, 10.789267939908484, 18.165439551788875, 11.65249423778765, 12.026034567890418, 6.549107608447409, 14.26075166442762, 13.748897240501787, 15.361839679000148, 9.19813569009305, 8.044148601920078, 13.053070368129331, 7.029162837814189, 19.724746785447863, 10.313487942423844, 2.1528448224623524, 6.150414782751102, 10.20676807155007, 18.743663960072432, 7.174420215392024, 3.2609243339354426, 3.7458408165263517, 11.122095998506063, 9.151344784408568, 20.63254793911744, 18.175611585297887, 15.192053140462825, 5.400944473948504, 19.897992838085873, 14.233550401225084, 5.223293260089976, 13.306042433129189, 16.83213357935279, 9.393087258822607, 4.2212401556644235, 19.972249702594574, 5.417140906830632, 5.26448415037264, 21.406976564185733, 10.556881338188996, 10.95858173577859, 2.2733639856139547, 9.006611983866138, 12.508100627496361, 11.057427419839474, 21.984093460313982, 20.945590999178062, 14.771813803027781, 9.053193111397885, 12.78781801496558, 6.176826689373909, 19.71108637368566, 11.17869109939753, 9.085531858463973, 5.486742694473717, 12.298714526690468, 21.894928437048456, 12.721222920252542, 10.591883689040994, 14.804561985290274, 17.640950048973004, 18.915966397402308, 18.387917252228938, 13.030168218919005, 9.512737014999383, 21.905573590916916, 5.419796042446228, 21.358652519558607, 13.909903062847667, 5.701085264788353, 2.2582346860523943, 6.798894023446573, 6.927731668870328, 11.812259952914879, 5.9217933956526245, 15.544270033948836, 5.74060060959555, 15.997404221795648, 18.692712588861454, 8.552971673667953, 9.971806770389199, 20.350653055614124, 9.850248931301309, 6.4017483703198295, 9.755605149067664, 18.115512289640282, 17.26803492626617, 7.2210813498123905, 19.394821779300823, 7.179932863089913, 19.969192469846227, 3.563513557072338, 8.45186261090444, 10.902703770585203, 4.896056489177424, 9.527344438305295, 15.437063412168936, 15.805923380253805, 14.900502219508457, 12.885161667105773, 19.537012541010874, 20.766814388679716, 21.30491688892984, 19.151440927200778, 8.014762585035601, 8.639691980629458, 14.911023310441117, 20.735755244807457, 6.711085437834064, 21.49725468866358, 5.795765137669223, 15.253191784069944, 9.313171854076062, 6.540499720218576, 10.73850015395095, 2.144497800506258, 15.101401218289245, 7.6307027753107475, 8.15478662683983, 10.974615454191232, 3.448540691028779, 21.634833028294018, 18.769066197000736, 18.191986625444805, 2.2501559717743262, 5.717604685558373, 10.913649491536697, 9.923151886416269, 18.298339257408237, 20.88698375607373, 14.887281566101901, 2.9386730986331693, 8.885070709649083, 6.31989063622572, 2.764799291556739, 13.213229380011642, 4.043830227630097, 19.136383187399208, 14.139429565606063, 11.500868385898002, 12.22003602873359, 10.027445125895454, 3.773556456542742, 17.37590717648612, 16.143829947109154, 10.261398338079582, 16.13929932688348, 19.245092426875217, 3.0559625467282174, 7.577666398576997, 3.553658429321285, 7.895006939398007, 8.362350541550787, 13.401884712559223, 5.87593083517594, 6.88554243418021, 16.481342143684202, 11.25887465397681, 19.058674418980402, 11.565775193882978, 21.966097147473217, 18.239881175525703, 14.1167471856398, 16.80412843670861, 11.18587017214188, 20.87614187295067, 11.124462821008416, 12.165079061895524, 6.92402265799104, 15.288811662750206, 16.21431793159556, 19.018065301737366, 15.800177291713933, 15.629970084222458, 11.692870644404001, 17.96613178175176, 3.898090878550336, 15.492563851185839, 3.914512835639852, 20.04541801823717, 17.610068332978578, 15.851934148138813, 8.507230499046731, 13.58457957101703, 12.884141972016373, 13.839200856268297, 12.119222103827784, 9.866529731715843, 20.50224667004645, 20.86564146173225, 19.308393740232724, 12.568329116055907, 9.581396645817426, 8.43204547596458, 4.9621843146951665, 3.6625157235574073, 5.894235668508101, 10.022323789716719, 16.795972220764686, 19.714444802499177, 20.221336957216533, 11.155629177491733, 17.981033682265064, 3.1012258146490272, 11.34168620927694, 3.2286001468592223, 7.670325935931619, 17.106343422330006, 11.531525372386952, 5.353141335284365, 17.110799317348583, 18.935349276943242, 14.716046853999217, 14.086156125389964, 21.2324975669793, 15.662834432177544, 7.232621992820512, 6.3793530894913975, 5.093944847417458, 15.54998547680962, 11.597678078508803, 17.48334195301024, 19.12943013647561, 14.79771880987374, 6.966933902341692, 17.27620901978558, 10.988266919482676, 14.618002206172822, 14.238283251440853, 3.8091011806462554, 16.677491735490694, 6.342238726856909, 5.623354580093854, 11.071552672040417, 8.148814127808237, 21.76403873564128, 20.93198576992947, 18.917330383960454, 3.661583418632564, 21.25890215621317, 12.955882437351494, 21.123703188221842, 5.69674177225932, 13.404367088568886, 20.79388677531411, 18.17755652355303, 14.161922991944197, 13.705399962111894, 6.83547069936944, 8.090740842473437, 3.9354286406456622, 15.242376460397931, 15.651810621492071, 10.701941569244777, 20.706235593595043, 20.416308556576332, 16.367594643169188, 7.69269369596769, 2.5523679818850735, 21.32150336244913, 11.436879889122993, 5.905613593789723, 17.302408263691795, 6.876717073038305, 7.2335418646082505, 2.9692383888983236, 7.139550823020089, 20.492100837396773, 7.204575397391869, 7.059110747346556, 17.946166072929458, 15.38110764786827, 11.252502017199312, 8.316685636640004, 8.331406060098356, 5.457328048781272, 18.624250848484465, 2.870604343363195, 9.828538523621557, 9.133397543780093, 2.364590021088629, 17.7450551214596, 4.159198038489539, 15.024625694431872, 12.456902842333553, 9.195957828678846, 10.50565062302026, 21.955746395373126, 9.346324193547265, 2.0813048982119735, 9.021089037091318, 20.680165258859645, 13.965352811317944, 16.12341556405151, 4.596486021032652, 8.250624146197868, 7.0385780502996935, 19.137664627059674, 17.504256342052038, 16.731869625918133, 8.063482369519164, 18.545409194559905, 15.015723882377685, 4.198152589596594, 11.239533397867499, 17.550597677259557, 16.359519508749656, 7.699054726408455, 13.3282703824285, 19.285345746595063, 4.728801896372781, 12.518719632744283, 9.836456915440948, 5.506029091336651, 19.449571135248508, 2.4007038361743653, 15.686237077706739, 18.362413836675287, 9.112869856106556, 8.9742652066729, 21.424069730171222, 20.5149197887984, 21.969133249794236, 15.585572654707452, 12.507307489343143, 3.4921645073294187, 14.895693458008532, 6.136715538275821, 21.487202026370028, 21.23262181214031, 16.66736014600979, 2.2883663779577295, 14.919008245994082, 5.312177799583102, 21.80302440790903, 15.036567390000737, 5.0091094519593575, 16.934252085684676, 16.70162944445453, 2.3125337141529205, 20.475638388404, 15.586458319196792, 12.980082658915247, 14.54966980142575, 10.015990260533666, 11.177748449428055, 6.81482336217141, 18.409111454556115, 19.444239102573686, 8.478354293199992, 13.430936044383786, 5.534864190661038, 14.333908618590467, 5.626803643545999, 4.805564050181461, 4.159324935777969, 16.58280466709637, 12.091884805585334, 14.386510771072297, 17.25661968454103, 6.523164596458271, 11.444999386010029, 19.270513834950577, 18.744196126992797, 20.625526893880277, 10.991085632790682, 16.06934108331452, 6.68724439506923, 3.701884949446475, 18.23773710155289, 4.378043778104464, 3.149423120069437, 7.264608073941415, 12.764235339665058, 13.568737914137788, 8.900620039982705, 16.12551458866931, 2.4439670037970234, 8.908819324895656, 5.4070201426436775, 2.549777046148636, 15.354954437659945, 6.0652891465023515, 7.094756077599567, 20.451594587488707, 2.664289958976718, 12.094678733638991, 5.138683291393509, 11.551401341693328, 12.348188866861626, 9.058560527423008, 4.125703856609126, 6.172192374079222, 8.03569918151386, 2.6252781726965084, 11.989016834734121, 13.941212370150765, 6.444937528451853, 6.480467614695689, 14.193451175796174, 2.0347600215972665, 7.624971860925092, 7.309809894591737, 9.55818565627116, 14.650909788770615, 15.329004497705675, 12.06856589541158, 5.572353278971587, 9.214854689056677, 7.262309065936421, 6.235106720023145, 21.739426144674265, 17.26471932601413, 15.80326477340887, 19.666658698213624, 20.302540268229627, 16.494788168809478, 3.97381741155233, 4.603479969973175, 6.211228016516784, 13.723956144815585, 15.701783086882509, 7.145419959492612, 6.898375037759055, 6.228161384282549, 3.7280646491248164, 12.329112467428686, 4.081264338447832, 21.40202010154985, 8.91998385371831, 3.8972757512032334, 18.736946221669925, 17.776385524881178, 7.1047118343917735, 13.283148801293805], "expected": [2.7153214116729814, 2.023159741692237, 3.0854198086552374, 2.9588040004993896, 3.2258994447128995, 1.6635922569087307, 2.8257704993190345, 3.440898616228047, 2.4823460847426717, 3.7161410038257574, 3.0262367154462457, 2.0977044732592747, 3.475262441523069, 3.54334682364656, 2.4256852121197654, 3.3411635362041956, 2.961585687601667, 2.761015235962149, 1.8564470596542981, 3.358021378942311, 3.590727159972337, 3.52956193885893, 3.7823920768029633, 2.4150023526088904, 1.9732891985768934, 2.852037853594601, 3.5145088114185508, 2.8434130113672706, 3.6596527161397234, 2.147482150980093, 1.7018961062753108, 2.107925677449203, 2.4507143582655355, 3.12911549205365, 2.179426425955846, 3.683024902394783, 2.1308633588016077, 2.8968201018150745, 3.586388997777361, 3.4246039130602393, 3.3915544610975012, 2.9276892794530656, 1.8233172907435597, 3.652777252195087, 3.5835400615216013, 2.609453249616952, 3.35568368114476, 2.1202615330189225, 3.353143805718424, 3.3004573102030874, 3.3726883242304204, 3.2187678638388135, 2.91026618169539, 2.9768772369316356, 3.732521075052028, 3.5443599870331557, 2.966383190188361, 1.4319542438630304, 2.9544473586225153, 3.7656438384474704, 3.6542398388906068, 3.8039972058206573, 2.734854279506272, 3.7807879518987964, 3.478630061188874, 1.9837173822126317, 2.8171354405491917, 2.427338899298411, 3.368087376200216, 3.248494129635292, 3.462854423310188, 1.7058071466587967, 3.3836861174543387, 3.482699077377418, 3.487004420214386, 3.2659810143882555, 3.257372059254372, 1.8387120288701397, 1.4639179490053884, 2.2545111068642285, 1.460500591384736, 3.449263475962155, 2.1408057303330774, 2.117212516441089, 3.2675270337370987, 2.1954544481353113, 3.2913037338578075, 3.7238688706679475, 3.3454581788940265, 3.2762120764974325, 2.3641564552089225, 3.6443087205086506, 3.736526529095794, 2.4813243918504044, 3.2121087276140807, 2.91583055439329, 1.9550855982060353, 2.26891184097893, 3.0001284047345127, 3.530507695011531, 3.3744832021310196, 2.849838460144316, 3.5110187102968893, 2.6665864403813915, 3.2921383731638976, 2.4760390233030214, 3.304812848499285, 3.7719502703701777, 3.442889637696244, 3.555955158786038, 3.7098916228615715, 2.407845440065894, 3.227396518605228, 2.4260571641009014, 2.5282200602427722, 3.0404779203858454, 3.7917623111897747, 2.7430582692071086, 3.1715507680747805, 2.225269184634569, 3.4727407718173264, 3.2678650308088115, 2.598660175389891, 2.8119385505578336, 1.945539108066785, 2.6377519312367967, 2.8335497321306455, 3.0335179877255802, 3.2257305858343055, 3.211751551717243, 2.7025589001962693, 3.5232053403500907, 3.242584947145056, 2.281071836066507, 2.777517840055539, 3.0954683194658563, 3.514458260381916, 1.9886552494209075, 2.450897402597414, 3.672172147403882, 2.770487927397867, 1.928568445499844, 1.9710238054986062, 3.5805729644090403, 2.734572465263217, 3.360828882298672, 3.1095570585390946, 2.1126389573378734, 3.0219591772452197, 1.9444199850155592, 3.072542638383135, 2.261073582793627, 2.3227236679846146, 1.5439132722987972, 3.5072086054220284, 3.1084584145723153, 3.6867662900216276, 3.726238462362535, 3.767849824969359, 2.3750065394456708, 3.5369336918615644, 3.7445182634069067, 2.967815400180036, 2.978201551411032, 1.7745118757717586, 3.3562422602268254, 2.7154238709712755, 3.1706089450292554, 3.6386333812442535, 3.2791668022253293, 3.083168704089833, 2.455609174014115, 3.6990376073791738, 3.3737631846161573, 2.4090252973739066, 3.787002092384238, 1.9629949543187788, 2.547229584524467, 3.5905220009125123, 3.191928600701609, 2.8302054705457667, 3.1552713093471114, 3.2193191212925987, 3.439720471455399, 2.4984869496921265, 2.3268040020458955, 3.184897900929371, 3.0351341646300405, 3.3841803767617535, 3.5355479550291515, 2.917085446275833, 2.8671011363274417, 1.4265935209792955, 3.082176737306424, 3.1621213136225528, 3.083156035128515, 2.6192316369031885, 2.2367613011700658, 3.6649745357152184, 3.5259063664849624, 2.885075582364594, 2.2356979181073657, 1.9612709475753967, 3.2909478057116757, 2.5013411296444437, 3.7810399265135453, 3.660103295957816, 2.05656415514773, 2.646116079365781, 1.8803874503504914, 3.348927973934877, 3.5182956278006237, 1.955633150336014, 2.6355468195578173, 3.514426116663474, 3.046543936612647, 3.76176304966305, 2.7440124413933256, 1.4906327124000023, 2.0868235403058306, 1.7498418602910886, 2.7979850056870634, 3.3977271443889583, 2.855325400231291, 3.288714328422663, 2.024100446858986, 3.506347734387165, 2.959173440059941, 2.7621077638815104, 2.6056392397879007, 3.3018462552039467, 3.600321480636304, 3.0010379627108055, 1.4928674778788382, 2.966848628743703, 3.1158007444615046, 3.14635221314324, 1.983374520630346, 3.4803109097386367, 2.1917592788926235, 3.289166623744791, 3.588943838313908, 3.66404995616785, 2.622821697271633, 3.0842339740472715, 2.711910352247305, 2.9406789242246143, 3.629510732528085, 1.9323650548122897, 1.6484300195251622, 3.70989944793381, 3.5938108994876865, 3.334187279550938, 2.803769448405198, 2.431314115599317, 3.5492039596115856, 3.517028220945587, 3.5517598510699497, 3.0096235218736105, 3.482700071108277, 2.5385606656344573, 2.710979532851516, 3.233035741210878, 3.091974609529496, 3.1348464028646585, 3.5158444172871874, 3.6497381027539055, 3.8152171753969304, 2.6254611682957383, 2.9334904568840936, 1.9871279004201496, 2.45903944375312, 3.000434065647487, 3.2019956917954238, 2.1632757036631425, 3.5572906814400023, 3.674340906650799, 3.5697610916146116, 2.935507859914447, 2.690029243760844, 2.0381257383889877, 2.6797004090663097, 3.3466465382635007, 3.7087081330914, 2.7226653210716725, 3.7971369891187936, 2.4431529698357193, 1.8230606299230492, 3.749425529057429, 3.295411724800171, 3.730518822689078, 3.647169690864716, 1.9905893000768824, 3.154406477521756, 2.737988158811827, 1.8482055537778828, 3.2210524856972027, 3.642253078353667, 2.4022357647471435, 3.7088648207232495, 2.7730658049774544, 2.324564843467365, 3.5474585226283315, 3.645092138647671, 3.698429940577458, 3.350510454259017, 3.708801176780243, 3.668016982885225, 3.5513189318839182, 3.4968556469088083, 3.5892720637411744, 3.4023934749791964, 3.629620890294511, 2.8984232126367266, 1.929203625257053, 2.0989850280625384, 3.1600564541879606, 3.4228890610219342, 3.6684327622474333, 3.2348271405322504, 3.518563511307469, 3.152490642473243, 3.707816892221434, 3.737217913067279, 3.802238136745274, 3.4280101224749076, 2.54045283369902, 3.4828885927654447, 2.3170921012839503, 2.3530783021550294, 3.5050430858898136, 2.3340488692069097, 3.6340533713745797, 3.033795101839398, 3.4525233886144164, 3.5123937150597406, 1.8779567528334553, 3.7492864836091373, 3.668915282835497, 3.6547428070450354, 2.00739315207998, 2.0069776310147343, 2.605725212288468, 2.6188857895817113, 3.4000675673536565, 3.248389050623661, 3.614077044274661, 3.5006939133735395, 3.4219657850379384, 2.942107525289811, 2.843750937858032, 3.015489821675097, 3.456256067869496, 3.440047747714459, 3.605909403414707, 3.2218449517203496, 3.7013519201026117, 3.733318336824934, 1.703444322953874, 2.830636586040385, 2.3682631604493736, 3.673682792456312, 3.3392156953079137, 3.7312982166558353, 3.4863569051318395, 3.696776192718779, 3.7267414522079765, 3.3781574983989566, 3.6328136245899603, 3.813607127053422, 3.4613469899169584, 2.557559902718098, 3.747752657705401, 1.8725922207746515, 2.8013567563909847, 3.087536327445868, 2.2894060791227586, 3.262747070345406, 3.100670132826075, 1.8821674508094781, 2.2200491914848284, 2.6256677342275543, 3.7920591893549886, 2.586364107207878, 3.250874483807678, 3.382577720425218, 3.4218536881506054, 3.608844722117961, 3.42363711107409, 3.57567471068915, 2.8837847793103175, 3.6968099736538704, 3.6263818231173763, 3.4762785809096237, 3.5806256557747957, 3.355047695563049, 3.7216003597858522, 3.491335771488398, 3.7763616406584797, 2.770457352241832, 1.9259117739880005, 2.8624303892499277, 3.5156663222503295, 3.425282590173313, 3.7017464681409393, 3.451820915072323, 2.269342983557282, 2.272431768022404, 2.577731771473856, 2.9218142770175977, 3.7824292521940204, 3.6272323409248304, 2.2967330336122234, 2.673749068174114, 3.6000953215783014, 1.5264050303170336, 3.1620557060092147, 3.039773419180989, 2.3302825701425123, 2.996668090230891, 3.4703827179466518, 2.4657817430342055, 3.719384658310359, 2.776840988740712, 3.2030081980975886, 2.9213770132497907, 3.7035201600172347, 3.606599506372322, 3.624240417098078, 3.3934826530576325, 3.428943321496227, 1.4275579049810292, 2.743846990454956, 3.7237561789926343, 3.280325284774835, 2.424012657346161, 2.988730291176046, 3.51513982998732, 3.486824685693042, 2.3066399778901046, 3.1535099950239407, 1.9804791474887287, 3.221411288259616, 3.2597355721059684, 2.159177065884321, 1.4673508416725596, 2.8543401205162455, 1.6464534431817182, 3.6842584212310423, 2.7151892263062747, 3.73851177332065, 3.1155781895736094, 3.302173084370155, 2.779184100815262, 3.5059082787665945, 2.509894861141677, 3.4998078255837672, 3.4765987159691427, 3.203304230514299, 3.529913516326565, 3.1387818849498497, 2.846204738272903, 2.852352866252409, 3.536381473818375, 3.1370313852765968, 2.609151845804322, 2.5377481689382617, 3.1749059193040883, 2.190524661258871, 3.382919922365859, 3.2147983935233593, 3.7377215597389952, 3.332872082312461, 3.76068548889673, 1.7034115655674265, 2.123104156429141, 2.4530056834544243, 3.741889895313073, 3.5629836993499926, 3.3440208390978685, 2.1747769135493225, 3.1781595576199493, 2.8335553416408916, 3.2502279604306983, 2.1774830002225793, 3.6131122866846157, 2.8167471620431614, 3.174969123093406, 2.6581646809591004, 2.399256285657082, 2.5497274915461383, 3.801206114953703, 1.7532031003825534, 1.9499419002903426, 2.947917358012825, 2.849927641940075, 1.5518794324716882, 2.5318095163407994, 3.123105397637706, 3.62407648198016, 3.723558893186019, 1.760844498121923, 3.5474929921006546, 2.847142714888306, 3.404432679544304, 3.2301216900552263, 2.8892434286301896, 3.5189503568080154, 3.310298825211078, 3.164998521653166, 3.8012735133552753, 3.1230501930238783, 3.0487098529034355, 3.200011767152065, 1.5976592042634592, 2.7796747483184214, 3.622784124147106, 3.1542498445996277, 3.656878548460553, 3.4915779532024853, 3.5757998293034134, 3.2018386074808203, 1.4496609693535687, 3.274609242925399, 3.7683449348647207, 3.444783572464746, 3.252390122557215, 3.1914925939713448, 2.213208299687504, 3.722328262951607, 2.2827584508899705, 3.148656167812517, 2.6054504512112246, 3.5524889495813827, 2.1047815440196183, 2.6167207915804553, 1.6360635613632806, 2.7242286609879227, 1.969274462300414, 1.8175424994966525, 3.3221591709361658, 2.7552320404953647, 3.504977517519941, 3.3482572428040798, 3.635725671700324, 3.3003221601862407, 2.087724883258983, 2.0499592637322346, 3.6432328217050824, 3.808501010348802, 2.993352460283708, 2.5831298336242035, 3.6712060357876104, 2.5317109757326763, 3.7239647605699497, 3.6968805788275287, 3.5710476451993256, 3.5876911004708756, 3.6255735620062017, 3.6151224817760603, 2.2550193447485105, 2.86180765539083, 3.2412912005524346, 3.2669638514759733, 2.7260495923428363, 3.505396180634274, 3.104343283450788, 3.6253122157564217, 3.1813116074049788, 3.212865199687577, 2.605120150024841, 3.383302477632117, 3.346749972850281, 3.4576778439605462, 2.94479217378379, 2.8107362980195147, 3.2948147359913675, 2.6758589671392525, 3.707665382054615, 3.0592439001944176, 1.4925814934003259, 2.5423108765386586, 3.0488423893184677, 3.6566471258231283, 2.6963133048082746, 1.9078020458510436, 2.046437461510208, 3.1347251127796163, 2.939692192106596, 3.7526611786026756, 3.625872025308231, 3.4465638240726877, 2.412365193504339, 3.7164102168804742, 3.381393234766458, 2.3789194483476592, 3.314009602981523, 3.54908112520423, 2.9657653733853397, 2.165920313269491, 3.720135147838348, 2.4153595209501795, 2.3867745162933924, 3.789508229215809, 3.0825692594819816, 3.1199142221213827, 1.547052019148986, 2.923750325120825, 3.2521678372588374, 3.128893719498336, 3.816110519963565, 3.767719523364575, 3.418512244832329, 2.9289088781154153, 3.274284352818758, 2.5465960115541413, 3.7069725901841633, 3.1398007383297895, 2.9324745952629687, 2.428126115959497, 3.235286099536381, 3.812046384431841, 3.2690630474646905, 3.085879370759544, 3.4207267281672573, 3.5960142594246323, 3.665797701013397, 3.637485130482267, 3.2930586538223983, 2.9784229916850076, 3.812532458955428, 2.415849536843259, 3.7872482804564966, 3.3583923896735293, 2.4664479066932503, 1.5403747483355055, 2.642551307988084, 2.6613237917561565, 3.1949293238117455, 2.5044306941188883, 3.4694834367993383, 2.4733551933202973, 3.498217825585031, 3.6539250994216457, 2.8720701393786516, 3.0255531409010095, 3.7389043552033896, 3.0132880797227184, 2.5823624885651832, 3.0036333595540716, 3.6225599564505964, 3.5746484529364557, 2.7027960657769987, 3.690797464492161, 2.6970813851165634, 3.7199820620914132, 1.9965383650233592, 2.8601781970492453, 3.114802163467195, 2.3142214356103783, 2.9799573786263287, 3.462562685639903, 3.486176119905563, 3.427186271035385, 3.2818677435935704, 3.698102098164798, 3.7591476031642936, 3.784729238576548, 3.678169309680926, 2.8070765169369682, 2.8821582844350924, 3.427892111557293, 3.7576508693502286, 2.6295520547536584, 3.7937165907260546, 2.4829188548310124, 3.4505801311145823, 2.9572210791521916, 2.6038049250141073, 3.0996267815032947, 1.4886967519749137, 3.4405788880735266, 2.757971300555447, 2.824396423671519, 3.121376272649621, 1.963742506095691, 3.8000960086256983, 3.658001452245368, 3.626772554463807, 1.5367908872470708, 2.4693413090654306, 3.115805605402555, 3.0206619539613784, 3.6326016574126863, 3.7649175308125122, 3.4262986149163672, 1.8037495051211136, 2.9101637725369605, 2.569493256259106, 1.742759396035582, 3.3070099061025866, 2.1229836716235173, 3.677382754637588, 3.374758670404494, 3.1682138969802756, 3.2288682547253678, 3.0311171989303642, 2.0538092665960503, 3.5808759543289286, 3.5073292826963622, 3.0541804733618445, 3.5070486023312735, 3.6830474420124593, 1.8428859682221392, 2.7509966419149054, 1.9937689689574514, 2.792021879313062, 2.849530905479065, 3.321186699902269, 2.4966558401546015, 2.6552152666428497, 3.528020314567471, 3.1469480284413907, 3.6733137006547625, 3.173841675384229, 3.815291578630311, 3.629401822770006, 3.3731531888817767, 3.5474159491450177, 3.1404427426958725, 3.7643983223862594, 3.1349378937791843, 3.2243608279873737, 2.660788262337946, 3.4529126496667373, 3.5116860274795485, 3.6711806854366698, 3.4858125136092464, 3.474981583078997, 3.18477066208919, 3.614279770488392, 2.0862782676066933, 3.4661515099159423, 2.0904822390037405, 3.723791952512136, 3.59426215549617, 3.489082873796915, 2.8667078014926037, 3.334726647014475, 3.2817886033029193, 3.353296559568029, 3.2205841483735953, 3.0149395466680113, 3.7463258264449455, 3.763895209648803, 3.686331262830486, 3.256971440083306, 2.9856147216651223, 2.857830737688747, 2.327637382467348, 2.023941620100174, 2.499766220637985, 3.030606336554676, 3.5469304615456045, 3.7071429584060462, 3.7325296845861287, 3.1377355821203117, 3.615108870706703, 1.857588810056661, 3.1542763355936567, 1.8978400048729855, 2.763150462027348, 3.5652407077347306, 3.1708759741325943, 2.403474906712157, 3.565501155842725, 3.666821859930457, 3.414729873763623, 3.370983832634334, 3.7813242647272887, 3.4770820250525247, 2.7043929776807585, 2.5788580482289976, 2.353843902173898, 3.469851057302307, 3.1765962650754367, 3.5870398918413136, 3.677019346655572, 3.4202643870668683, 2.6669665813994907, 3.575121706523058, 3.12261941249049, 3.4080451496245754, 3.3817256931755013, 2.063184603360522, 3.539851362697686, 2.5730231702562976, 2.45271973884873, 3.1301703489734156, 2.823663763520104, 3.806050361070226, 3.7670697613307174, 3.6658698060993813, 2.0236870345431575, 3.782567085288842, 3.2873412799200117, 3.776187136463878, 2.4656857451469887, 3.321371908639035, 3.7604503911204756, 3.6259790277158985, 3.3763482362055357, 3.343581265637406, 2.647916686487441, 2.8165116546118085, 2.0958111588600623, 3.4498708264681657, 3.476377957602808, 3.0962165327212134, 3.756226243959032, 3.7421253731615676, 3.5210947963450616, 2.7660623603880836, 1.662812901261017, 3.785507463642532, 3.162634564432116, 2.5016947077830274, 3.5766370504539506, 2.6539327210918042, 2.704520153315992, 1.814096837859963, 2.691441217076143, 3.7458308395272986, 2.7005076486999755, 2.6801104397502025, 3.6131678555137414, 3.4589313328460545, 3.1463818580964302, 2.8440551671302616, 2.845823589308946, 2.42275065426669, 3.650255893201225, 1.7803139328493751, 3.0110816006357664, 2.9377291076868155, 1.5863960069560932, 3.601898245047723, 2.1511136291243536, 3.43548192057145, 3.248066267074866, 2.9445553737020513, 3.0777046196283213, 3.814820252681453, 2.9607744842677715, 1.4587864045627303, 2.9253564152507137, 3.754966393493821, 3.3623708156910843, 3.5060639509050686, 2.251083455741858, 2.836080204214281, 2.677197520922149, 3.6774497159199253, 3.588235423546948, 3.5431066142936607, 2.8131368716256535, 3.6460136282962057, 3.434889263532491, 2.160435921547572, 3.1452286836033583, 3.590879357661026, 3.520601313507197, 2.766888911164299, 3.315678724660296, 3.685136872409444, 2.279463224198888, 3.253016447331932, 3.0118869292992674, 2.431635042921227, 3.6936163728644673, 1.6015533120774836, 3.4785750612892863, 3.6360972017811086, 2.935479036931596, 2.92015241254465, 3.790306396357255, 3.74694376865058, 3.8154297867288416, 3.4721370091548143, 3.25210442528892, 1.9763130992860547, 3.4268634941551603, 2.540081023058848, 3.793248855956555, 3.7813301163609503, 3.5392436772997304, 1.553629543569083, 3.4284274737628997, 2.3957932355657685, 3.8078400471248104, 3.4362764130697006, 2.3370494978414396, 3.555129674117817, 3.5412976388318684, 1.5641351220360513, 3.7450271608186383, 3.472193833459289, 3.289207432075683, 3.403359651944629, 3.029974194611189, 3.139716409162081, 2.6448914984802716, 3.6386370824422896, 3.6933421887371924, 2.8633077144165613, 3.323352058769232, 2.4368583820383662, 3.3884193150454753, 2.4533328970802217, 2.2955657763526527, 2.1511441386965053, 3.534157647701988, 3.218325903018491, 3.392082368191457, 3.573987172337428, 2.6011509783855074, 3.163344252402251, 3.6843674997362847, 3.6566755172500685, 3.752320830909122, 3.1228758998748893, 3.502704528648374, 2.625993242838341, 2.0346334883677972, 3.6292842671796715, 2.202393351262435, 1.873010652224842, 2.708805701059869, 3.2724384986583046, 3.3335598165757814, 2.911912294369947, 3.5061941272929875, 1.6194138929615567, 2.9128330741120005, 2.413489488327776, 1.6617972751096972, 3.4572295392690235, 2.5283735685131394, 2.6851472831871783, 3.7438522070319737, 1.7057289428595794, 3.21855693443902, 2.3625882303053314, 3.1725981105379852, 3.2393007545079353, 2.929501577893613, 2.143027989780647, 2.5458454554996996, 2.809685365038346, 1.690978213624883, 3.2097823195509347, 3.3606407247944325, 2.5890862959635865, 2.594584023166984, 3.3785720260704366, 1.4361692390804979, 2.7572199847609133, 2.7150086198564463, 2.983189276787728, 3.410293787802145, 3.455538105240206, 3.2163955650704734, 2.4436088090957875, 2.946608174684687, 2.7084891840725347, 2.5559870479130273, 3.8049188377002703, 3.5744564265352015, 3.486007902560766, 3.7047161027066764, 3.7365373672295585, 3.5288358150972807, 2.1055185499594606, 2.2526038853379435, 2.5521499772718768, 3.3449342821254477, 3.4795656309630303, 2.6922629389952326, 2.6570772347389937, 2.5548725189786556, 2.041680590821148, 3.2377546856753328, 2.132198179930246, 3.789276667486076, 2.9140854891137415, 2.086069136365332, 3.656288661089397, 3.603662273250182, 2.6865495552279763, 3.31228757711839]} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/runner.py new file mode 100644 index 000000000000..9f3ff44d3062 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/runner.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python +# +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Generate HalfNormal entropy fixtures.""" + +import os +import json +import numpy as np +from numpy.random import rand +from scipy.stats import halfnorm + +# Get the file path +FILE = os.path.realpath(__file__) +DIR = os.path.dirname(FILE) + + +def gen(sigma, name): + """Generate entropy fixture data and write to JSON. + + # Arguments + * `sigma`: scale parameter array + * `name::str`: output filename + + # Example + ``` python + python> sigma = rand(1000) * 10.0 + 1.0 + python> gen(sigma, './data.json') + ``` + """ + y = [] + for s in np.nditer(sigma): + y.append(halfnorm.entropy(scale=float(s))) + + data = { + "sigma": sigma.tolist(), + "expected": y + } + + filepath = os.path.join(DIR, name) + with open(filepath, "w", encoding="utf-8") as outfile: + json.dump(data, outfile) + + +def main(): + """Generate fixture data.""" + sigma = rand(1000) * 20.0 + 2.0 + gen(sigma, "data.json") + + +if __name__ == "__main__": + main() diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.js new file mode 100644 index 000000000000..8cf1b09270db --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.js @@ -0,0 +1,86 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var NINF = require( '@stdlib/constants/float64/ninf' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var entropy = require( './../lib' ); + + +// FIXTURES // + +var data = require( './fixtures/julia/data.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof entropy, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN` for `sigma`, the function returns `NaN`', function test( t ) { + var sigma = entropy( NaN ); + t.strictEqual( isnan( sigma ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a scale `sigma` that is not a positive number, the function returns `NaN`', function test( t ) { + var sigma; + + sigma = entropy( 0.0 ); + t.strictEqual( isnan( sigma ), true, 'returns expected value' ); + + sigma = entropy( -1.0 ); + t.strictEqual( isnan( sigma ), true, 'returns expected value' ); + + sigma = entropy( NINF ); + t.strictEqual( isnan( sigma ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the differential entropy of a half-normal distribution', function test( t ) { + var expected; + var sigma; + var delta; + var tol; + var i; + var y; + + expected = data.expected; + sigma = data.sigma; + for ( i = 0; i < expected.length; i++ ) { + y = entropy( sigma[ i ] ); + if ( y === expected[ i ] ) { + t.strictEqual( y, expected[ i ], 'sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] ); + } else { + delta = abs( y - expected[ i ] ); + tol = 40.0 * EPS * abs( expected[ i ] ); + t.ok( delta <= tol, 'within tolerance. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' ); + } + } + t.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.native.js new file mode 100644 index 000000000000..23ea650718a1 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.native.js @@ -0,0 +1,95 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var NINF = require( '@stdlib/constants/float64/ninf' ); +var EPS = require( '@stdlib/constants/float64/eps' ); + + +// VARIABLES // + +var entropy = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( entropy instanceof Error ) +}; + + +// FIXTURES // + +var data = require( './fixtures/julia/data.json' ); + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof entropy, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN` for `sigma`, the function returns `NaN`', opts, function test( t ) { + var sigma = entropy( NaN ); + t.strictEqual( isnan( sigma ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a scale `sigma` that is not a positive number, the function returns `NaN`', opts, function test( t ) { + var sigma; + + sigma = entropy( 0.0 ); + t.strictEqual( isnan( sigma ), true, 'returns expected value' ); + + sigma = entropy( -1.0 ); + t.strictEqual( isnan( sigma ), true, 'returns expected value' ); + + sigma = entropy( NINF ); + t.strictEqual( isnan( sigma ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the differential entropy of a half-normal distribution', opts, function test( t ) { + var expected; + var sigma; + var delta; + var tol; + var i; + var y; + + expected = data.expected; + sigma = data.sigma; + for ( i = 0; i < expected.length; i++ ) { + y = entropy( sigma[ i ] ); + if ( y === expected[ i ] ) { + t.strictEqual( y, expected[ i ], 'sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] ); + } else { + delta = abs( y - expected[ i ] ); + tol = 40.0 * EPS * abs( expected[ i ] ); + t.ok( delta <= tol, 'within tolerance. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' ); + } + } + t.end(); +}); From d4d505bb80dcaf1b24ac9120fe365d0436b32fa9 Mon Sep 17 00:00:00 2001 From: Sachin Pangal <151670745+Sachinn-64@users.noreply.github.com> Date: Thu, 22 Jan 2026 11:32:25 +0530 Subject: [PATCH 15/19] feat: add `stats/strided/srangeabs` PR-URL: https://github.com/stdlib-js/stdlib/pull/9850 Co-authored-by: stdlib-bot Reviewed-by: Philipp Burckhardt --- .../@stdlib/stats/strided/srangeabs/README.md | 291 ++++++++++++++++++ .../strided/srangeabs/benchmark/benchmark.js | 103 +++++++ .../srangeabs/benchmark/benchmark.native.js | 108 +++++++ .../srangeabs/benchmark/benchmark.ndarray.js | 103 +++++++ .../benchmark/benchmark.ndarray.native.js | 108 +++++++ .../strided/srangeabs/benchmark/c/Makefile | 146 +++++++++ .../srangeabs/benchmark/c/benchmark.length.c | 203 ++++++++++++ .../stats/strided/srangeabs/binding.gyp | 170 ++++++++++ .../stats/strided/srangeabs/docs/repl.txt | 90 ++++++ .../strided/srangeabs/docs/types/index.d.ts | 92 ++++++ .../strided/srangeabs/docs/types/test.ts | 157 ++++++++++ .../strided/srangeabs/examples/c/Makefile | 146 +++++++++ .../strided/srangeabs/examples/c/example.c | 37 +++ .../stats/strided/srangeabs/examples/index.js | 30 ++ .../stats/strided/srangeabs/include.gypi | 53 ++++ .../include/stdlib/stats/strided/srangeabs.h | 45 +++ .../stats/strided/srangeabs/lib/index.js | 68 ++++ .../stats/strided/srangeabs/lib/main.js | 35 +++ .../stats/strided/srangeabs/lib/native.js | 35 +++ .../stats/strided/srangeabs/lib/ndarray.js | 89 ++++++ .../strided/srangeabs/lib/ndarray.native.js | 52 ++++ .../stats/strided/srangeabs/lib/srangeabs.js | 52 ++++ .../strided/srangeabs/lib/srangeabs.native.js | 51 +++ .../stats/strided/srangeabs/manifest.json | 107 +++++++ .../stats/strided/srangeabs/package.json | 83 +++++ .../stats/strided/srangeabs/src/Makefile | 70 +++++ .../stats/strided/srangeabs/src/addon.c | 61 ++++ .../stats/strided/srangeabs/src/main.c | 84 +++++ .../stats/strided/srangeabs/test/test.js | 82 +++++ .../strided/srangeabs/test/test.ndarray.js | 180 +++++++++++ .../srangeabs/test/test.ndarray.native.js | 189 ++++++++++++ .../strided/srangeabs/test/test.srangeabs.js | 184 +++++++++++ .../srangeabs/test/test.srangeabs.native.js | 275 +++++++++++++++++ 33 files changed, 3579 insertions(+) create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/README.md create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/include/stdlib/stats/strided/srangeabs.h create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/lib/ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/lib/srangeabs.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/lib/srangeabs.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/package.json create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.srangeabs.js create mode 100644 lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.srangeabs.native.js diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/README.md b/lib/node_modules/@stdlib/stats/strided/srangeabs/README.md new file mode 100644 index 000000000000..95934919c2c7 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/README.md @@ -0,0 +1,291 @@ + + +# srangeabs + +> Calculate the [range][range] of absolute values of a single-precision floating-point strided array. + +
+ +The [**range**][range] is defined as the difference between the maximum and minimum values. + +
+ + + +
+ +## Usage + +```javascript +var srangeabs = require( '@stdlib/stats/strided/srangeabs' ); +``` + +#### srangeabs( N, x, strideX ) + +Computes the [range][range] of absolute values of a single-precision floating-point strided array `x`. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var x = new Float32Array( [ 1.0, -2.0, 2.0 ] ); + +var v = srangeabs( x.length, x, 1 ); +// returns 1.0 +``` + +The function has the following parameters: + +- **N**: number of indexed elements. +- **x**: input [`Float32Array`][@stdlib/array/float32]. +- **strideX**: index increment for `x`. + +The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to compute the [range][range] of absolute values of every other element in `x`, + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var x = new Float32Array( [ 1.0, 2.0, 2.0, -7.0, -2.0, 3.0, 4.0, 2.0 ] ); + +var v = srangeabs( 4, x, 2 ); +// returns 3.0 +``` + +Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. + + + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var x0 = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] ); +var x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + +var v = srangeabs( 4, x1, 2 ); +// returns 3.0 +``` + +#### srangeabs.ndarray( N, x, strideX, offsetX ) + +Computes the [range][range] of absolute values of a single-precision floating-point strided array using alternative indexing semantics. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var x = new Float32Array( [ 1.0, -2.0, 2.0 ] ); + +var v = srangeabs.ndarray( x.length, x, 1, 0 ); +// returns 1.0 +``` + +The function has the following additional parameters: + +- **offsetX**: starting index for `x`. + +While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to calculate the [range][range] of absolute values for every other element in `x` starting from the second element + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] ); + +var v = srangeabs.ndarray( 4, x, 2, 1 ); +// returns 3.0 +``` + +
+ + + +
+ +## Notes + +- If `N <= 0`, both functions return `NaN`. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var srangeabs = require( '@stdlib/stats/strided/srangeabs' ); + +var x = discreteUniform( 10, -50, 50, { + 'dtype': 'float32' +}); +console.log( x ); + +var v = srangeabs( x.length, x, 1 ); +console.log( v ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/stats/strided/srangeabs.h" +``` + +#### stdlib_strided_srangeabs( N, \*X, strideX ) + +Computes the [range][range] of absolute values of a single-precision floating-point strided array `x`. + +```c +const float x[] = { 1.0f, -2.0f, 3.0f, -4.0f }; + +float v = stdlib_strided_srangeabs( 4, x, 1 ); +// returns 3.0f +``` + +The function accepts the following arguments: + +- **N**: `[in] CBLAS_INT` number of indexed elements. +- **X**: `[in] float*` input array. +- **strideX**: `[in] CBLAS_INT` stride length for `X`. + +```c +float stdlib_strided_srangeabs( const CBLAS_INT N, const float *X, const CBLAS_INT strideX ); +``` + +#### stdlib_strided_srangeabs_ndarray( N, \*X, strideX, offsetX ) + +Computes the [range][range] of absolute values of a single-precision floating-point strided array using alternative indexing semantics. + +```c +const float x[] = { 1.0f, -2.0f, 3.0f, -4.0f }; + +float v = stdlib_strided_srangeabs_ndarray( 4, x, 1, 0 ); +// returns 3.0f +``` + +The function accepts the following arguments: + +- **N**: `[in] CBLAS_INT` number of indexed elements. +- **X**: `[in] float*` input array. +- **strideX**: `[in] CBLAS_INT` stride length for `X`. +- **offsetX**: `[in] CBLAS_INT` starting index for `X`. + +```c +float stdlib_strided_srangeabs_ndarray( const CBLAS_INT N, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/stats/strided/srangeabs.h" +#include + +int main( void ) { + // Create a strided array: + const float x[] = { 1.0f, -2.0f, -3.0f, 4.0f, -5.0f, -6.0f, 7.0f, 8.0f }; + + // Specify the number of elements: + const int N = 4; + + // Specify the stride length: + const int strideX = 2; + + // Compute the range: + float v = stdlib_strided_srangeabs( N, x, strideX ); + + // Print the result: + printf( "range: %f\n", v ); +} +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.js new file mode 100644 index 000000000000..6c52de50459d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.js @@ -0,0 +1,103 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var srangeabs = require( './../lib/srangeabs.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var x = uniform( len, -10.0, 10.0, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + v = srangeabs( x.length, x, 1 ); + if ( isnanf( v ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( v ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.native.js new file mode 100644 index 000000000000..09b8a4f051a4 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.native.js @@ -0,0 +1,108 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var srangeabs = tryRequire( resolve( __dirname, './../lib/srangeabs.native.js' ) ); +var opts = { + 'skip': ( srangeabs instanceof Error ) +}; +var options = { + 'dtype': 'float32' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var x = uniform( len, -10.0, 10.0, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + v = srangeabs( x.length, x, 1 ); + if ( isnanf( v ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( v ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..4cb97c0f607d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.ndarray.js @@ -0,0 +1,103 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var srangeabs = require( './../lib/ndarray.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var x = uniform( len, -10.0, 10.0, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + v = srangeabs( x.length, x, 1, 0 ); + if ( isnanf( v ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( v ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.ndarray.native.js new file mode 100644 index 000000000000..d509eee0d97d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/benchmark.ndarray.native.js @@ -0,0 +1,108 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var srangeabs = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); +var opts = { + 'skip': ( srangeabs instanceof Error ) +}; +var options = { + 'dtype': 'float32' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var x = uniform( len, -10.0, 10.0, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + v = srangeabs( x.length, x, 1, 0 ); + if ( isnanf( v ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( v ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/c/Makefile b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/c/Makefile new file mode 100644 index 000000000000..0756dc7da20a --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := benchmark.length.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/c/benchmark.length.c new file mode 100644 index 000000000000..b9e9e333f343 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/benchmark/c/benchmark.length.c @@ -0,0 +1,203 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/strided/srangeabs.h" +#include +#include +#include +#include +#include + +#define NAME "srangeabs" +#define ITERATIONS 1000000 +#define REPEATS 3 +#define MIN 1 +#define MAX 6 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmarks results. +* +* @param iterations number of iterations +* @param elapsed elapsed time in seconds +*/ +static void print_results( int iterations, double elapsed ) { + double rate = (double)iterations / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", iterations ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +/** +* Generates a random number on the interval [0,1). +* +* @return random number +*/ +static float rand_float( void ) { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +/** +* Runs a benchmark. +* +* @param iterations number of iterations +* @param len array length +* @return elapsed time in seconds +*/ +static double benchmark1( int iterations, int len ) { + double elapsed; + float *x; + float v; + double t; + int i; + + x = (float *)malloc( len * sizeof( float ) ); + + for ( i = 0; i < len; i++ ) { + x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; + } + v = 0.0f; + t = tic(); + for ( i = 0; i < iterations; i++ ) { + // cppcheck-suppress uninitvar + v = stdlib_strided_srangeabs( len, x, 1 ); + if ( v != v ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( v != v ) { + printf( "should not return NaN\n" ); + } + free( x ); + return elapsed; +} + +/** +* Runs a benchmark. +* +* @param iterations number of iterations +* @param len array length +* @return elapsed time in seconds +*/ +static double benchmark2( int iterations, int len ) { + double elapsed; + float *x; + float v; + double t; + int i; + + x = (float *)malloc( len * sizeof( float ) ); + + for ( i = 0; i < len; i++ ) { + x[ i ] = ( rand_float() * 20000.0f ) - 10000.0f; + } + v = 0.0f; + t = tic(); + for ( i = 0; i < iterations; i++ ) { + // cppcheck-suppress uninitvar + v = stdlib_strided_srangeabs_ndarray( len, x, 1, 0 ); + if ( v != v ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( v != v ) { + printf( "should not return NaN\n" ); + } + free( x ); + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int count; + int iter; + int len; + int i; + int j; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + count = 0; + for ( i = MIN; i <= MAX; i++ ) { + len = pow( 10, i ); + iter = ITERATIONS / pow( 10, i-1 ); + for ( j = 0; j < REPEATS; j++ ) { + count += 1; + printf( "# c::%s:len=%d\n", NAME, len ); + elapsed = benchmark1( iter, len ); + print_results( iter, elapsed ); + printf( "ok %d benchmark finished\n", count ); + } + } + for ( i = MIN; i <= MAX; i++ ) { + len = pow( 10, i ); + iter = ITERATIONS / pow( 10, i-1 ); + for ( j = 0; j < REPEATS; j++ ) { + count += 1; + printf( "# c::%s:ndarray:len=%d\n", NAME, len ); + elapsed = benchmark2( iter, len ); + print_results( iter, elapsed ); + printf( "ok %d benchmark finished\n", count ); + } + } + print_summary( count, count ); +} diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/binding.gyp b/lib/node_modules/@stdlib/stats/strided/srangeabs/binding.gyp new file mode 100644 index 000000000000..0d6508a12e99 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/binding.gyp @@ -0,0 +1,170 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A `.gyp` file for building a Node.js native add-on. +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # List of files to include in this file: + 'includes': [ + './include.gypi', + ], + + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Target name should match the add-on export name: + 'addon_target_name%': 'addon', + + # Set variables based on the host OS: + 'conditions': [ + [ + 'OS=="win"', + { + # Define the object file suffix: + 'obj': 'obj', + }, + { + # Define the object file suffix: + 'obj': 'o', + } + ], # end condition (OS=="win") + ], # end conditions + }, # end variables + + # Define compile targets: + 'targets': [ + + # Target to generate an add-on: + { + # The target name should match the add-on export name: + 'target_name': '<(addon_target_name)', + + # Define dependencies: + 'dependencies': [], + + # Define directories which contain relevant include headers: + 'include_dirs': [ + # Local include directory: + '<@(include_dirs)', + ], + + # List of source files: + 'sources': [ + '<@(src_files)', + ], + + # Settings which should be applied when a target's object files are used as linker input: + 'link_settings': { + # Define libraries: + 'libraries': [ + '<@(libraries)', + ], + + # Define library directories: + 'library_dirs': [ + '<@(library_dirs)', + ], + }, + + # C/C++ compiler flags: + 'cflags': [ + # Enable commonly used warning options: + '-Wall', + + # Aggressive optimization: + '-O3', + ], + + # C specific compiler flags: + 'cflags_c': [ + # Specify the C standard to which a program is expected to conform: + '-std=c99', + ], + + # C++ specific compiler flags: + 'cflags_cpp': [ + # Specify the C++ standard to which a program is expected to conform: + '-std=c++11', + ], + + # Linker flags: + 'ldflags': [], + + # Apply conditions based on the host OS: + 'conditions': [ + [ + 'OS=="mac"', + { + # Linker flags: + 'ldflags': [ + '-undefined dynamic_lookup', + '-Wl,-no-pie', + '-Wl,-search_paths_first', + ], + }, + ], # end condition (OS=="mac") + [ + 'OS!="win"', + { + # C/C++ flags: + 'cflags': [ + # Generate platform-independent code: + '-fPIC', + ], + }, + ], # end condition (OS!="win") + ], # end conditions + }, # end target <(addon_target_name) + + # Target to copy a generated add-on to a standard location: + { + 'target_name': 'copy_addon', + + # Declare that the output of this target is not linked: + 'type': 'none', + + # Define dependencies: + 'dependencies': [ + # Require that the add-on be generated before building this target: + '<(addon_target_name)', + ], + + # Define a list of actions: + 'actions': [ + { + 'action_name': 'copy_addon', + 'message': 'Copying addon...', + + # Explicitly list the inputs in the command-line invocation below: + 'inputs': [], + + # Declare the expected outputs: + 'outputs': [ + '<(addon_output_dir)/<(addon_target_name).node', + ], + + # Define the command-line invocation: + 'action': [ + 'cp', + '<(PRODUCT_DIR)/<(addon_target_name).node', + '<(addon_output_dir)/<(addon_target_name).node', + ], + }, + ], # end actions + }, # end target copy_addon + ], # end targets +} diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/repl.txt b/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/repl.txt new file mode 100644 index 000000000000..d1f7187caa39 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/repl.txt @@ -0,0 +1,90 @@ + +{{alias}}( N, x, strideX ) + Computes the range of absolute values of a single-precision + floating-point strided array. + + The `N` and stride parameters determine which elements in the strided array + are accessed at runtime. + + Indexing is relative to the first index. To introduce an offset, use a typed + array view. + + If `N <= 0`, the function returns `NaN`. + + Parameters + ---------- + N: integer + Number of indexed elements. + + x: Float32Array + Input array. + + strideX: integer + Stride length. + + Returns + ------- + out: number + Range of absolute values. + + Examples + -------- + // Standard Usage: + > var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 2.0 ] ); + > {{alias}}( x.length, x, 1 ) + 1.0 + + // Using `N` and stride parameters: + > x = new {{alias:@stdlib/array/float32}}( [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0 ] ); + > {{alias}}( 3, x, 2 ) + 1.0 + + // Using view offsets: + > var x0 = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ] ); + > var x1 = new {{alias:@stdlib/array/float32}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); + > {{alias}}( 3, x1, 2 ) + 1.0 + + +{{alias}}.ndarray( N, x, strideX, offsetX ) + Computes the range of absolute values of a single-precision + floating-point strided array using alternative indexing semantics. + + While typed array views mandate a view offset based on the underlying + buffer, the `offset` parameter supports indexing semantics based on a + starting index. + + Parameters + ---------- + N: integer + Number of indexed elements. + + x: Float32Array + Input array. + + strideX: integer + Stride length. + + offsetX: integer + Starting index. + + Returns + ------- + out: number + Range of absolute values. + + Examples + -------- + // Standard Usage: + > var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 2.0 ] ); + > {{alias}}.ndarray( x.length, x, 1, 0 ) + 1.0 + + // Using offset parameter: + > var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ] ); + > {{alias}}.ndarray( 3, x, 2, 1 ) + 1.0 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/types/index.d.ts new file mode 100644 index 000000000000..02ba897cc7c3 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/types/index.d.ts @@ -0,0 +1,92 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Interface describing `srangeabs`. +*/ +interface Routine { + /** + * Computes the range of absolute values of a single-precision floating-point strided array. + * + * @param N - number of indexed elements + * @param x - input array + * @param strideX - stride length + * @returns range + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var x = new Float32Array( [ 1.0, -2.0, 2.0 ] ); + * + * var v = srangeabs( x.length, x, 1 ); + * // returns 1.0 + */ + ( N: number, x: Float32Array, strideX: number ): number; + + /** + * Computes the range of absolute values of a single-precision floating-point strided array using alternative indexing semantics. + * + * @param N - number of indexed elements + * @param x - input array + * @param strideX - stride length + * @param offsetX - starting index + * @returns range + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var x = new Float32Array( [ 1.0, -2.0, 2.0 ] ); + * + * var v = srangeabs.ndarray( x.length, x, 1, 0 ); + * // returns 1.0 + */ + ndarray( N: number, x: Float32Array, strideX: number, offsetX: number ): number; +} + +/** +* Computes the range of absolute values of a single-precision floating-point strided array. +* +* @param N - number of indexed elements +* @param x - input array +* @param strideX - stride length +* @returns range +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var x = new Float32Array( [ 1.0, -2.0, 2.0 ] ); +* +* var v = srangeabs( x.length, x, 1 ); +* // returns 1.0 +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var x = new Float32Array( [ 1.0, -2.0, 2.0 ] ); +* +* var v = srangeabs.ndarray( x.length, x, 1, 0 ); +* // returns 1.0 +*/ +declare var srangeabs: Routine; + + +// EXPORTS // + +export = srangeabs; diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/types/test.ts b/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/types/test.ts new file mode 100644 index 000000000000..81057db9946d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/docs/types/test.ts @@ -0,0 +1,157 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import srangeabs = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + const x = new Float32Array( 10 ); + + srangeabs( x.length, x, 1 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a first argument which is not a number... +{ + const x = new Float32Array( 10 ); + + srangeabs( '10', x, 1 ); // $ExpectError + srangeabs( true, x, 1 ); // $ExpectError + srangeabs( false, x, 1 ); // $ExpectError + srangeabs( null, x, 1 ); // $ExpectError + srangeabs( undefined, x, 1 ); // $ExpectError + srangeabs( [], x, 1 ); // $ExpectError + srangeabs( {}, x, 1 ); // $ExpectError + srangeabs( ( x: number ): number => x, x, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a Float32Array... +{ + const x = new Float32Array( 10 ); + + srangeabs( x.length, 10, 1 ); // $ExpectError + srangeabs( x.length, '10', 1 ); // $ExpectError + srangeabs( x.length, true, 1 ); // $ExpectError + srangeabs( x.length, false, 1 ); // $ExpectError + srangeabs( x.length, null, 1 ); // $ExpectError + srangeabs( x.length, undefined, 1 ); // $ExpectError + srangeabs( x.length, [], 1 ); // $ExpectError + srangeabs( x.length, {}, 1 ); // $ExpectError + srangeabs( x.length, ( x: number ): number => x, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a number... +{ + const x = new Float32Array( 10 ); + + srangeabs( x.length, x, '10' ); // $ExpectError + srangeabs( x.length, x, true ); // $ExpectError + srangeabs( x.length, x, false ); // $ExpectError + srangeabs( x.length, x, null ); // $ExpectError + srangeabs( x.length, x, undefined ); // $ExpectError + srangeabs( x.length, x, [] ); // $ExpectError + srangeabs( x.length, x, {} ); // $ExpectError + srangeabs( x.length, x, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = new Float32Array( 10 ); + + srangeabs(); // $ExpectError + srangeabs( x.length ); // $ExpectError + srangeabs( x.length, x ); // $ExpectError + srangeabs( x.length, x, 1, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a number... +{ + const x = new Float32Array( 10 ); + + srangeabs.ndarray( x.length, x, 1, 0 ); // $ExpectType number +} + +// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number... +{ + const x = new Float32Array( 10 ); + + srangeabs.ndarray( '10', x, 1, 0 ); // $ExpectError + srangeabs.ndarray( true, x, 1, 0 ); // $ExpectError + srangeabs.ndarray( false, x, 1, 0 ); // $ExpectError + srangeabs.ndarray( null, x, 1, 0 ); // $ExpectError + srangeabs.ndarray( undefined, x, 1, 0 ); // $ExpectError + srangeabs.ndarray( [], x, 1, 0 ); // $ExpectError + srangeabs.ndarray( {}, x, 1, 0 ); // $ExpectError + srangeabs.ndarray( ( x: number ): number => x, x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a second argument which is not a Float32Array... +{ + const x = new Float32Array( 10 ); + + srangeabs.ndarray( x.length, 10, 1, 0 ); // $ExpectError + srangeabs.ndarray( x.length, '10', 1, 0 ); // $ExpectError + srangeabs.ndarray( x.length, true, 1, 0 ); // $ExpectError + srangeabs.ndarray( x.length, false, 1, 0 ); // $ExpectError + srangeabs.ndarray( x.length, null, 1, 0 ); // $ExpectError + srangeabs.ndarray( x.length, undefined, 1, 0 ); // $ExpectError + srangeabs.ndarray( x.length, [], 1, 0 ); // $ExpectError + srangeabs.ndarray( x.length, {}, 1, 0 ); // $ExpectError + srangeabs.ndarray( x.length, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number... +{ + const x = new Float32Array( 10 ); + + srangeabs.ndarray( x.length, x, '10', 0 ); // $ExpectError + srangeabs.ndarray( x.length, x, true, 0 ); // $ExpectError + srangeabs.ndarray( x.length, x, false, 0 ); // $ExpectError + srangeabs.ndarray( x.length, x, null, 0 ); // $ExpectError + srangeabs.ndarray( x.length, x, undefined, 0 ); // $ExpectError + srangeabs.ndarray( x.length, x, [], 0 ); // $ExpectError + srangeabs.ndarray( x.length, x, {}, 0 ); // $ExpectError + srangeabs.ndarray( x.length, x, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number... +{ + const x = new Float32Array( 10 ); + + srangeabs.ndarray( x.length, x, 1, '10' ); // $ExpectError + srangeabs.ndarray( x.length, x, 1, true ); // $ExpectError + srangeabs.ndarray( x.length, x, 1, false ); // $ExpectError + srangeabs.ndarray( x.length, x, 1, null ); // $ExpectError + srangeabs.ndarray( x.length, x, 1, undefined ); // $ExpectError + srangeabs.ndarray( x.length, x, 1, [] ); // $ExpectError + srangeabs.ndarray( x.length, x, 1, {} ); // $ExpectError + srangeabs.ndarray( x.length, x, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const x = new Float32Array( 10 ); + + srangeabs.ndarray(); // $ExpectError + srangeabs.ndarray( x.length ); // $ExpectError + srangeabs.ndarray( x.length, x ); // $ExpectError + srangeabs.ndarray( x.length, x, 1 ); // $ExpectError + srangeabs.ndarray( x.length, x, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/c/Makefile b/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/c/Makefile new file mode 100644 index 000000000000..c8f8e9a1517b --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := example.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled examples. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/c/example.c b/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/c/example.c new file mode 100644 index 000000000000..ebab50304c9b --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/c/example.c @@ -0,0 +1,37 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/strided/srangeabs.h" +#include + +int main( void ) { + // Create a strided array: + const float x[] = { 1.0f, -2.0f, -3.0f, 4.0f, -5.0f, -6.0f, 7.0f, 8.0f }; + + // Specify the number of elements: + const int N = 4; + + // Specify the stride length: + const int strideX = 2; + + // Compute the range: + float v = stdlib_strided_srangeabs( N, x, strideX ); + + // Print the result: + printf( "range: %f\n", v ); +} diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/index.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/index.js new file mode 100644 index 000000000000..93129612694f --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/examples/index.js @@ -0,0 +1,30 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var srangeabs = require( './../lib' ); + +var x = discreteUniform( 10, -50, 50, { + 'dtype': 'float32' +}); +console.log( x ); + +var v = srangeabs( x.length, x, 1 ); +console.log( v ); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/include.gypi b/lib/node_modules/@stdlib/stats/strided/srangeabs/include.gypi new file mode 100644 index 000000000000..bee8d41a2caf --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A GYP include file for building a Node.js native add-on. +# +# Main documentation: +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Source directory: + 'src_dir': './src', + + # Include directories: + 'include_dirs': [ + ' max ) { + max = v; + } + } + return float64ToFloat32( max - min ); +} + + +// EXPORTS // + +module.exports = srangeabs; diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/ndarray.native.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/ndarray.native.js new file mode 100644 index 000000000000..f247781c679d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/ndarray.native.js @@ -0,0 +1,52 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var addon = require( './../src/addon.node' ); + + +// MAIN // + +/** +* Computes the range of absolute values of a single-precision floating-point strided array. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {Float32Array} x - input array +* @param {integer} strideX - stride length +* @param {NonNegativeInteger} offsetX - starting index +* @returns {number} range +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] ); +* +* var v = srangeabs( 4, x, 2, 1 ); +* // returns 3.0 +*/ +function srangeabs( N, x, strideX, offsetX ) { + return addon.ndarray( N, x, strideX, offsetX ); +} + + +// EXPORTS // + +module.exports = srangeabs; diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/srangeabs.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/srangeabs.js new file mode 100644 index 000000000000..93673838a7d5 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/srangeabs.js @@ -0,0 +1,52 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var stride2offset = require( '@stdlib/strided/base/stride2offset' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +/** +* Computes the range of absolute values of a single-precision floating-point strided array. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {Float32Array} x - input array +* @param {integer} strideX - stride length +* @returns {number} range +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var x = new Float32Array( [ 1.0, -2.0, 2.0 ] ); +* +* var v = srangeabs( x.length, x, 1 ); +* // returns 1.0 +*/ +function srangeabs( N, x, strideX ) { + return ndarray( N, x, strideX, stride2offset( N, strideX ) ); +} + + +// EXPORTS // + +module.exports = srangeabs; diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/srangeabs.native.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/srangeabs.native.js new file mode 100644 index 000000000000..9700ee159c80 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/lib/srangeabs.native.js @@ -0,0 +1,51 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var addon = require( './../src/addon.node' ); + + +// MAIN // + +/** +* Computes the range of absolute values of a single-precision floating-point strided array. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {Float32Array} x - input array +* @param {integer} strideX - stride length +* @returns {number} range +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var x = new Float32Array( [ 1.0, -2.0, 2.0 ] ); +* +* var v = srangeabs( x.length, x, 1 ); +* // returns 1.0 +*/ +function srangeabs( N, x, strideX ) { + return addon( N, x, strideX ); +} + + +// EXPORTS // + +module.exports = srangeabs; diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/manifest.json b/lib/node_modules/@stdlib/stats/strided/srangeabs/manifest.json new file mode 100644 index 000000000000..ffaba2ab991d --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/manifest.json @@ -0,0 +1,107 @@ +{ + "options": { + "task": "build", + "wasm": false + }, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": true + }, + { + "field": "include", + "resolve": true, + "relative": true + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "task": "build", + "wasm": false, + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset", + "@stdlib/math/base/assert/is-nanf", + "@stdlib/math/base/special/absf", + "@stdlib/napi/export", + "@stdlib/napi/argv", + "@stdlib/napi/argv-int64", + "@stdlib/napi/argv-strided-float32array", + "@stdlib/napi/create-double" + ] + }, + { + "task": "benchmark", + "wasm": false, + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset", + "@stdlib/math/base/assert/is-nanf", + "@stdlib/math/base/special/absf" + ] + }, + { + "task": "examples", + "wasm": false, + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset", + "@stdlib/math/base/assert/is-nanf", + "@stdlib/math/base/special/absf" + ] + }, + { + "task": "", + "wasm": true, + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/blas/base/shared", + "@stdlib/strided/base/stride2offset", + "@stdlib/math/base/assert/is-nanf", + "@stdlib/math/base/special/absf" + ] + } + ] +} diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/package.json b/lib/node_modules/@stdlib/stats/strided/srangeabs/package.json new file mode 100644 index 000000000000..42fb01a56e92 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/package.json @@ -0,0 +1,83 @@ +{ + "name": "@stdlib/stats/strided/srangeabs", + "version": "0.0.0", + "description": "Calculate the range of absolute values of a single-precision floating-point strided array.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "browser": "./lib/main.js", + "gypfile": true, + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "include": "./include", + "lib": "./lib", + "src": "./src", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "statistics", + "stats", + "mathematics", + "math", + "maximum", + "max", + "minimum", + "min", + "range", + "absolute", + "abs", + "extremes", + "domain", + "extent", + "dispersion", + "strided", + "strided array", + "typed", + "array", + "float32", + "float", + "single", + "float32array" + ], + "__stdlib__": {} +} diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/src/Makefile b/lib/node_modules/@stdlib/stats/strided/srangeabs/src/Makefile new file mode 100644 index 000000000000..2caf905cedbe --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/src/Makefile @@ -0,0 +1,70 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + + +# RULES # + +#/ +# Removes generated files for building an add-on. +# +# @example +# make clean-addon +#/ +clean-addon: + $(QUIET) -rm -f *.o *.node + +.PHONY: clean-addon + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: clean-addon + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/src/addon.c b/lib/node_modules/@stdlib/stats/strided/srangeabs/src/addon.c new file mode 100644 index 000000000000..a2f508748039 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/src/addon.c @@ -0,0 +1,61 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/strided/srangeabs.h" +#include "stdlib/blas/base/shared.h" +#include "stdlib/napi/export.h" +#include "stdlib/napi/argv.h" +#include "stdlib/napi/argv_int64.h" +#include "stdlib/napi/argv_strided_float32array.h" +#include "stdlib/napi/create_double.h" +#include + +/** +* Receives JavaScript callback invocation data. +* +* @param env environment under which the function is invoked +* @param info callback data +* @return Node-API value +*/ +static napi_value addon( napi_env env, napi_callback_info info ) { + STDLIB_NAPI_ARGV( env, info, argv, argc, 3 ); + STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 ); + STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 ); + STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 ); + STDLIB_NAPI_CREATE_DOUBLE( env, (double)API_SUFFIX(stdlib_strided_srangeabs)( N, X, strideX ), v ); + return v; +} + +/** +* Receives JavaScript callback invocation data. +* +* @param env environment under which the function is invoked +* @param info callback data +* @return Node-API value +*/ +static napi_value addon_method( napi_env env, napi_callback_info info ) { + STDLIB_NAPI_ARGV( env, info, argv, argc, 4 ); + STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 ); + STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 ); + STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 3 ); + STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 ); + STDLIB_NAPI_CREATE_DOUBLE( env, (double)API_SUFFIX(stdlib_strided_srangeabs_ndarray)( N, X, strideX, offsetX ), v ); + return v; +} + +STDLIB_NAPI_MODULE_EXPORT_FCN_WITH_METHOD( addon, "ndarray", addon_method ) diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/src/main.c b/lib/node_modules/@stdlib/stats/strided/srangeabs/src/main.c new file mode 100644 index 000000000000..8a92cc89acf8 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/src/main.c @@ -0,0 +1,84 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/strided/srangeabs.h" +#include "stdlib/math/base/assert/is_nanf.h" +#include "stdlib/blas/base/shared.h" +#include "stdlib/strided/base/stride2offset.h" +#include "stdlib/math/base/special/absf.h" + +/** +* Computes the range of absolute values of a single-precision floating-point strided array. +* +* @param N number of indexed elements +* @param X input array +* @param strideX stride length +* @return output value +*/ +float API_SUFFIX(stdlib_strided_srangeabs)( const CBLAS_INT N, const float *X, const CBLAS_INT strideX ) { + const CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX ); + return API_SUFFIX(stdlib_strided_srangeabs_ndarray)( N, X, strideX, ox ); +} + +/** +* Computes the range of absolute values of a single-precision floating-point strided array using alternative indexing semantics. +* +* @param N number of indexed elements +* @param X input array +* @param strideX stride length +* @param offsetX starting index for X +* @return output value +*/ +float API_SUFFIX(stdlib_strided_srangeabs_ndarray)( const CBLAS_INT N, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) { + CBLAS_INT ix; + CBLAS_INT i; + float max; + float min; + float v; + + if ( N <= 0 ) { + return 0.0f / 0.0f; // NaN + } + if ( N == 1 || strideX == 0 ) { + if ( stdlib_base_is_nanf( X[ offsetX ] ) ) { + return X[ offsetX ]; + } + return 0.0f; + } + ix = offsetX; + v = X[ ix ]; + if ( stdlib_base_is_nanf( v ) ) { + return v; + } + min = stdlib_base_absf( v ); + max = min; + for ( i = 1; i < N; i++ ) { + ix += strideX; + v = X[ ix ]; + if ( stdlib_base_is_nanf( v ) ) { + return v; + } + v = stdlib_base_absf( v ); + if ( v < min ) { + min = v; + } else if ( v > max ) { + max = v; + } + } + return max - min; +} diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.js new file mode 100644 index 000000000000..43e238454f35 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.js @@ -0,0 +1,82 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var proxyquire = require( 'proxyquire' ); +var IS_BROWSER = require( '@stdlib/assert/is-browser' ); +var srangeabs = require( './../lib' ); + + +// VARIABLES // + +var opts = { + 'skip': IS_BROWSER +}; + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof srangeabs, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'attached to the main export is a method providing an ndarray interface', function test( t ) { + t.strictEqual( typeof srangeabs.ndarray, 'function', 'method is a function' ); + t.end(); +}); + +tape( 'if a native implementation is available, the main export is the native implementation', opts, function test( t ) { + var srangeabs = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( srangeabs, mock, 'returns expected value' ); + t.end(); + + function tryRequire() { + return mock; + } + + function mock() { + // Mock... + } +}); + +tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) { + var srangeabs; + var main; + + main = require( './../lib/srangeabs.js' ); + + srangeabs = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( srangeabs, main, 'returns expected value' ); + t.end(); + + function tryRequire() { + return new Error( 'Cannot find module' ); + } +}); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.ndarray.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.ndarray.js new file mode 100644 index 000000000000..84072e350c57 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.ndarray.js @@ -0,0 +1,180 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); +var Float32Array = require( '@stdlib/array/float32' ); +var srangeabs = require( './../lib/ndarray.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof srangeabs, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 4', function test( t ) { + t.strictEqual( srangeabs.length, 4, 'has expected arity' ); + t.end(); +}); + +tape( 'the function calculates the range of absolute values of a strided array', function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 0.0, 3.0 ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( v, 5.0, 'returns expected value' ); + + x = new Float32Array( [ -4.0, -5.0 ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( v, 1.0, 'returns expected value' ); + + x = new Float32Array( [ -0.0, 0.0, -0.0 ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); + + x = new Float32Array( [ NaN ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + x = new Float32Array( [ NaN, NaN ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `NaN`', function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 0, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + v = srangeabs( -1, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided an `N` parameter equal to `1`, the function returns `0` or `NaN`', function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 1, x, 1, 0 ); + t.strictEqual( v, 0.0, 'returns expected value' ); + + x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 1, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `stride` parameter', function test( t ) { + var x; + var v; + + x = new Float32Array([ + 1.0, // 0 + 2.0, + 2.0, // 1 + -7.0, + -2.0, // 2 + 3.0, + 4.0, // 3 + 2.0 + ]); + + v = srangeabs( 4, x, 2, 0 ); + + t.strictEqual( v, 3.0, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative `stride` parameter', function test( t ) { + var x; + var v; + + x = new Float32Array([ + 1.0, // 3 + 2.0, + 2.0, // 2 + -7.0, + -2.0, // 1 + 3.0, + 4.0, // 0 + 2.0 + ]); + + v = srangeabs( 4, x, -2, 6 ); + + t.strictEqual( v, 3.0, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a `stride` parameter equal to `0`, the function returns `0` or `NaN`', function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( x.length, x, 0, 0 ); + t.strictEqual( v, 0.0, 'returns expected value' ); + + x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( x.length, x, 0, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `offset` parameter', function test( t ) { + var x; + var v; + + x = new Float32Array([ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0 // 3 + ]); + + v = srangeabs( 4, x, 2, 1 ); + t.strictEqual( v, 3.0, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.ndarray.native.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.ndarray.native.js new file mode 100644 index 000000000000..e783aaea454c --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.ndarray.native.js @@ -0,0 +1,189 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); +var Float32Array = require( '@stdlib/array/float32' ); +var tryRequire = require( '@stdlib/utils/try-require' ); + + +// VARIABLES // + +var srangeabs = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) ); +var opts = { + 'skip': ( srangeabs instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof srangeabs, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 4', opts, function test( t ) { + t.strictEqual( srangeabs.length, 4, 'has expected arity' ); + t.end(); +}); + +tape( 'the function calculates the range of absolute values of a strided array', opts, function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 0.0, 3.0 ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( v, 5.0, 'returns expected value' ); + + x = new Float32Array( [ -4.0, -5.0 ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( v, 1.0, 'returns expected value' ); + + x = new Float32Array( [ -0.0, 0.0, -0.0 ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); + + x = new Float32Array( [ NaN ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + x = new Float32Array( [ NaN, NaN ] ); + v = srangeabs( x.length, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `NaN`', opts, function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 0, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + v = srangeabs( -1, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided an `N` parameter equal to `1`, the function returns `0` or `NaN`', opts, function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 1, x, 1, 0 ); + t.strictEqual( v, 0.0, 'returns expected value' ); + + x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 1, x, 1, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `stride` parameter', opts, function test( t ) { + var x; + var v; + + x = new Float32Array([ + 1.0, // 0 + 2.0, + 2.0, // 1 + -7.0, + -2.0, // 2 + 3.0, + 4.0, // 3 + 2.0 + ]); + + v = srangeabs( 4, x, 2, 0 ); + + t.strictEqual( v, 3.0, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative `stride` parameter', opts, function test( t ) { + var x; + var v; + + x = new Float32Array([ + 1.0, // 3 + 2.0, + 2.0, // 2 + -7.0, + -2.0, // 1 + 3.0, + 4.0, // 0 + 2.0 + ]); + + v = srangeabs( 4, x, -2, 6 ); + + t.strictEqual( v, 3.0, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a `stride` parameter equal to `0`, the function returns `0` or `NaN`', opts, function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( x.length, x, 0, 0 ); + t.strictEqual( v, 0.0, 'returns expected value' ); + + x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( x.length, x, 0, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `offset` parameter', opts, function test( t ) { + var x; + var v; + + x = new Float32Array([ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0 // 3 + ]); + + v = srangeabs( 4, x, 2, 1 ); + t.strictEqual( v, 3.0, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.srangeabs.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.srangeabs.js new file mode 100644 index 000000000000..4bbc3a4bcd41 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.srangeabs.js @@ -0,0 +1,184 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); +var Float32Array = require( '@stdlib/array/float32' ); +var srangeabs = require( './../lib/srangeabs.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof srangeabs, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 3', function test( t ) { + t.strictEqual( srangeabs.length, 3, 'has expected arity' ); + t.end(); +}); + +tape( 'the function calculates the range of absolute values of a strided array', function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 0.0, 3.0 ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( v, 5.0, 'returns expected value' ); + + x = new Float32Array( [ -4.0, -5.0 ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( v, 1.0, 'returns expected value' ); + + x = new Float32Array( [ -0.0, 0.0, -0.0 ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); + + x = new Float32Array( [ NaN ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + x = new Float32Array( [ NaN, NaN ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `NaN`', function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 0, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + v = srangeabs( -1, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided an `N` parameter equal to `1`, the function returns `0` or `NaN`', function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 1, x, 1 ); + t.strictEqual( v, 0.0, 'returns expected value' ); + + x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 1, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `stride` parameter', function test( t ) { + var x; + var v; + + x = new Float32Array([ + 1.0, // 0 + 2.0, + 2.0, // 1 + -7.0, + -2.0, // 2 + 3.0, + 4.0, // 3 + 2.0 + ]); + + v = srangeabs( 4, x, 2 ); + + t.strictEqual( v, 3.0, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative `stride` parameter', function test( t ) { + var x; + var v; + + x = new Float32Array([ + 1.0, // 3 + 2.0, + 2.0, // 2 + -7.0, + -2.0, // 1 + 3.0, + 4.0, // 0 + 2.0 + ]); + + v = srangeabs( 4, x, -2 ); + + t.strictEqual( v, 3.0, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a `stride` parameter equal to `0`, the function returns `0` or `NaN`', function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected value' ); + + x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( x.length, x, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports view offsets', function test( t ) { + var x0; + var x1; + var v; + + x0 = new Float32Array([ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0, // 3 + 6.0 + ]); + + x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + + v = srangeabs( 4, x1, 2 ); + t.strictEqual( v, 3.0, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.srangeabs.native.js b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.srangeabs.native.js new file mode 100644 index 000000000000..d4447cb310bc --- /dev/null +++ b/lib/node_modules/@stdlib/stats/strided/srangeabs/test/test.srangeabs.native.js @@ -0,0 +1,275 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); +var Float32Array = require( '@stdlib/array/float32' ); +var tryRequire = require( '@stdlib/utils/try-require' ); + + +// VARIABLES // + +var srangeabs = tryRequire( resolve( __dirname, './../lib/srangeabs.native.js' ) ); +var opts = { + 'skip': ( srangeabs instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof srangeabs, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 3', opts, function test( t ) { + t.strictEqual( srangeabs.length, 3, 'has expected arity' ); + t.end(); +}); + +tape( 'the function throws an error if provided a first argument which is not a number', opts, function test( t ) { + var values; + var i; + + values = [ + '5', + true, + false, + null, + void 0, + [], + {}, + function noop() {} + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + srangeabs( value, new Float32Array( 10 ), 1 ); + }; + } +}); + +tape( 'the function throws an error if provided a second argument which is not a Float32Array', opts, function test( t ) { + var values; + var i; + + values = [ + '5', + 5, + true, + false, + null, + void 0, + [], + {}, + function noop() {} + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + srangeabs( 10, value, 1 ); + }; + } +}); + +tape( 'the function throws an error if provided a third argument which is not a number', opts, function test( t ) { + var values; + var i; + + values = [ + '5', + true, + false, + null, + void 0, + [], + {}, + function noop() {} + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + srangeabs( 10, new Float32Array( 10 ), value ); + }; + } +}); + +tape( 'the function calculates the range of absolute values of a strided array', opts, function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 0.0, 3.0 ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( v, 5.0, 'returns expected value' ); + + x = new Float32Array( [ -4.0, -5.0 ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( v, 1.0, 'returns expected value' ); + + x = new Float32Array( [ -0.0, 0.0, -0.0 ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); + + x = new Float32Array( [ NaN ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + x = new Float32Array( [ NaN, NaN ] ); + v = srangeabs( x.length, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `NaN`', opts, function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 0, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + v = srangeabs( -1, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided an `N` parameter equal to `1`, the function returns `0` or `NaN`', opts, function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 1, x, 1 ); + t.strictEqual( v, 0.0, 'returns expected value' ); + + x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( 1, x, 1 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `stride` parameter', opts, function test( t ) { + var x; + var v; + + x = new Float32Array([ + 1.0, // 0 + 2.0, + 2.0, // 1 + -7.0, + -2.0, // 2 + 3.0, + 4.0, // 3 + 2.0 + ]); + + v = srangeabs( 4, x, 2 ); + + t.strictEqual( v, 3.0, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative `stride` parameter', opts, function test( t ) { + var x; + var v; + + x = new Float32Array([ + 1.0, // 3 + 2.0, + 2.0, // 2 + -7.0, + -2.0, // 1 + 3.0, + 4.0, // 0 + 2.0 + ]); + + v = srangeabs( 4, x, -2 ); + + t.strictEqual( v, 3.0, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a `stride` parameter equal to `0`, the function returns `0` or `NaN`', opts, function test( t ) { + var x; + var v; + + x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected value' ); + + x = new Float32Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] ); + + v = srangeabs( x.length, x, 0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports view offsets', opts, function test( t ) { + var x0; + var x1; + var v; + + x0 = new Float32Array([ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0, // 3 + 6.0 + ]); + + x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + + v = srangeabs( 4, x1, 2 ); + t.strictEqual( v, 3.0, 'returns expected value' ); + + t.end(); +}); From 442a7bd488c5e25635b1011e3b1eb536fc5746e1 Mon Sep 17 00:00:00 2001 From: Lokesh Ranjan Date: Thu, 22 Jan 2026 11:33:15 +0530 Subject: [PATCH 16/19] feat: add `stats/base/dists/halfnormal/mode` PR-URL: https://github.com/stdlib-js/stdlib/pull/9705 Ref: https://github.com/stdlib-js/stdlib/issues/9416 Co-authored-by: Philipp Burckhardt Reviewed-by: Philipp Burckhardt Signed-off-by: Lokesh Ranjan --- .../base/dists/halfnormal/mode/README.md | 234 ++++++++++++++++++ .../halfnormal/mode/benchmark/benchmark.js | 55 ++++ .../mode/benchmark/benchmark.native.js | 64 +++++ .../halfnormal/mode/benchmark/c/Makefile | 146 +++++++++++ .../halfnormal/mode/benchmark/c/benchmark.c | 138 +++++++++++ .../base/dists/halfnormal/mode/binding.gyp | 170 +++++++++++++ .../base/dists/halfnormal/mode/docs/repl.txt | 32 +++ .../halfnormal/mode/docs/types/index.d.ts | 52 ++++ .../dists/halfnormal/mode/docs/types/test.ts | 42 ++++ .../dists/halfnormal/mode/examples/c/Makefile | 146 +++++++++++ .../halfnormal/mode/examples/c/example.c | 38 +++ .../dists/halfnormal/mode/examples/index.js | 30 +++ .../base/dists/halfnormal/mode/include.gypi | 53 ++++ .../stdlib/stats/base/dists/halfnormal/mode.h | 38 +++ .../base/dists/halfnormal/mode/lib/index.js | 43 ++++ .../base/dists/halfnormal/mode/lib/main.js | 63 +++++ .../base/dists/halfnormal/mode/lib/native.js | 58 +++++ .../base/dists/halfnormal/mode/manifest.json | 76 ++++++ .../base/dists/halfnormal/mode/package.json | 69 ++++++ .../base/dists/halfnormal/mode/src/Makefile | 70 ++++++ .../base/dists/halfnormal/mode/src/addon.c | 22 ++ .../base/dists/halfnormal/mode/src/main.c | 40 +++ .../mode/test/fixtures/julia/REQUIRE | 3 + .../mode/test/fixtures/julia/data.json | 1 + .../mode/test/fixtures/julia/runner.jl | 55 ++++ .../base/dists/halfnormal/mode/test/test.js | 77 ++++++ .../dists/halfnormal/mode/test/test.native.js | 85 +++++++ 27 files changed, 1900 insertions(+) create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/README.md create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/c/benchmark.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/include/stdlib/stats/base/dists/halfnormal/mode.h create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/package.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/REQUIRE create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/data.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/runner.jl create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/test.native.js diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/README.md b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/README.md new file mode 100644 index 000000000000..fcef5d8202d2 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/README.md @@ -0,0 +1,234 @@ + + +# Mode + +> [half-normal][half-normal-distribution] distribution [mode][mode]. + + + +
+ +The [mode][mode] for a [half-normal][half-normal-distribution] random variable with scale parameter `σ > 0` is + + + +```math +\mathop{\mathrm{mode}}\left( X \right) = 0 +``` + + + + + +
+ + + + + +
+ +## Usage + +```javascript +var mode = require( '@stdlib/stats/base/dists/halfnormal/mode' ); +``` + +#### mode( sigma ) + +Returns the [mode][mode] for a [half-normal][half-normal-distribution] distribution with scale parameter `sigma`. + +```javascript +var y = mode( 1.0 ); +// returns 0.0 + +y = mode( 2.0 ); +// returns 0.0 +``` + +If provided `NaN` as any argument, the function returns `NaN`. + +```javascript +var y = mode( NaN ); +// returns NaN +``` + +If provided `sigma <= 0`, the function returns `NaN`. + +```javascript +var y = mode( 0.0 ); +// returns NaN + +y = mode( -1.0 ); +// returns NaN +``` + +
+ + + + + +
+ +
+ + + + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var mode = require( '@stdlib/stats/base/dists/halfnormal/mode' ); + +var opts = { + 'dtype': 'float64' +}; +var sigma = uniform( 10, 0.0, 20.0, opts ); + +logEachMap( 'σ: %0.4f, mode(X;σ): %0.4f', sigma, mode ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/stats/base/dists/halfnormal/mode.h" +``` + +#### stdlib_base_dists_halfnormal_mode( sigma ) + +Returns the mode for a [half-normal][half-normal-distribution] distribution with scale parameter `sigma`. + +```c +double out = stdlib_base_dists_halfnormal_mode( 1.0 ); +// returns 0.0 +``` + +The function accepts the following arguments: + +- **sigma**: `[in] double` scale parameter. + +```c +double stdlib_base_dists_halfnormal_mode( const double sigma ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/stats/base/dists/halfnormal/mode.h" +#include +#include + +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +int main( void ) { + double sigma; + double y; + int i; + + for ( i = 0; i < 10; i++ ) { + sigma = random_uniform( 0.1, 20.0 ); + y = stdlib_base_dists_halfnormal_mode( sigma ); + printf( "σ: %lf, mode(X;σ): %lf\n", sigma, y ); + } +} +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/benchmark.js new file mode 100644 index 000000000000..5a46bc0b6b3e --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/benchmark.js @@ -0,0 +1,55 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var pkg = require( './../package.json' ).name; +var mode = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var sigma; + var len; + var y; + var i; + + len = 100; + sigma = uniform( len, EPS, 20.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = mode( sigma[ i % len ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/benchmark.native.js new file mode 100644 index 000000000000..f66312bd0d86 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/benchmark.native.js @@ -0,0 +1,64 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var EPS = require( '@stdlib/constants/float64/eps' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var mode = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( mode instanceof Error ) +}; + + +// MAIN // + +bench( pkg+'::native', opts, function benchmark( b ) { + var sigma; + var len; + var y; + var i; + + len = 100; + sigma = uniform( len, EPS, 20.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = mode( sigma[ i % len ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/c/Makefile new file mode 100644 index 000000000000..979768abbcec --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := benchmark.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/c/benchmark.c new file mode 100644 index 000000000000..6aa32c0855a4 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/benchmark/c/benchmark.c @@ -0,0 +1,138 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/mode.h" +#include +#include +#include +#include +#include + +#define NAME "halfnormal-mode" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmarks results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +/** +* Generates a random number on the interval [min,max). +* +* @param min minimum value (inclusive) +* @param max maximum value (exclusive) +* @return random number +*/ +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + double sigma[ 100 ]; + double elapsed; + double y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + sigma[ i ] = random_uniform( 0.1, 10.0 ); + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_dists_halfnormal_mode( sigma[ i%100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y != y ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/binding.gyp b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/binding.gyp new file mode 100644 index 000000000000..0d6508a12e99 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/binding.gyp @@ -0,0 +1,170 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A `.gyp` file for building a Node.js native add-on. +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # List of files to include in this file: + 'includes': [ + './include.gypi', + ], + + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Target name should match the add-on export name: + 'addon_target_name%': 'addon', + + # Set variables based on the host OS: + 'conditions': [ + [ + 'OS=="win"', + { + # Define the object file suffix: + 'obj': 'obj', + }, + { + # Define the object file suffix: + 'obj': 'o', + } + ], # end condition (OS=="win") + ], # end conditions + }, # end variables + + # Define compile targets: + 'targets': [ + + # Target to generate an add-on: + { + # The target name should match the add-on export name: + 'target_name': '<(addon_target_name)', + + # Define dependencies: + 'dependencies': [], + + # Define directories which contain relevant include headers: + 'include_dirs': [ + # Local include directory: + '<@(include_dirs)', + ], + + # List of source files: + 'sources': [ + '<@(src_files)', + ], + + # Settings which should be applied when a target's object files are used as linker input: + 'link_settings': { + # Define libraries: + 'libraries': [ + '<@(libraries)', + ], + + # Define library directories: + 'library_dirs': [ + '<@(library_dirs)', + ], + }, + + # C/C++ compiler flags: + 'cflags': [ + # Enable commonly used warning options: + '-Wall', + + # Aggressive optimization: + '-O3', + ], + + # C specific compiler flags: + 'cflags_c': [ + # Specify the C standard to which a program is expected to conform: + '-std=c99', + ], + + # C++ specific compiler flags: + 'cflags_cpp': [ + # Specify the C++ standard to which a program is expected to conform: + '-std=c++11', + ], + + # Linker flags: + 'ldflags': [], + + # Apply conditions based on the host OS: + 'conditions': [ + [ + 'OS=="mac"', + { + # Linker flags: + 'ldflags': [ + '-undefined dynamic_lookup', + '-Wl,-no-pie', + '-Wl,-search_paths_first', + ], + }, + ], # end condition (OS=="mac") + [ + 'OS!="win"', + { + # C/C++ flags: + 'cflags': [ + # Generate platform-independent code: + '-fPIC', + ], + }, + ], # end condition (OS!="win") + ], # end conditions + }, # end target <(addon_target_name) + + # Target to copy a generated add-on to a standard location: + { + 'target_name': 'copy_addon', + + # Declare that the output of this target is not linked: + 'type': 'none', + + # Define dependencies: + 'dependencies': [ + # Require that the add-on be generated before building this target: + '<(addon_target_name)', + ], + + # Define a list of actions: + 'actions': [ + { + 'action_name': 'copy_addon', + 'message': 'Copying addon...', + + # Explicitly list the inputs in the command-line invocation below: + 'inputs': [], + + # Declare the expected outputs: + 'outputs': [ + '<(addon_output_dir)/<(addon_target_name).node', + ], + + # Define the command-line invocation: + 'action': [ + 'cp', + '<(PRODUCT_DIR)/<(addon_target_name).node', + '<(addon_output_dir)/<(addon_target_name).node', + ], + }, + ], # end actions + }, # end target copy_addon + ], # end targets +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/repl.txt new file mode 100644 index 000000000000..fd7fb6dd91bb --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/repl.txt @@ -0,0 +1,32 @@ + +{{alias}}( σ ) + Returns the mode of a half-normal distribution with scale parameter `σ`. + + If provided `NaN` as any argument, the function returns `NaN`. + + If provided `σ <= 0`, the function returns `NaN`. + + Parameters + ---------- + σ: number + Scale parameter. + + Returns + ------- + out: number + Mode. + + Examples + -------- + > var y = {{alias}}( 1.0 ) + 0.0 + > y = {{alias}}( 2.0 ) + 0.0 + > y = {{alias}}( NaN ) + NaN + > y = {{alias}}( 0.0 ) + NaN + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/types/index.d.ts new file mode 100644 index 000000000000..5bf3a9ef9496 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/types/index.d.ts @@ -0,0 +1,52 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Returns the mode for a half-normal distribution with scale parameter `sigma`. +* +* ## Notes +* +* - If provided `sigma <= 0`, the function returns `NaN`. +* +* @param sigma - scale parameter +* @returns mode +* +* @example +* var y = mode( 1.0 ); +* // returns 0.0 +* +* @example +* var y = mode( 2.0 ); +* // returns 0.0 +* +* @example +* var y = mode( NaN ); +* // returns NaN +* +* @example +* var y = mode( 0.0 ); +* // returns NaN +*/ +declare function mode( sigma: number ): number; + + +// EXPORTS // + +export = mode; diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/types/test.ts new file mode 100644 index 000000000000..7884c1001788 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/docs/types/test.ts @@ -0,0 +1,42 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import mode = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + mode( 2 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + mode( true ); // $ExpectError + mode( false ); // $ExpectError + mode( '5' ); // $ExpectError + mode( [] ); // $ExpectError + mode( {} ); // $ExpectError + mode( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + mode(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/c/Makefile new file mode 100644 index 000000000000..c8f8e9a1517b --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := example.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled examples. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/c/example.c new file mode 100644 index 000000000000..22ab1766f9c9 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/c/example.c @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/mode.h" +#include +#include + +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +int main( void ) { + double sigma; + double y; + int i; + + for ( i = 0; i < 10; i++ ) { + sigma = random_uniform( 0.1, 20.0 ); + y = stdlib_base_dists_halfnormal_mode( sigma ); + printf( "σ: %lf, mode(X;σ): %lf\n", sigma, y ); + } +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/index.js new file mode 100644 index 000000000000..218fb6a12171 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/examples/index.js @@ -0,0 +1,30 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var mode = require( './../lib' ); + +var opts = { + 'dtype': 'float64' +}; +var sigma = uniform( 10, 0.0, 20.0, opts ); + +logEachMap( 'σ: %0.4f, mode(X;σ): %0.4f', sigma, mode ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/include.gypi b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/include.gypi new file mode 100644 index 000000000000..bee8d41a2caf --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A GYP include file for building a Node.js native add-on. +# +# Main documentation: +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Source directory: + 'src_dir': './src', + + # Include directories: + 'include_dirs': [ + '=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "statistics", + "stats", + "distribution", + "dist", + "gaussian", + "half", + "continuous", + "mode", + "location", + "center", + "univariate" + ] +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/Makefile new file mode 100644 index 000000000000..2caf905cedbe --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/Makefile @@ -0,0 +1,70 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + + +# RULES # + +#/ +# Removes generated files for building an add-on. +# +# @example +# make clean-addon +#/ +clean-addon: + $(QUIET) -rm -f *.o *.node + +.PHONY: clean-addon + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: clean-addon + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/addon.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/addon.c new file mode 100644 index 000000000000..6477404072ef --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/addon.c @@ -0,0 +1,22 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/mode.h" +#include "stdlib/math/base/napi/unary.h" + +STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_dists_halfnormal_mode ) diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/main.c new file mode 100644 index 000000000000..6246f857db06 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/src/main.c @@ -0,0 +1,40 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/stats/base/dists/halfnormal/mode.h" +#include "stdlib/math/base/assert/is_nan.h" + +/** +* Returns the mode for a half-normal distribution with scale parameter `sigma`. +* +* @param sigma scale parameter +* @return mode +* +* @example +* double y = stdlib_base_dists_halfnormal_mode( 1.0 ); +* // returns 0.0 +*/ +double stdlib_base_dists_halfnormal_mode( const double sigma ) { + if ( + stdlib_base_is_nan( sigma ) || + sigma <= 0.0 + ) { + return 0.0/0.0; // NaN + } + return 0.0; +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000000..98be20b58ed3 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/REQUIRE @@ -0,0 +1,3 @@ +Distributions 0.23.8 +julia 1.5 +JSON 0.21 diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/data.json b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/data.json new file mode 100644 index 000000000000..b1da895af85a --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/data.json @@ -0,0 +1 @@ +{"sigma": [0.283070975834554,4.305413177082622,3.616407262186885,4.534922878195369,2.692866865070729,2.831553282859205,0.38578607506897233,2.783285418040582,0.627785309590031,0.4058523817119841,2.841587211342962,3.614219741987088,4.81735416227758,1.8235569405805085,2.738749662789602,3.7452429786291974,1.9398258174017402,1.0925579826001086,3.280559180720959,0.4051804754931698,4.087353808040119,3.3112573877933347,0.29242080985489416,1.8901807804017146,3.740733002393891,4.364616729916133,4.35693631263498,1.457946390272401,0.07130502518596149,0.9742622056393468,1.9375721649636213,1.8725333626248475,2.1313736336655307,0.8959500042524515,4.004873594697738,4.122876887090675,1.1328096872729676,2.328758869781452,4.8381540382609955,4.630672082315971,4.972814042439111,1.8740111149928251,4.267421695992756,1.3039347323150596,3.5292803368477124,1.4522573869930133,3.963005920611724,3.119387045369825,4.782883625481235,0.18284703653251522,4.7964886915295715,2.2570835571679995,0.218721842167654,3.169134410136146,3.7346284832303454,3.927496417927693,2.7809294707223167,1.2670594483079989,0.7825202067495718,3.310900431788756, 4.67177411521046,1.2425880597889227,3.70632841713138,3.535276110148348,1.4948139313930842,4.348431429358511,3.5025992903620984,1.697174566705969,4.926817337373382,3.3072861995436953,4.224254042659224,2.048095223783055,4.845789431772384,3.261468260960485,2.769254526813408,0.43239956569375626,0.6976220404955547,4.264805955566499,1.0809272189550412,4.8235958282148585,4.5778336624017255,4.820262830852315,4.4241649313021565,1.6164576207436376,0.3946254882104139,2.5051741401819925,4.958576405939467,2.663145897525454,1.5975048668171732,1.2386657639882126,4.449129989800386,3.666707893728385,0.053642590136536716,4.400420102744763,0.6707984604313066,2.513781198746364,0.20681959341021905,4.887730099768951,3.718392429631142,4.284160629159532],"expected": [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]} diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/runner.jl new file mode 100644 index 000000000000..71316b6ab591 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/fixtures/julia/runner.jl @@ -0,0 +1,55 @@ +#!/usr/bin/env julia +# +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import JSON + +""" + gen( sigma, name ) + +Generate fixture data for the mode of a half-normal distribution and write to file. + +# Arguments + +* `sigma::AbstractVector{<:Real}`: scale parameter (σ > 0) +* `name::AbstractString`: output filename +""" +function gen(sigma, name) + expected = Array{Float64}(undef, length(sigma)) + + for i in eachindex(sigma) + if sigma[i] > 0.0 + expected[i] = 0.0 + else + expected[i] = NaN + end + end + + data = Dict( + "sigma" => sigma, + "expected" => expected + ) + + open(name, "w") do io + write(io, JSON.json(data)) + write(io, "\n") + end +end + +# Generate fixtures: +sigma = rand( 100 ) .* 5.0; +gen( sigma, "data.json" ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/test.js new file mode 100644 index 000000000000..df69dff40fc3 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/test.js @@ -0,0 +1,77 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var NINF = require( '@stdlib/constants/float64/ninf' ); +var mode = require( './../lib' ); + + +// FIXTURES // + +var data = require( './fixtures/julia/data.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof mode, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN` for any parameter, the function returns `NaN`', function test( t ) { + var y = mode( NaN ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a nonpositive `sigma`, the function returns `NaN`', function test( t ) { + var y; + + y = mode( 0.0 ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + y = mode( -1.0 ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + y = mode( NINF ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the mode of a half-normal distribution', function test( t ) { + var expected; + var sigma; + var y; + var i; + + expected = data.expected; + sigma = data.sigma; + + for ( i = 0; i < sigma.length; i++ ) { + y = mode( sigma[i] ); + t.strictEqual( y, expected[i], 'sigma: '+sigma[i] ); + } + t.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/test.native.js new file mode 100644 index 000000000000..199204e89be6 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/mode/test/test.native.js @@ -0,0 +1,85 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var NINF = require( '@stdlib/constants/float64/ninf' ); + + +// FIXTURES // + +var data = require( './fixtures/julia/data.json' ); + + +// VARIABLES // + +var mode = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( mode instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof mode, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `NaN`, the function returns `NaN`', opts, function test( t ) { + var y = mode( NaN ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a nonpositive `sigma`, the function returns `NaN`', opts, function test( t ) { + var y; + + y = mode( 0.0 ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + y = mode( -1.0 ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + y = mode( NINF ); + t.strictEqual( isnan( y ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the mode of a half-normal distribution', opts, function test( t ) { + var expected; + var sigma; + var y; + var i; + + expected = data.expected; + sigma = data.sigma; + for ( i = 0; i < sigma.length; i++ ) { + y = mode( sigma[i] ); + t.strictEqual( y, expected[i], 'sigma: '+sigma[i] ); + } + t.end(); +}); From b1b2c0abaef0ca1437ac2ab0f00fe7bdeaca2769 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Thu, 22 Jan 2026 00:28:04 -0600 Subject: [PATCH 17/19] refactor: pre-calculate constant --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../dists/halfnormal/kurtosis/lib/main.js | 24 +++++++++++++++++-- .../dists/halfnormal/kurtosis/manifest.json | 9 +++---- .../base/dists/halfnormal/kurtosis/src/main.c | 5 ++-- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/lib/main.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/lib/main.js index 4c29394aaf81..e7a7f5265ecd 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/lib/main.js +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/lib/main.js @@ -20,10 +20,14 @@ // MODULES // -var PI = require( '@stdlib/constants/float64/pi' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); +// VARIABLES // + +var KURTOSIS = 0.8691773036059736; // 8*(π-3) / (π-2)² + + // MAIN // /** @@ -31,12 +35,28 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); * * @param {PositiveNumber} sigma - scale parameter * @returns {number} excess kurtosis +* +* @example +* var y = kurtosis( 1.0 ); +* // returns ~0.869 +* +* @example +* var y = kurtosis( 4.0 ); +* // returns ~0.869 +* +* @example +* var y = kurtosis( NaN ); +* // returns NaN +* +* @example +* var y = kurtosis( 0.0 ); +* // returns NaN */ function kurtosis( sigma ) { if ( isnan( sigma ) || sigma <= 0.0 ) { return NaN; } - return ( 8.0 * ( PI - 3.0 ) ) / ( ( PI - 2.0 ) * ( PI - 2.0 ) ); + return KURTOSIS; } diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/manifest.json b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/manifest.json index 66a545f26bfd..7b4b4c8eae44 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/manifest.json +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/manifest.json @@ -39,8 +39,7 @@ "libpath": [], "dependencies": [ "@stdlib/math/base/napi/unary", - "@stdlib/math/base/assert/is-nan", - "@stdlib/constants/float64/pi" + "@stdlib/math/base/assert/is-nan" ] }, { @@ -55,8 +54,7 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/math/base/assert/is-nan", - "@stdlib/constants/float64/pi" + "@stdlib/math/base/assert/is-nan" ] }, { @@ -71,8 +69,7 @@ "libraries": [], "libpath": [], "dependencies": [ - "@stdlib/math/base/assert/is-nan", - "@stdlib/constants/float64/pi" + "@stdlib/math/base/assert/is-nan" ] } ] diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/main.c index 49051811ce07..db45006b34a1 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/src/main.c @@ -18,7 +18,8 @@ #include "stdlib/stats/base/dists/halfnormal/kurtosis.h" #include "stdlib/math/base/assert/is_nan.h" -#include "stdlib/constants/float64/pi.h" + +static const double KURTOSIS = 0.8691773036059736; // 8*(π-3) / (π-2)² /** * Returns the excess kurtosis of a half-normal distribution with scale parameter `sigma`. @@ -37,5 +38,5 @@ double stdlib_base_dists_halfnormal_kurtosis( const double sigma ) { ) { return 0.0 / 0.0; // NaN } - return ( 8.0 * ( STDLIB_CONSTANT_FLOAT64_PI - 3.0 ) ) / ( ( STDLIB_CONSTANT_FLOAT64_PI - 2.0 ) * ( STDLIB_CONSTANT_FLOAT64_PI - 2.0 ) ); + return KURTOSIS; } From 479daff3940d5f78ca7e6261fda1731f3bb22f5b Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Thu, 22 Jan 2026 00:28:33 -0600 Subject: [PATCH 18/19] docs: minor clean-up --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../stats/base/dists/halfnormal/kurtosis/README.md | 10 +++++----- .../stats/base/dists/halfnormal/kurtosis/docs/repl.txt | 9 ++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/README.md b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/README.md index 9547ce61d3ba..c93a194adbd5 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/kurtosis/README.md @@ -20,11 +20,11 @@ limitations under the License. # Kurtosis -> [Half-normal][halfnormal-distribution] distribution [excess kurtosis][kurtosis]. +> [Half-normal][half-normal-distribution] distribution [excess kurtosis][kurtosis].
-The [excess kurtosis][kurtosis] of a [half-normal][halfnormal-distribution] distribution with scale `sigma > 0` is +The [excess kurtosis][kurtosis] of a [half-normal][half-normal-distribution] distribution with scale `sigma > 0` is @@ -53,7 +53,7 @@ var kurtosis = require( '@stdlib/stats/base/dists/halfnormal/kurtosis' ); #### kurtosis( sigma ) -Returns the [excess kurtosis][kurtosis] of a [half-normal][halfnormal-distribution] distribution with scale parameter `sigma`. +Returns the [excess kurtosis][kurtosis] of a [half-normal][half-normal-distribution] distribution with scale parameter `sigma`. ```javascript var x = kurtosis( 1.0 ); @@ -128,7 +128,7 @@ logEachMap( 'σ: %0.4f, Kurt(X;σ): %0.4f', sigma, kurtosis ); #### stdlib_base_dists_halfnormal_kurtosis( sigma ) -Returns the [excess kurtosis][kurtosis] of a [half-normal][halfnormal-distribution] distribution with scale parameter `sigma`. +Returns the [excess kurtosis][kurtosis] of a [half-normal][half-normal-distribution] distribution with scale parameter `sigma`. ```c double out = stdlib_base_dists_halfnormal_kurtosis( 1.0 ); @@ -204,7 +204,7 @@ int main( void ) {