diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/LICENSE b/lib/node_modules/@stdlib/math/base/special/expm1f/LICENSE new file mode 100644 index 000000000000..2485b11fa9e2 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/LICENSE @@ -0,0 +1,191 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such patent litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You the Licensor shall be under the terms and conditions of + this License, without any additional terms. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless agreed by law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +DEPENDENCIES & ATTRIBUTION + +The library links against the following external libraries or contains +implementations from the following external libraries, which have their own +licenses: + +* FDLIBM + +Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. + +Developed at SunPro, a Sun Microsystems, Inc. business. +Permission to use, copy, modify, and distribute this +software is freely granted, provided that this notice +is preserved. diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/README.md b/lib/node_modules/@stdlib/math/base/special/expm1f/README.md new file mode 100644 index 000000000000..4207093f89a3 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/README.md @@ -0,0 +1,163 @@ + + +# expm1f + +> Compute `exp(x) - 1` for a single-precision floating-point number. + +
+ +## Usage + +```javascript +var expm1f = require( '@stdlib/math/base/special/expm1f' ); +``` + +#### expm1f( x ) + +Computes `exp(x) - 1` for a single-precision floating-point number. + +```javascript +var v = expm1f( 0.2 ); +// returns ~0.221 + +v = expm1f( -9.0 ); +// returns ~-1.0 + +v = expm1f( 0.0 ); +// returns 0.0 + +v = expm1f( NaN ); +// returns NaN +``` + +
+ + + +
+ +## Examples + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var expm1f = require( '@stdlib/math/base/special/expm1f' ); + +var opts = { + 'dtype': 'float32' +}; +var x = uniform( 100, -5.0, 5.0, opts ); + +logEachMap( 'expm1f(%f) = %f', x, expm1f ); +``` + +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/expm1f.h" +``` + +#### stdlib_base_expm1f( x ) + +Computes `exp(x) - 1` for a single-precision floating-point number. + +```c +float out = stdlib_base_expm1f( 0.2f ); +// returns ~0.221f +``` + +The function accepts the following arguments: + +- **x**: `[in] float` input value. + +```c +float stdlib_base_expm1f( const float x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/expm1f.h" +#include + +int main( void ) { + const float x[] = { -5.0f, -3.89f, -2.78f, -1.67f, -0.56f, 0.56f, 1.67f, 2.78f, 3.89f, 5.0f }; + + float v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_expm1f( x[ i ] ); + printf( "expm1f(%f) = %f\n", x[ i ], v ); + } +} +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/benchmark.js new file mode 100644 index 000000000000..50bce3634017 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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 expm1f = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var x; + var y; + var i; + + x = uniform( 100, -5.0, 5.0, { + 'dtype': 'float32' + }); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = expm1f( 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/expm1f/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/benchmark.native.js new file mode 100644 index 000000000000..e7d0418d3be6 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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 expm1f = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( expm1f instanceof Error ) +}; + + +// MAIN // + +bench( format( '%s::native', pkg ), opts, function benchmark( b ) { + var x; + var y; + var i; + + x = uniform( 100, -5.0, 5.0, { + 'dtype': 'float32' + }); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = expm1f( 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/expm1f/benchmark/c/Makefile b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/Makefile new file mode 100644 index 000000000000..928de45a1a06 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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/expm1f/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/benchmark.c new file mode 100644 index 000000000000..9397ab1334b3 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/benchmark.c @@ -0,0 +1,102 @@ +/** +* @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 "expm1f" +#define ITERATIONS 1000000 +#define REPEATS 3 + +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +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" ); +} + +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" ); +} + +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +static float rand_float( void ) { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +static double benchmark( void ) { + double elapsed; + float x[ 100 ]; + float y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 10.0f*rand_float() ) - 5.0f; + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = expm1f( 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; +} + +int main( void ) { + double elapsed; + int i; + + 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/expm1f/benchmark/c/cephes/Makefile b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/cephes/Makefile new file mode 100644 index 000000000000..9236e23befc4 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/cephes/Makefile @@ -0,0 +1,113 @@ +#/ +# @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 := @ +endif + +# Specify the path to Cephes: +CEPHES ?= + +# Specify a list of Cephes source files: +CEPHES_SRC ?= + +# Determine the OS: +# +# [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 +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]: 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 + + +# TARGETS # + +# Default target. +# +# This target is the default target. + +all: $(c_targets) + +.PHONY: all + + +# Compile C source. +# +# This target compiles C source files. + +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $(CEPHES_SRC) $< -lm + + +# Run a benchmark. +# +# This target runs a benchmark. + +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + + +# Perform clean-up. +# +# This target removes generated files. + +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/cephes/benchmark.c new file mode 100644 index 000000000000..bbdff83e51ad --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/cephes/benchmark.c @@ -0,0 +1,107 @@ +/** +* @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 "expm1f" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Define prototypes for external functions. +*/ +extern float expm1f( float x ); + +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +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" ); +} + +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" ); +} + +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +static float rand_float( void ) { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +static double benchmark( void ) { + double elapsed; + float x[ 100 ]; + float y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 10.0f*rand_float() ) - 5.0f; + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = expm1f( 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; +} + +int main( void ) { + double elapsed; + int i; + + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::cephes::%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/expm1f/benchmark/c/native/Makefile b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/native/Makefile new file mode 100644 index 000000000000..979768abbcec --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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/expm1f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/native/benchmark.c new file mode 100644 index 000000000000..e9a3cac58dbc --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/benchmark/c/native/benchmark.c @@ -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. +*/ + +#include "stdlib/math/base/special/expm1f.h" +#include +#include +#include +#include +#include + +#define NAME "expm1f" +#define ITERATIONS 1000000 +#define REPEATS 3 + +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +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" ); +} + +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" ); +} + +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +static float rand_float( void ) { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +static double benchmark( void ) { + double elapsed; + float x[ 100 ]; + float y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 10.0f*rand_float() ) - 5.0f; + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_expm1f( 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; +} + +int main( void ) { + double elapsed; + int i; + + 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/expm1f/binding.gyp b/lib/node_modules/@stdlib/math/base/special/expm1f/binding.gyp new file mode 100644 index 000000000000..0d6508a12e99 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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/expm1f/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/expm1f/docs/repl.txt new file mode 100644 index 000000000000..c9e998900924 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/docs/repl.txt @@ -0,0 +1,27 @@ + +{{alias}}( x ) + Computes `exp(x) - 1` for a single-precision floating-point number. + + Parameters + ---------- + x: number + Input value. + + Returns + ------- + y: number + Function value. + + Examples + -------- + > var y = {{alias}}( 0.2 ) + ~0.221 + > y = {{alias}}( -9.0 ) + ~-1.0 + > y = {{alias}}( 0.0 ) + 0.0 + > y = {{alias}}( NaN ) + NaN + + See Also + -------- diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/expm1f/docs/types/index.d.ts new file mode 100644 index 000000000000..32ce59ae98c1 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/docs/types/index.d.ts @@ -0,0 +1,48 @@ +/* +* @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 `exp(x) - 1` for a single-precision floating-point number. +* +* @param x - input value +* @returns function value +* +* @example +* var v = expm1f( 0.2 ); +* // returns ~0.221 +* +* @example +* var v = expm1f( -9.0 ); +* // returns ~-1.0 +* +* @example +* var v = expm1f( 0.0 ); +* // returns 0.0 +* +* @example +* var v = expm1f( NaN ); +* // returns NaN +*/ +declare function expm1f( x: number ): number; + + +// EXPORTS // + +export = expm1f; diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/expm1f/docs/types/test.ts new file mode 100644 index 000000000000..3d49cb08e620 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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 expm1f = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + expm1f( 8 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + expm1f( true ); // $ExpectError + expm1f( false ); // $ExpectError + expm1f( null ); // $ExpectError + expm1f( undefined ); // $ExpectError + expm1f( '5' ); // $ExpectError + expm1f( [] ); // $ExpectError + expm1f( {} ); // $ExpectError + expm1f( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + expm1f(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/examples/c/Makefile b/lib/node_modules/@stdlib/math/base/special/expm1f/examples/c/Makefile new file mode 100644 index 000000000000..c8f8e9a1517b --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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/expm1f/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/expm1f/examples/c/example.c new file mode 100644 index 000000000000..cf5dd6d6344d --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/examples/c/example.c @@ -0,0 +1,33 @@ +/** +* @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/expm1f.h" +#include +#include + +int main( void ) { + float x; + float v; + int i; + + for ( i = 0; i < 100; i++ ) { + x = ( ( (float)rand() / (float)RAND_MAX ) * 10.0f ) - 5.0f; + v = stdlib_base_expm1f( x ); + printf( "e^%f - 1 = %f\n", x, v ); + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/examples/index.js b/lib/node_modules/@stdlib/math/base/special/expm1f/examples/index.js new file mode 100644 index 000000000000..2a14e0326ec6 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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 expm1f = require( './../lib' ); + +var opts = { + 'dtype': 'float32' +}; +var x = uniform( 100, -5.0, 5.0, opts ); + +logEachMap( 'e^%0.4f - 1 = %0.4f', x, expm1f ); diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/include.gypi b/lib/node_modules/@stdlib/math/base/special/expm1f/include.gypi new file mode 100644 index 000000000000..bee8d41a2caf --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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': [ + ' --> +* +* A correction term \\(c\\) will need to be computed to compensate for the error in \\(r\\) when rounded to a floating-point number. +* +* +* +* 2. To approximate \\(\operatorname{expm1f}(r)\\), we define \\(\operatorname{R1}(r^2)\\) by +* +* ```tex +* r \frac{e^r + 1}{e^r - 1} = 2 + \frac{r^2}{6} \operatorname{R1}(r^2) +* ``` +* +* We use a polynomial of degree \\(2\\) in \\(r^2\\) to approximate \\(\mathrm{R1}\\): +* +* ```tex +* \operatorname{R1}(z) \approx 1 + \mathrm{Q1} \cdot z + \mathrm{Q2} \cdot z^2 +* ``` +* +* where \\(z = r^2\\) and +* +* ```tex +* \begin{align*} +* \mathrm{Q1} &= -3.3333212137\mbox{e-}2 \\ +* \mathrm{Q2} &= 1.5807170421\mbox{e-}3 +* \end{align*} +* ``` +* +* \\(\operatorname{expm1f}(r) = e^r - 1\\) is then computed by +* +* ```tex +* \operatorname{expm1f}(r) = r + \frac{r^2}{2} + \frac{r^3}{2} \biggl( \frac{\mathrm{R1} - t}{6 - r \cdot t} \biggr) +* ``` +* +* where \\(t = 3 - \mathrm{R1} \cdot \frac{r}{2}\\). +* +* 3. To scale back to obtain \\(\operatorname{expm1f}(x)\\), we have (from step 1) +* +* ```tex +* \operatorname{expm1f}(x) = 2^k (\operatorname{expm1f}(r) + 1) - 1 +* ``` +* +* ## Special Cases +* +* ```tex +* \begin{align*} +* \operatorname{expm1f}(\infty) &= \infty \\ +* \operatorname{expm1f}(-\infty) &= -1 \\ +* \operatorname{expm1f}(\mathrm{NaN}) &= \mathrm{NaN} +* \end{align*} +* ``` +* +* ## Notes +* +* - For finite arguments, only \\(\operatorname{expm1f}(0) = 0\\) is exact. +* +* - For \\(|x| < 2^{-25}\\), the function returns \\(x\\) (with inexact floating-point flags raised when \\(x \neq 0\\)). +* +* - The hexadecimal values listed in the source are the intended ones for the implementation constants. Decimal values may be used, provided that the compiler will convert from decimal to binary accurately enough to produce the intended hexadecimal values. +* +* - According to an error analysis, the error is always less than \\(1\\) ulp (unit in the last place). +* +* @param {number} x - input value +* @returns {number} function value +* +* @example +* var v = expm1f( 0.2 ); +* // returns ~0.221 +* +* @example +* var v = expm1f( -9.0 ); +* // returns ~-1.0 +* +* @example +* var v = expm1f( 0.0 ); +* // returns 0.0 +* +* @example +* var v = expm1f( NaN ); +* // returns NaN +*/ +function expm1f( x ) { + var twopk; + var xsb; + var hfx; + var hxs; + var r1; + var hi; + var lo; + var hx; + var c; + var t; + var e; + var y; + var k; + + x = f32( x ); + hx = toWordf( x ); + xsb = hx & 0x80000000; // sign bit of x + hx = ( hx & 0x7fffffff ) >>> 0; // high word of |x| + + // Filter out huge and non-finite argument... + if ( hx >= 0x4195b844 ) { + if ( hx >= 0x42b17218 ) { + if ( hx > 0x7f800000 ) { + return f32( x + x ); + } + if ( hx === 0x7f800000 ) { + // exp(+-inf) = {inf, -1}: + return ( xsb === 0 ) ? x : -1.0; + } + if ( x > OVERFLOW_THRESHOLD ) { + return f32( 1.0e30 * 1.0e30 ); // overflow + } + } + if ( xsb !== 0 ) { + return f32( TINY - 1.0 ); + } + } + + // Argument reduction... + if ( hx > 0x3eb17218 ) { + if ( hx < 0x3F851592 ) { + if ( xsb === 0 ) { + hi = f32( x - LN2_HI ); + lo = LN2_LO; + k = 1; + } else { + hi = f32( x + LN2_HI ); + lo = -LN2_LO; + k = -1; + } + } else { + if ( xsb === 0 ) { + k = f32( f32( INV_LN2 * x ) + 0.5 ); + } else { + k = f32( f32( INV_LN2 * x ) - 0.5 ); + } + k |= 0; + t = k; + hi = f32( x - f32( t * LN2_HI ) ); // t*ln2_hi is exact here + lo = f32( t * LN2_LO ); + } + x = f32( hi - lo ); + c = f32( f32( hi - x ) - lo ); + } else if ( hx < 0x33000000 ) { + // when |x| < 2^-25, return x: + t = f32( 1.0e30 + x ); // return x with inexact flags when x != 0 + return f32( x - f32( t - f32( 1.0e30 + x ) ) ); + } else { + k = 0; + } + + // x is now in primary range... + hfx = f32( 0.5 * x ); + hxs = f32( x * hfx ); + r1 = f32( 1.0 + f32( hxs * f32( Q1 + f32( hxs * Q2 ) ) ) ); + t = f32( 3.0 - f32( r1 * hfx ) ); + e = f32( hxs * f32( f32( r1 - t ) / f32( 6.0 - f32( x * t ) ) ) ); + if ( k === 0 ) { + return f32( x - f32( f32( x * e ) - hxs ) ); // c is 0 + } + twopk = fromWordf( ( ( FLOAT32_EXPONENT_BIAS + k ) << 23 ) >>> 0 ); // 2^k + e = f32( f32( x * f32( e - c ) ) - c ); + e = f32( e - hxs ); + if ( k === -1 ) { + return f32( f32( 0.5 * f32( x - e ) ) - 0.5 ); + } + if ( k === 1 ) { + if ( x < -0.25 ) { + return f32( -2.0 * f32( e - f32( x + 0.5 ) ) ); + } + return f32( 1.0 + f32( 2.0 * f32( x - e ) ) ); + } + if ( k <= -2 || k > 56 ) { + // suffice to return exp(x)-1: + y = f32( 1.0 - f32( e - x ) ); + if ( k === 128 ) { + y = f32( f32( y * 2.0 ) * 1.7014118346046923e+38 ); // 0x1p127F + } else { + y = f32( y * twopk ); + } + return f32( y - 1.0 ); + } + t = 1.0; + if ( k < 23 ) { + t = fromWordf( ( 0x3f800000 - ( ( 0x1000000 >> k ) >>> 0 ) ) >>> 0 ); // t=1-2^-k + y = f32( t - f32( e - x ) ); + y = f32( y * twopk ); + } else { + t = fromWordf( ( ( FLOAT32_EXPONENT_BIAS - k ) << 23 ) >>> 0 ); // 2^-k + y = f32( x - f32( e + t ) ); + y = f32( y + 1.0 ); + y = f32( y * twopk ); + } + return y; +} + + +// EXPORTS // + +module.exports = expm1f; diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/lib/native.js b/lib/node_modules/@stdlib/math/base/special/expm1f/lib/native.js new file mode 100644 index 000000000000..a09350f3411f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/lib/native.js @@ -0,0 +1,58 @@ +/** +* @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 `exp(x) - 1` for a single-precision floating-point number. +* +* @private +* @param {number} x - input value +* @returns {number} function value +* +* @example +* var v = expm1f( 0.2 ); +* // returns ~0.221 +* +* @example +* var v = expm1f( -9.0 ); +* // returns ~-1.0 +* +* @example +* var v = expm1f( 0.0 ); +* // returns 0.0 +* +* @example +* var v = expm1f( NaN ); +* // returns NaN +*/ +function expm1f( x ) { + return addon( x ); +} + + +// EXPORTS // + +module.exports = expm1f; diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/manifest.json b/lib/node_modules/@stdlib/math/base/special/expm1f/manifest.json new file mode 100644 index 000000000000..55dae210461f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/manifest.json @@ -0,0 +1,78 @@ +{ + "options": { + "task": "build" + }, + "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", + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/math/base/napi/unary", + "@stdlib/number/float32/base/to-word", + "@stdlib/number/float32/base/from-word", + "@stdlib/constants/float32/exponent-bias" + ] + }, + { + "task": "benchmark", + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/number/float32/base/to-word", + "@stdlib/number/float32/base/from-word", + "@stdlib/constants/float32/exponent-bias" + ] + }, + { + "task": "examples", + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/number/float32/base/to-word", + "@stdlib/number/float32/base/from-word", + "@stdlib/constants/float32/exponent-bias" + ] + } + ] +} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/package.json b/lib/node_modules/@stdlib/math/base/special/expm1f/package.json new file mode 100644 index 000000000000..51f7cf50a0cd --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/package.json @@ -0,0 +1,144 @@ +{ + "name": "@stdlib/math/base/special/expm1f", + "version": "0.0.0", + "description": "Compute exp(x) - 1 for a single-precision floating-point number.", + "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", + "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", + "mathematics", + "math", + "expm1f", + "expm1", + "exp", + "exponential", + "natural", + "euler", + "number", + "single", + "float", + "float32", + "ieee754" + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "expm1f", + "alias": "expm1f", + "pkg_desc": "compute exp(x) - 1 for a single-precision floating-point number", + "desc": "computes exp(x) - 1 for a single-precision floating-point number", + "short_desc": "exp(x) - 1", + "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": [ + -5, + 5 + ] + }, + "example_values": [ + 0.2, + -9, + 0, + -0.5, + 1, + -1, + 5, + -5, + 0.1, + -0.1, + 2, + -2, + 10, + -10, + 0.5, + -0.3, + 3, + -3, + 0.01, + -0.01 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "function value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "expm1", + "exp", + "exponential" + ], + "extra_keywords": [] + } + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/src/Makefile b/lib/node_modules/@stdlib/math/base/special/expm1f/src/Makefile new file mode 100644 index 000000000000..2caf905cedbe --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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/expm1f/src/addon.c b/lib/node_modules/@stdlib/math/base/special/expm1f/src/addon.c new file mode 100644 index 000000000000..17195d6f5f8d --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/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/expm1f.h" +#include "stdlib/math/base/napi/unary.h" + +STDLIB_MATH_BASE_NAPI_MODULE_F_F( stdlib_base_expm1f ) diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/src/main.c b/lib/node_modules/@stdlib/math/base/special/expm1f/src/main.c new file mode 100644 index 000000000000..5c1de4a271e9 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/src/main.c @@ -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. +* +* +* ## Notice +* +* The following copyright, license, and long comment were part of the original implementation available as part of [FDLIBM]{@link http://www.netlib.org/fdlibm/s_expm1.c} and [FreeBSD]{@link https://github.com/freebsd/freebsd-src/blob/main/lib/msun/src/s_expm1f.c}. The implementation follows the original, but has been modified according to project conventions. +* +* ```text +* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. +* +* Developed at SunPro, a Sun Microsystems, Inc. business. +* Permission to use, copy, modify, and distribute this +* software is freely granted, provided that this notice +* is preserved. +* ``` +*/ + +#include "stdlib/math/base/special/expm1f.h" +#include "stdlib/number/float32/base/to_word.h" +#include "stdlib/number/float32/base/from_word.h" +#include "stdlib/constants/float32/exponent_bias.h" +#include + +static const float one = 1.0f; +static const float tiny = 1.0e-30f; +static const float o_threshold = 8.8721679688e+01f; /* 0x42b17180 */ +static const float ln2_hi = 6.9313812256e-01f; /* 0x3f317180 */ +static const float ln2_lo = 9.0580006145e-06f; /* 0x3717f7d1 */ +static const float invln2 = 1.4426950216e+00f; /* 0x3fb8aa3b */ +static const float Q1 = -3.3333212137e-02f; /* -0x888868.0p-28 */ +static const float Q2 = 1.5807170421e-03f; /* 0xcf3010.0p-33 */ + +static volatile float huge_val = 1.0e+30f; + +/** +* Computes `exp(x) - 1` for a single-precision floating-point number. +* +* @param x input value +* @return output value +* +* @example +* float out = stdlib_base_expm1f( 0.2f ); +* // returns ~0.221f +*/ +float stdlib_base_expm1f( const float x ) { + float y; + float hi; + float lo; + float c; + float t; + float e; + float hxs; + float hfx; + float r1; + float twopk; + float xv; + int32_t k; + int32_t xsb; + uint32_t hx; + + xv = x; + stdlib_base_float32_to_word( xv, &hx ); + xsb = hx & 0x80000000; /* sign bit of x */ + hx &= 0x7fffffff; /* high word of |x| */ + + // Filter out huge and non-finite arguments... + if ( hx >= 0x4195b844 ) { /* if |x|>=27*ln2 */ + if ( hx >= 0x42b17218 ) { /* if |x|>=88.721... */ + if ( hx > 0x7f800000 ) { + return xv + xv; + } + if ( hx == 0x7f800000 ) { + return ( xsb == 0 ) ? xv : -1.0f; /* exp(+-inf)={inf,-1} */ + } + if ( xv > o_threshold ) { + return huge_val * huge_val; /* overflow */ + } + } + if ( xsb != 0 ) { + return tiny - one; + } + } + + c = 0.0f; + + // Argument reduction... + if ( hx > 0x3eb17218 ) { /* if |x| > 0.5 ln2 */ + if ( hx < 0x3F851592 ) { /* and |x| < 1.5 ln2 */ + if ( xsb == 0 ) { + hi = xv - ln2_hi; + lo = ln2_lo; + k = 1; + } else { + hi = xv + ln2_hi; + lo = -ln2_lo; + k = -1; + } + } else { + k = (int32_t)( invln2 * xv + ( ( xsb == 0 ) ? 0.5f : -0.5f ) ); + t = (float)k; + hi = xv - t * ln2_hi; /* t*ln2_hi is exact here */ + lo = t * ln2_lo; + } + xv = hi - lo; + c = ( hi - xv ) - lo; + } else if ( hx < 0x33000000 ) { /* when |x|<2**-25, return x */ + t = huge_val + xv; /* return x with inexact flags when x!=0 */ + return xv - ( t - ( huge_val + xv ) ); + } else { + k = 0; + } + + // x is now in primary range... + hfx = 0.5f * xv; + hxs = xv * hfx; + r1 = one + hxs * ( Q1 + hxs * Q2 ); + t = 3.0f - r1 * hfx; + e = hxs * ( ( r1 - t ) / ( 6.0f - xv * t ) ); + if ( k == 0 ) { + return xv - ( xv * e - hxs ); /* c is 0 */ + } + stdlib_base_float32_from_word( ( (uint32_t)( STDLIB_CONSTANT_FLOAT32_EXPONENT_BIAS + k ) ) << 23, &twopk ); /* 2^k */ + e = ( xv * ( e - c ) ) - c; + e -= hxs; + if ( k == -1 ) { + return 0.5f * ( xv - e ) - 0.5f; + } + if ( k == 1 ) { + if ( xv < -0.25f ) { + return -2.0f * ( e - ( xv + 0.5f ) ); + } + return one + 2.0f * ( xv - e ); + } + if ( k <= -2 || k > 56 ) { /* suffice to return exp(x)-1 */ + y = one - ( e - xv ); + if ( k == 128 ) { + y = y * 2.0f * 1.7014118346046923e+38f; /* 0x1p127F */ + } else { + y = y * twopk; + } + return y - one; + } + t = one; + if ( k < 23 ) { + stdlib_base_float32_from_word( (uint32_t)0x3f800000 - ( (uint32_t)0x1000000 >> (uint32_t)k ), &t ); /* t=1-2^-k */ + y = t - ( e - xv ); + y = y * twopk; + } else { + stdlib_base_float32_from_word( ( (uint32_t)( STDLIB_CONSTANT_FLOAT32_EXPONENT_BIAS - k ) ) << 23, &t ); /* 2^-k */ + y = xv - ( e + t ); + y += one; + y = y * twopk; + } + return y; +} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000000..308c3be89c85 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/REQUIRE @@ -0,0 +1,2 @@ +julia 1.5 +JSON 0.21 diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/medium_negative.json b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/medium_negative.json new file mode 100644 index 000000000000..a194c94a80b3 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/medium_negative.json @@ -0,0 +1 @@ +{"expected":[-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.99999994,-0.9999999,-0.9999999,-0.9999999,-0.9999999,-0.9999999,-0.9999999,-0.9999998,-0.9999998,-0.9999998,-0.99999976,-0.99999976,-0.99999976,-0.9999997,-0.9999997,-0.9999997,-0.99999964,-0.99999964,-0.9999996,-0.9999995,-0.9999995,-0.99999946,-0.9999994,-0.99999934,-0.9999993,-0.9999992,-0.99999917,-0.9999991,-0.999999,-0.9999989,-0.9999988,-0.99999875,-0.9999986,-0.99999845,-0.99999833,-0.9999982,-0.99999803,-0.99999785,-0.9999977,-0.99999744,-0.9999972,-0.99999696,-0.9999967,-0.9999964,-0.99999607,-0.9999957,-0.99999535,-0.99999493,-0.99999446,-0.999994,-0.99999344,-0.99999285,-0.9999922,-0.9999915,-0.9999907,-0.99998987,-0.999989,-0.999988,-0.99998695,-0.99998575,-0.99998444,-0.9999831,-0.9999815,-0.99997985,-0.99997807,-0.9999761,-0.99997395,-0.9999716,-0.99996907,-0.99996626,-0.9999632,-0.99995995,-0.9999563,-0.99995244,-0.99994814,-0.9999435,-0.99993837,-0.9999328,-0.9999268,-0.99992025,-0.99991304,-0.9999052,-0.9998967,-0.99988747,-0.99987733,-0.9998663,-0.99985427,-0.99984115,-0.9998269,-0.99981135,-0.99979436,-0.9997759,-0.99975574,-0.9997338,-0.99970984,-0.9996838,-0.99965537,-0.9996244,-0.9995906,-0.9995538,-0.9995137,-0.99946994,-0.9994223,-0.99937034,-0.9993138,-0.9992521,-0.99918485,-0.99911153,-0.99903166,-0.99894464,-0.99884975,-0.99874634,-0.9986336,-0.9985108,-0.9983769,-0.998231,-0.99807197,-0.99789864,-0.9977097,-0.9975038,-0.9972794,-0.99703485,-0.99676824,-0.9964777,-0.99616104,-0.99581593,-0.9954398,-0.99502987,-0.994583,-0.99409604,-0.99356526,-0.9929868,-0.9923563,-0.9916691,-0.9909202,-0.9901039,-0.98921424,-0.9882446,-0.9871878,-0.986036,-0.9847806,-0.9834124,-0.98192114,-0.98029584,-0.97852445,-0.9765938,-0.97448957,-0.9721962,-0.96969664,-0.96697235,-0.96400315,-0.96076703,-0.95724,-0.95339584,-0.9492062,-0.9446398,-0.9396629,-0.93423855,-0.9283266,-0.92188317,-0.9148604,-0.90720636,-0.8988642,-0.8897721,-0.8798626,-0.86906224,-0.8572909,-0.8444613,-0.83047837,-0.81523836,-0.7986283,-0.7805249,-0.76079404,-0.7392894,-0.7158515,-0.6903065,-0.662465,-0.63212055],"x":[-87.0,-86.91392,-86.82783,-86.741745,-86.655655,-86.56957,-86.48348,-86.3974,-86.31131,-86.22523,-86.13914,-86.053055,-85.966965,-85.88088,-85.79479,-85.70871,-85.62262,-85.53654,-85.45045,-85.364365,-85.278275,-85.19219,-85.10611,-85.02002,-84.93394,-84.84785,-84.761765,-84.675674,-84.58959,-84.5035,-84.41742,-84.33133,-84.24525,-84.15916,-84.073074,-83.986984,-83.9009,-83.81481,-83.72873,-83.64264,-83.55656,-83.470474,-83.384384,-83.2983,-83.21221,-83.12613,-83.04004,-82.95396,-82.86787,-82.781784,-82.695694,-82.60961,-82.52352,-82.43744,-82.35135,-82.26527,-82.17918,-82.093094,-82.007,-81.92092,-81.83483,-81.74875,-81.66267,-81.57658,-81.49049,-81.4044,-81.31832,-81.23223,-81.14615,-81.06006,-80.973976,-80.887886,-80.8018,-80.71571,-80.62963,-80.54354,-80.45746,-80.37137,-80.285286,-80.199196,-80.11311,-80.02702,-79.94094,-79.85486,-79.76877,-79.682686,-79.596596,-79.51051,-79.42442,-79.33834,-79.25225,-79.16617,-79.08008,-78.993996,-78.907906,-78.82182,-78.73573,-78.64965,-78.56356,-78.47748,-78.39139,-78.305305,-78.21922,-78.13313,-78.04705,-77.96096,-77.87488,-77.78879,-77.702705,-77.616615,-77.53053,-77.44444,-77.35836,-77.27227,-77.18619,-77.1001,-77.014015,-76.927925,-76.84184,-76.75575,-76.66967,-76.58358,-76.4975,-76.411415,-76.325325,-76.23924,-76.15315,-76.06707,-75.98098,-75.8949,-75.80881,-75.722725,-75.636635,-75.55055,-75.46446,-75.37838,-75.29229,-75.20621,-75.12012,-75.034035,-74.947945,-74.86186,-74.77577,-74.68969,-74.60361,-74.51752,-74.431435,-74.345345,-74.25926,-74.17317,-74.08709,-74.001,-73.91492,-73.82883,-73.742744,-73.656654,-73.57057,-73.48448,-73.3984,-73.31231,-73.22623,-73.14014,-73.054054,-72.967964,-72.88188,-72.7958,-72.70971,-72.62363,-72.53754,-72.451454,-72.365364,-72.27928,-72.19319,-72.10711,-72.02102,-71.93494,-71.84885,-71.762764,-71.676674,-71.59059,-71.5045,-71.41842,-71.33233,-71.24625,-71.160164,-71.07407,-70.98799,-70.9019,-70.81582,-70.72973,-70.64365,-70.557556,-70.47147,-70.38538,-70.2993,-70.21321,-70.12713,-70.04104,-69.954956,-69.868866,-69.78278,-69.69669,-69.61061,-69.52452,-69.43844,-69.352356,-69.266266,-69.18018,-69.09409,-69.00801,-68.92192,-68.83584,-68.74975,-68.663666,-68.577576,-68.49149,-68.4054,-68.31932,-68.23323,-68.14715,-68.06106,-67.974976,-67.888885,-67.8028,-67.71671,-67.63063,-67.54455,-67.45846,-67.372375,-67.286285,-67.2002,-67.11411,-67.02803,-66.94194,-66.85586,-66.76977,-66.683685,-66.597595,-66.51151,-66.42542,-66.33934,-66.25325,-66.16717,-66.08108,-65.994995,-65.90891,-65.82282,-65.73674,-65.65065,-65.56457,-65.47848,-65.392395,-65.306305,-65.22022,-65.13413,-65.04805,-64.96196,-64.87588,-64.78979,-64.703705,-64.617615,-64.53153,-64.44544,-64.35936,-64.27327,-64.18719,-64.101105,-64.015015,-63.92893,-63.842842,-63.756756,-63.67067,-63.584583,-63.498497,-63.41241,-63.326324,-63.240242,-63.154156,-63.06807,-62.981983,-62.895897,-62.80981,-62.723724,-62.637638,-62.55155,-62.465466,-62.37938,-62.293293,-62.207207,-62.12112,-62.035034,-61.948948,-61.86286,-61.776775,-61.69069,-61.604603,-61.51852,-61.432434,-61.346348,-61.26026,-61.174175,-61.08809,-61.002003,-60.915916,-60.82983,-60.743744,-60.657658,-60.57157,-60.485485,-60.3994,-60.313313,-60.227226,-60.14114,-60.055054,-59.968967,-59.88288,-59.796795,-59.710712,-59.624626,-59.53854,-59.452454,-59.366367,-59.28028,-59.194195,-59.10811,-59.022022,-58.935936,-58.84985,-58.763763,-58.677677,-58.59159,-58.505505,-58.41942,-58.333332,-58.247246,-58.16116,-58.075073,-57.98899,-57.902905,-57.81682,-57.730732,-57.644646,-57.55856,-57.472473,-57.386387,-57.3003,-57.214214,-57.128128,-57.04204,-56.955956,-56.86987,-56.783783,-56.697697,-56.61161,-56.525524,-56.439438,-56.35335,-56.26727,-56.181183,-56.095097,-56.00901,-55.922924,-55.836838,-55.75075,-55.664665,-55.57858,-55.492493,-55.406406,-55.32032,-55.234234,-55.148148,-55.06206,-54.975975,-54.88989,-54.803802,-54.717716,-54.63163,-54.545544,-54.45946,-54.373375,-54.28729,-54.201202,-54.115116,-54.02903,-53.942944,-53.856857,-53.77077,-53.684685,-53.5986,-53.512512,-53.426426,-53.34034,-53.254253,-53.168167,-53.08208,-52.995995,-52.90991,-52.823822,-52.73774,-52.651653,-52.565567,-52.47948,-52.393394,-52.30731,-52.221222,-52.135136,-52.04905,-51.962963,-51.876877,-51.79079,-51.704704,-51.618618,-51.53253,-51.446445,-51.36036,-51.274273,-51.188187,-51.1021,-51.016018,-50.92993,-50.843845,-50.75776,-50.671673,-50.585587,-50.4995,-50.413414,-50.327328,-50.24124,-50.155155,-50.06907,-49.982983,-49.896896,-49.81081,-49.724724,-49.638638,-49.55255,-49.466465,-49.38038,-49.294292,-49.20821,-49.122124,-49.036037,-48.94995,-48.863865,-48.77778,-48.691692,-48.605606,-48.51952,-48.433434,-48.347347,-48.26126,-48.175175,-48.08909,-48.003002,-47.916916,-47.83083,-47.744743,-47.658657,-47.57257,-47.48649,-47.400402,-47.314316,-47.22823,-47.142143,-47.056057,-46.96997,-46.883884,-46.7978,-46.71171,-46.625626,-46.53954,-46.453453,-46.367367,-46.28128,-46.195194,-46.109108,-46.02302,-45.936935,-45.85085,-45.764763,-45.67868,-45.592594,-45.506508,-45.42042,-45.334335,-45.24825,-45.162163,-45.076077,-44.98999,-44.903904,-44.817818,-44.73173,-44.645645,-44.55956,-44.473473,-44.387386,-44.3013,-44.215214,-44.129128,-44.04304,-43.95696,-43.870872,-43.784786,-43.6987,-43.612614,-43.526527,-43.44044,-43.354355,-43.26827,-43.182182,-43.096096,-43.01001,-42.923923,-42.837837,-42.75175,-42.665665,-42.57958,-42.493492,-42.407406,-42.32132,-42.235237,-42.14915,-42.063065,-41.97698,-41.890892,-41.804806,-41.71872,-41.632633,-41.546547,-41.46046,-41.374374,-41.28829,-41.2022,-41.116116,-41.03003,-40.943943,-40.857857,-40.77177,-40.685684,-40.599598,-40.51351,-40.42743,-40.341343,-40.255257,-40.16917,-40.083084,-39.996998,-39.91091,-39.824825,-39.73874,-39.652653,-39.566566,-39.48048,-39.394394,-39.308308,-39.22222,-39.136135,-39.05005,-38.963963,-38.877876,-38.79179,-38.705708,-38.61962,-38.533535,-38.44745,-38.361362,-38.275276,-38.18919,-38.103104,-38.017017,-37.93093,-37.844845,-37.75876,-37.672672,-37.586586,-37.5005,-37.414413,-37.328327,-37.24224,-37.156155,-37.07007,-36.983982,-36.8979,-36.811813,-36.725727,-36.63964,-36.553555,-36.46747,-36.381382,-36.295296,-36.20921,-36.123123,-36.037037,-35.95095,-35.864864,-35.778778,-35.69269,-35.606606,-35.52052,-35.434433,-35.348347,-35.26226,-35.176178,-35.09009,-35.004005,-34.91792,-34.831833,-34.745747,-34.65966,-34.573574,-34.487488,-34.4014,-34.315315,-34.22923,-34.143143,-34.057056,-33.97097,-33.884884,-33.798798,-33.71271,-33.626625,-33.54054,-33.454456,-33.36837,-33.282284,-33.196198,-33.11011,-33.024025,-32.93794,-32.851852,-32.765766,-32.67968,-32.593594,-32.507507,-32.42142,-32.335335,-32.24925,-32.163162,-32.077076,-31.990992,-31.904905,-31.818819,-31.732733,-31.646646,-31.56056,-31.474474,-31.388388,-31.302301,-31.216217,-31.13013,-31.044044,-30.957958,-30.871872,-30.785786,-30.6997,-30.613613,-30.527527,-30.44144,-30.355356,-30.26927,-30.183184,-30.097097,-30.011011,-29.924925,-29.838839,-29.752752,-29.666666,-29.58058,-29.494495,-29.40841,-29.322323,-29.236237,-29.15015,-29.064064,-28.977978,-28.891891,-28.805805,-28.719719,-28.633635,-28.547548,-28.461462,-28.375376,-28.28929,-28.203203,-28.117117,-28.03103,-27.944944,-27.858858,-27.772772,-27.686687,-27.600601,-27.514515,-27.428429,-27.342342,-27.256256,-27.17017,-27.084084,-26.997997,-26.911911,-26.825827,-26.73974,-26.653654,-26.567568,-26.481482,-26.395395,-26.309309,-26.223223,-26.137136,-26.05105,-25.964966,-25.87888,-25.792793,-25.706707,-25.62062,-25.534534,-25.448448,-25.362362,-25.276276,-25.19019,-25.104105,-25.018019,-24.931932,-24.845846,-24.75976,-24.673674,-24.587587,-24.501501,-24.415415,-24.329329,-24.243244,-24.157158,-24.071072,-23.984985,-23.8989,-23.812813,-23.726727,-23.64064,-23.554554,-23.468468,-23.382381,-23.296297,-23.21021,-23.124125,-23.038038,-22.951952,-22.865866,-22.77978,-22.693693,-22.607607,-22.52152,-22.435436,-22.34935,-22.263264,-22.177177,-22.091091,-22.005005,-21.918919,-21.832832,-21.746746,-21.66066,-21.574575,-21.48849,-21.402403,-21.316317,-21.23023,-21.144144,-21.058058,-20.971972,-20.885885,-20.799799,-20.713715,-20.627628,-20.541542,-20.455456,-20.36937,-20.283283,-20.197197,-20.11111,-20.025024,-19.938938,-19.852854,-19.766768,-19.680681,-19.594595,-19.508509,-19.422422,-19.336336,-19.25025,-19.164164,-19.078077,-18.991991,-18.905907,-18.81982,-18.733734,-18.647648,-18.561562,-18.475475,-18.389389,-18.303303,-18.217216,-18.13113,-18.045046,-17.95896,-17.872873,-17.786787,-17.7007,-17.614614,-17.528528,-17.442442,-17.356356,-17.27027,-17.184185,-17.098099,-17.012012,-16.925926,-16.83984,-16.753754,-16.667667,-16.581581,-16.495495,-16.409409,-16.323324,-16.237238,-16.151152,-16.065065,-15.978979,-15.892893,-15.806807,-15.72072,-15.634635,-15.548549,-15.462462,-15.376376,-15.29029,-15.204205,-15.118118,-15.032032,-14.945946,-14.859859,-14.773774,-14.687688,-14.601602,-14.515515,-14.429429,-14.343344,-14.257257,-14.171171,-14.085085,-13.998999,-13.912913,-13.826827,-13.740741,-13.6546545,-13.568568,-13.482483,-13.396397,-13.31031,-13.224224,-13.138138,-13.0520525,-12.965966,-12.87988,-12.793794,-12.707707,-12.621622,-12.535536,-12.44945,-12.363363,-12.277277,-12.191191,-12.105105,-12.019019,-11.932933,-11.846847,-11.76076,-11.674675,-11.588589,-11.502502,-11.416416,-11.33033,-11.244245,-11.158158,-11.072072,-10.985986,-10.8998995,-10.813814,-10.727728,-10.641642,-10.555555,-10.469469,-10.383384,-10.2972975,-10.211211,-10.125125,-10.039039,-9.952953,-9.866867,-9.780781,-9.6946945,-9.608608,-9.522523,-9.436437,-9.35035,-9.264264,-9.178178,-9.0920925,-9.006006,-8.91992,-8.833834,-8.747747,-8.661662,-8.575576,-8.48949,-8.403403,-8.317317,-8.231232,-8.145145,-8.059059,-7.972973,-7.886887,-7.800801,-7.7147145,-7.6286287,-7.5425425,-7.4564567,-7.3703704,-7.284284,-7.1981983,-7.112112,-7.0260262,-6.93994,-6.8538537,-6.767768,-6.6816816,-6.5955954,-6.5095096,-6.4234233,-6.3373375,-6.251251,-6.165165,-6.079079,-5.992993,-5.906907,-5.820821,-5.7347345,-5.6486487,-5.5625625,-5.4764767,-5.3903904,-5.304304,-5.2182183,-5.132132,-5.0460463,-4.95996,-4.8738737,-4.787788,-4.7017016,-4.615616,-4.5295296,-4.4434433,-4.3573575,-4.271271,-4.185185,-4.099099,-4.013013,-3.9269269,-3.8408408,-3.7547548,-3.6686687,-3.5825825,-3.4964964,-3.4104104,-3.3243244,-3.2382383,-3.152152,-3.066066,-2.97998,-2.893894,-2.807808,-2.7217216,-2.6356356,-2.5495496,-2.4634635,-2.3773773,-2.2912912,-2.2052052,-2.1191192,-2.0330331,-1.946947,-1.8608608,-1.7747748,-1.6886886,-1.6026026,-1.5165166,-1.4304304,-1.3443444,-1.2582582,-1.1721722,-1.086086,-1.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/medium_positive.json b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/medium_positive.json new file mode 100644 index 000000000000..153518ac15e4 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/medium_positive.json @@ -0,0 +1 @@ +{"expected":[1.7182819,1.9626557,2.2289991,2.5192864,2.835671,3.1804981,3.556326,3.96594,4.4123783,4.8989525,5.429269,6.0072618,6.637216,7.3238025,8.072113,8.887697,9.776602,10.745422,11.801336,12.952178,14.20648,15.573548,17.06351,18.687422,20.457323,22.38634,24.48878,26.780224,29.277668,31.999634,34.966305,38.199688,41.723743,45.56461,49.750774,54.31327,59.285954,64.70565,70.61262,77.05061,84.06735,91.714935,100.05004,109.13442,119.035545,129.82672,141.58809,154.40681,168.37785,183.60498,200.20094,218.28897,238.00313,259.48947,282.90756,308.43082,336.24875,366.56754,399.6118,435.62695,474.87964,517.6614,564.28925,615.10864,670.497,730.8645,796.65936,868.3692,946.5254,1031.7083,1124.5491,1225.7357,1336.0197,1456.2175,1587.2219,1730.0037,1885.6206,2055.2285,2240.083,2441.5571,2661.144,2900.4702,3161.3135,3445.6064,3755.4578,4093.1606,4461.227,4862.383,5299.603,5776.129,6295.489,6861.5454,7478.4907,8150.8994,8883.758,9682.492,10553.041,11501.854,12535.964,13663.041,14891.429,16230.264,17689.46,19279.838,21013.193,22902.354,24961.375,27205.5,29651.375,32317.133,35222.51,38389.117,41840.402,45601.96,49701.68,54169.918,59039.902,64347.703,70132.67,76437.71,83309.5,90799.15,98962.11,107858.93,117555.58,128123.83,139642.3,152196.28,165878.88,180791.53,197044.66,214759.12,234066.14,255108.86,278043.3,303039.6,330282.75,359975.38,392337.38,427608.75,466051.0,507948.75,553613.6,603383.75,657628.25,716749.4,781184.75,851413.6,927956.1,1.01137975e6,1.1023032e6,1.2013996e6,1.309406e6,1.4271221e6,1.555421e6,1.695254e6,1.8476562e6,2.0137612e6,2.1947992e6,2.3921125e6,2.6071645e6,2.8415468e6,3.097003e6,3.3754248e6,3.6788768e6,4.009609e6,4.3700705e6,4.762941e6,5.1911315e6,5.657816e6,6.166456e6,6.720816e6,7.32502e6,7.983542e6,8.701265e6,9.483512e6,1.0336083e7,1.1265301e7,1.2278056e7,1.3381832e7,1.4584863e7,1.5896048e7,1.7325108e7,1.8882642e7,2.0580198e7,2.2430364e7,2.4446862e7,2.6644644e7,2.9040008e7,3.1650654e7,3.449606e7,3.7597268e7,4.0977276e7,4.4661144e7,4.86762e7,5.305221e7,5.782162e7,6.3019804e7,6.8685304e7,7.485999e7,8.158994e7,8.8924904e7,9.691928e7,1.0563236e8,1.15128744e8,1.25478856e8,1.3675946e8,1.4905418e8,1.6245419e8,1.7705854e8,1.9297618e8,2.103248e8,2.2923307e8,2.4984122e8,2.72302e8,2.9678208e8,3.2346288e8,3.525423e8,3.84236e8,4.1877894e8,4.5642646e8,4.9745936e8,5.421811e8,5.909234e8,6.440476e8,7.019477e8,7.6505306e8,8.338316e8,9.087934e8,9.904942e8,1.0795379e9,1.1765888e9,1.2823645e9,1.3976495e9,1.5232988e9,1.6602438e9,1.8095004e9,1.9721751e9,2.1494743e9,2.3427128e9,2.5533187e9,2.7828628e9,3.0330432e9,3.305715e9,3.6029e9,3.926802e9,4.2798228e9,4.66458e9,5.0839276e9,5.5409746e9,6.039099e9,6.582016e9,7.1737416e9,7.8186634e9,8.5215636e9,9.287655e9,1.0122619e10,1.1032646e10,1.2024485e10,1.310549e10,1.4283651e10,1.5567756e10,1.6967303e10,1.849267e10,2.0155167e10,2.1967124e10,2.3941976e10,2.6094369e10,2.844026e10,3.0997051e10,3.3783697e10,3.682079e10,4.0130994e10,4.3738784e10,4.767092e10,5.195655e10,5.6627462e10,6.171829e10,6.7266785e10,7.33141e10,7.9905055e10,8.708838e10,9.4917665e10,1.034508e11,1.1275106e11,1.2288741e11,1.3393504e11,1.4597585e11,1.5909913e11,1.734022e11,1.8899111e11,2.0598109e11,2.2449886e11,2.446814e11,2.6667832e11,2.906528e11,3.167826e11,3.4526147e11,3.763006e11,4.1013015e11,4.47001e11,4.871856e11,5.3098378e11,5.787194e11,6.3074645e11,6.874508e11,7.492529e11,8.16611e11,8.9002456e11,9.700381e11,1.0572449e12,1.1522893e12,1.2558807e12,1.3687848e12,1.491839e12,1.6259558e12,1.7721297e12,1.9314449e12,2.1050824e12,2.2943302e12,2.500591e12,2.7253953e12,2.9704035e12,3.2374438e12,3.5284913e12,3.8457039e12,4.191434e12,4.5682456e12,4.9789324e12,5.42654e12,5.914388e12,6.446093e12,7.025586e12,7.657189e12,8.345573e12,9.095843e12,9.913563e12,1.0804794e13,1.177615e13,1.283483e13,1.3988685e13,1.5246273e13,1.6616887e13,1.811075e13,1.9738915e13,2.151345e13,2.3447516e13,2.5555456e13,2.78529e13,3.0356885e13,3.308598e13,3.6060424e13,3.9302193e13,4.2835475e13,4.6686395e13,5.088352e13,5.545797e13,6.0443658e13,6.5877563e13,7.179998e13,7.8254824e13,8.52898e13,9.295738e13,1.01314286e14,1.1042247e14,1.2034949e14,1.31168956e14,1.4296109e14,1.5581334e14,1.6982101e14,1.85088e14,2.0172747e14,2.1986283e14,2.3962857e14,2.6117127e14,2.8465067e14,3.1024086e14,3.381316e14,3.6852836e14,4.016592e14,4.377685e14,4.7712402e14,5.2001766e14,5.6676744e14,6.1772005e14,6.7325324e14,7.33779e14,7.99746e14,8.716434e14,9.500045e14,1.0354102e15,1.1284939e15,1.2299459e15,1.3405185e15,1.4610316e15,1.5923789e15,1.7355343e15,1.8915594e15,2.0616034e15,2.2469423e15,2.448943e15,2.669104e15,2.9090576e15,3.1705827e15,3.4556193e15,3.7662807e15,4.1048707e15,4.4739e15,4.8761054e15,5.3144685e15,5.792241e15,6.312966e15,6.880504e15,7.4990634e15,8.173232e15,8.9080086e15,9.708841e15,1.058167e16,1.1532921e16,1.2569735e16,1.3699759e16,1.4931372e16,1.6273707e16,1.773672e16,1.9331257e16,2.1069145e16,2.2963268e16,2.5027674e16,2.727767e16,2.9729942e16,3.2402674e16,3.5315686e16,3.8490578e16,4.1950895e16,4.5722298e16,4.983275e16,5.431273e16,5.919546e16,6.4517156e16,7.0317003e16,7.663853e16,8.352835e16,9.103759e16,9.92219e16,1.0814198e17,1.1786398e17,1.2846e17,1.4000859e17,1.5259541e17,1.663138e17,1.8126547e17,1.975613e17,2.1532212e17,2.3467966e17,2.5577745e17,2.7877193e17,3.038336e17,3.3114837e17,3.609187e17,3.9336396e17,4.2872752e17,4.6727025e17,5.09278e17,5.550623e17,6.049626e17,6.5934895e17,7.1862465e17,7.832293e17,8.5364186e17,9.3038454e17,1.01402645e18,1.1051878e18,1.2045445e18,1.3128335e18,1.4308577e18,1.5594923e18,1.6996913e18,1.8524942e18,2.019034e18,2.2005458e18,2.3983666e18,2.6139806e18,2.8489784e18,3.1051025e18,3.3842523e18,3.6884978e18,4.0200952e18,4.381503e18,4.7754017e18,5.204712e18,5.6726174e18,6.182588e18,6.7384043e18,7.3441896e18,8.004435e18,8.7240365e18,9.50833e18,1.0363132e19,1.1294782e19,1.2310186e19,1.3416826e19,1.4623003e19,1.5937616e19,1.7370413e19,1.893202e19,2.0634016e19,2.248902e19,2.451079e19,2.671432e19,2.9115948e19,3.173348e19,3.4586332e19,3.7695657e19,4.108451e19,4.477802e19,4.880358e19,5.319104e19,5.797293e19,6.318472e19,6.8865048e19,7.505575e19,8.180329e19,8.915744e19,9.717272e19,1.0590858e20,1.154298e20,1.2580698e20,1.3711708e20,1.4944395e20,1.6287901e20,1.7752189e20,1.9348117e20,2.108752e20,2.2983296e20,2.5049501e20,2.7301461e20,2.975587e20,3.2430935e20,3.5346488e20,3.852415e20,4.1987485e20,4.5761998e20,4.987602e20,5.435989e20,5.9246866e20,6.457318e20,7.037833e20,7.6705365e20,8.360121e20,9.111698e20,9.930843e20,1.082363e21,1.17966775e21,1.2857203e21,1.401307e21,1.527285e21,1.6645885e21,1.8142356e21,1.977336e21,2.1550992e21,2.3488434e21,2.5599955e21,2.79014e21,3.0409746e21,3.314359e21,3.6123212e21,3.9370702e21,4.2910142e21,4.676778e21,5.097222e21,5.5554643e21,6.054902e21,6.59924e21,7.1925143e21,7.8391237e21,8.543864e21,9.31196e21,1.0149108e22,1.1061517e22,1.2055952e22,1.3139786e22,1.4321057e22,1.5608465e22,1.7011672e22,1.8541027e22,2.0207872e22,2.2024568e22,2.4004582e22,2.6162604e22,2.851463e22,3.1078107e22,3.387204e22,3.6917148e22,4.023601e22,4.3853243e22,4.7795667e22,5.2092515e22,5.677565e22,6.18798e22,6.7442814e22,7.3505947e22,8.0114155e22,8.731611e22,9.516587e22,1.0372131e23,1.130459e23,1.2320876e23,1.3428527e23,1.4635757e23,1.5951516e23,1.7385563e23,1.8948532e23,2.065201e23,2.2508634e23,2.4532168e23,2.6737619e23,2.9141341e23,3.1761157e23,3.4616497e23,3.772853e23,4.112034e23,4.4817074e23,4.884596e23,5.3237228e23,5.802327e23,6.323958e23,6.892485e23,7.5121216e23,8.1874634e23,8.9235195e23,9.7257475e23,1.0600095e24,1.15530474e24,1.2591671e24,1.3723666e24,1.4957429e24,1.6302107e24,1.7767672e24,1.9364993e24,2.1105911e24,2.300334e24,2.507135e24,2.7325272e24,2.978171e24,3.2459096e24,3.537718e24,3.85576e24,4.2023943e24,4.580191e24,4.991952e24,5.44073e24,5.9298535e24,6.46295e24,7.043971e24,7.6772265e24,8.367412e24,9.1196454e24,9.939505e24,1.083307e25,1.1806967e25,1.2868416e25,1.4025292e25,1.5286171e25,1.666034e25,1.815811e25,1.979053e25,2.1569706e25,2.350883e25,2.5622283e25,2.7925735e25,3.0436268e25,3.3172499e25,3.615472e25,3.940504e25,4.2947567e25,4.6808567e25,5.1016675e25,5.5603094e25,6.060183e25,6.6049955e25,7.198787e25,7.845961e25,8.551316e25,9.320046e25,1.0157922e26,1.1071122e26,1.206642e26,1.3151196e26,1.4333493e26,1.5622079e26,1.7026509e26,1.8557198e26,2.0225497e26,2.2043776e26,2.402552e26,2.6185423e26,2.85395e26,3.1105213e26,3.390158e26,3.6949345e26,4.0271105e26,4.3891493e26,4.783735e26,5.2137948e26,5.682495e26,6.1933534e26,6.750138e26,7.356978e26,8.0183724e26,8.739227e26,9.524887e26,1.03811775e27,1.1314449e27,1.2331622e27,1.3440239e27,1.4648521e27,1.5965428e27,1.7400727e27,1.8965058e27,2.0670022e27,2.2528266e27,2.4553565e27,2.676094e27,2.9166758e27,3.1788737e27,3.4646557e27,3.7761294e27,4.1156047e27,4.485599e27,4.888856e27,5.328366e27,5.807388e27,6.329474e27,6.898522e27,7.518673e27,8.194573e27,8.9313025e27,9.734193e27,1.060934e28,1.1563079e28,1.2602653e28,1.3735584e28,1.4970474e28,1.6316263e28,1.7783169e28,1.9381808e28,2.1124319e28,2.3023315e28,2.5093215e28,2.7349e28,2.98078e28,3.2487407e28,3.5408172e28,3.859123e28,4.206076e28,4.584186e28,4.996287e28,5.4454755e28,5.935003e28,6.4685866e28,7.050088e28,7.6839226e28,8.374678e28,9.1276e28,9.948135e28,1.0842518e29,1.1817219e29,1.2879641e29,1.40374705e29,1.5299503e29,1.667487e29,1.8174016e29,1.980779e29,2.15886e29,2.3529335e29,2.5644532e29,2.7950091e29,3.0462698e29,3.3201432e29,3.618611e29,3.9439407e29,4.298486e29,4.6849393e29,5.1060977e29,5.565159e29,6.0654453e29,6.610756e29,7.2050385e29,7.8528036e29,8.558741e29,9.32821e29,1.01667805e30,1.1080821e30,1.2076944e30,1.3162716e30,1.4345993e30,1.5635644e30,1.7041358e30,1.8573312e30,2.0243136e30,2.2062917e30,2.4046473e30,2.620816e30,2.856439e30,3.113222e30,3.393115e30,3.698143e30,4.0306228e30,4.3929605e30,4.7879075e30,5.218322e30,5.6874725e30,6.198755e30,6.756051e30,7.363394e30,8.0253966e30,8.746849e30,9.5331574e30,1.0390231e31,1.1324274e31,1.2342377e31,1.345191e31,1.4661297e31,1.5979293e31,1.7415903e31,1.8981526e31,2.068805e31,2.2547828e31,2.4574979e31,2.6784177e31,2.9192195e31,3.1816461e31,3.4676906e31,3.7794227e31,4.1192097e31,4.4895114e31,4.893101e31,5.333013e31,5.8124307e31,6.334994e31,6.9044863e31,7.5252305e31,8.20172e31,8.939092e31,9.742682e31,1.0618593e32,1.1573165e32,1.2613645e32,1.3747563e32,1.4983531e32,1.6330493e32,1.7798678e32,1.9398712e32,2.1142743e32,2.3043395e32,2.5115101e32,2.7372852e32,2.9833568e32,3.251574e32,3.543878e32,3.862489e32,4.209712e32,4.588184e32,5.000644e32,5.450225e32,5.940179e32,6.474228e32,7.0562366e32,7.690624e32,8.381982e32,9.1355596e32,9.956812e32,1.0851974e33,1.1827526e33,1.2890873e33,1.4049714e33,1.5312846e33,1.6689414e33,1.8189728e33,1.9825067e33,2.1607265e33,2.3549855e33,2.5666898e33,2.7974468e33,3.0489265e33,3.323039e33,3.6217675e33,3.9473807e33,4.302235e33,4.6890253e33,5.110551e33,5.570013e33,6.0707354e33,6.616522e33,7.211322e33,7.859653e33,8.566205e33,9.336346e33,1.0175648e34,1.10904e34,1.2087477e34,1.3174095e34,1.4358506e34,1.564928e34,1.7056221e34,1.8589512e34,2.0260793e34,2.2082161e34,2.4067446e34,2.6231019e34,2.8589304e34,3.1159374e34,3.3960743e34,3.7013684e34,4.034138e34,4.3967916e34,4.792083e34,5.2228735e34,5.69239e34,6.2041613e34,6.761892e34,7.3698166e34,8.032335e34,8.754478e34,9.541472e34,1.0399294e35,1.133415e35,1.2353142e35,1.3463642e35,1.4674085e35,1.5993229e35,1.7431093e35,1.8998081e35,2.0706094e35,2.2567492e35,2.4596413e35,2.6807536e35,2.9217655e35,3.1844211e35,3.4706883e35,3.782719e35,4.122771e35,4.493427e35,4.897369e35,5.3376643e35,5.8175e35,6.3405197e35,6.9105085e35,7.5317936e35,8.2088735e35,8.9468886e35,9.75118e35,1.0627854e36,1.1583258e36,1.2624646e36,1.3759553e36,1.49966e36,1.6344737e36,1.7814202e36,1.9415631e36,2.1161021e36,2.3063494e36,2.5136814e36,2.7396728e36,2.985959e36,3.25441e36,3.546969e36,3.8658577e36,4.2133835e36,4.5921857e36,5.0050056e36,5.454978e36,5.94536e36,6.479875e36,7.062391e36,7.6973316e36,8.3892927e36,9.1435277e36,9.965496e36,1.0861356e37,1.1837841e37,1.2902019e37,1.4061968e37,1.5326085e37,1.6703969e37,1.8205592e37,1.9842357e37,2.162611e37,2.3570394e37,2.5689284e37,2.7998865e37,3.051586e37,3.3259372e37,3.6249262e37,3.9508235e37,4.3059875e37,4.693115e37,5.115008e37,5.574871e37,6.0760303e37],"x":[1.0,1.086086,1.1721722,1.2582582,1.3443444,1.4304304,1.5165166,1.6026026,1.6886886,1.7747748,1.8608608,1.946947,2.0330331,2.1191192,2.2052052,2.2912912,2.3773773,2.4634635,2.5495496,2.6356356,2.7217216,2.807808,2.893894,2.97998,3.066066,3.152152,3.2382383,3.3243244,3.4104104,3.4964964,3.5825825,3.6686687,3.7547548,3.8408408,3.9269269,4.013013,4.099099,4.185185,4.271271,4.3573575,4.4434433,4.5295296,4.615616,4.7017016,4.787788,4.8738737,4.95996,5.0460463,5.132132,5.2182183,5.304304,5.3903904,5.4764767,5.5625625,5.6486487,5.7347345,5.820821,5.906907,5.992993,6.079079,6.165165,6.251251,6.3373375,6.4234233,6.5095096,6.5955954,6.6816816,6.767768,6.8538537,6.93994,7.0260262,7.112112,7.1981983,7.284284,7.3703704,7.4564567,7.5425425,7.6286287,7.7147145,7.800801,7.886887,7.972973,8.059059,8.145145,8.231232,8.317317,8.403403,8.48949,8.575576,8.661662,8.747747,8.833834,8.91992,9.006006,9.0920925,9.178178,9.264264,9.35035,9.436437,9.522523,9.608608,9.6946945,9.780781,9.866867,9.952953,10.039039,10.125125,10.211211,10.2972975,10.383384,10.469469,10.555555,10.641642,10.727728,10.813814,10.8998995,10.985986,11.072072,11.158158,11.244245,11.33033,11.416416,11.502502,11.588589,11.674675,11.76076,11.846847,11.932933,12.019019,12.105105,12.191191,12.277277,12.363363,12.44945,12.535536,12.621622,12.707707,12.793794,12.87988,12.965966,13.0520525,13.138138,13.224224,13.31031,13.396397,13.482483,13.568568,13.6546545,13.740741,13.826827,13.912913,13.998999,14.085085,14.171171,14.257257,14.343344,14.429429,14.515515,14.601602,14.687688,14.773774,14.859859,14.945946,15.032032,15.118118,15.204205,15.29029,15.376376,15.462462,15.548549,15.634635,15.72072,15.806807,15.892893,15.978979,16.065065,16.151152,16.237238,16.323324,16.409409,16.495495,16.581581,16.667667,16.753754,16.83984,16.925926,17.012012,17.098099,17.184185,17.27027,17.356356,17.442442,17.528528,17.614614,17.7007,17.786787,17.872873,17.95896,18.045046,18.13113,18.217216,18.303303,18.389389,18.475475,18.561562,18.647648,18.733734,18.81982,18.905907,18.991991,19.078077,19.164164,19.25025,19.336336,19.422422,19.508509,19.594595,19.680681,19.766768,19.852854,19.938938,20.025024,20.11111,20.197197,20.283283,20.36937,20.455456,20.541542,20.627628,20.713715,20.799799,20.885885,20.971972,21.058058,21.144144,21.23023,21.316317,21.402403,21.48849,21.574575,21.66066,21.746746,21.832832,21.918919,22.005005,22.091091,22.177177,22.263264,22.34935,22.435436,22.52152,22.607607,22.693693,22.77978,22.865866,22.951952,23.038038,23.124125,23.21021,23.296297,23.382381,23.468468,23.554554,23.64064,23.726727,23.812813,23.8989,23.984985,24.071072,24.157158,24.243244,24.329329,24.415415,24.501501,24.587587,24.673674,24.75976,24.845846,24.931932,25.018019,25.104105,25.19019,25.276276,25.362362,25.448448,25.534534,25.62062,25.706707,25.792793,25.87888,25.964966,26.05105,26.137136,26.223223,26.309309,26.395395,26.481482,26.567568,26.653654,26.73974,26.825827,26.911911,26.997997,27.084084,27.17017,27.256256,27.342342,27.428429,27.514515,27.600601,27.686687,27.772772,27.858858,27.944944,28.03103,28.117117,28.203203,28.28929,28.375376,28.461462,28.547548,28.633635,28.719719,28.805805,28.891891,28.977978,29.064064,29.15015,29.236237,29.322323,29.40841,29.494495,29.58058,29.666666,29.752752,29.838839,29.924925,30.011011,30.097097,30.183184,30.26927,30.355356,30.44144,30.527527,30.613613,30.6997,30.785786,30.871872,30.957958,31.044044,31.13013,31.216217,31.302301,31.388388,31.474474,31.56056,31.646646,31.732733,31.818819,31.904905,31.990992,32.077076,32.163162,32.24925,32.335335,32.42142,32.507507,32.593594,32.67968,32.765766,32.851852,32.93794,33.024025,33.11011,33.196198,33.282284,33.36837,33.454456,33.54054,33.626625,33.71271,33.798798,33.884884,33.97097,34.057056,34.143143,34.22923,34.315315,34.4014,34.487488,34.573574,34.65966,34.745747,34.831833,34.91792,35.004005,35.09009,35.176178,35.26226,35.348347,35.434433,35.52052,35.606606,35.69269,35.778778,35.864864,35.95095,36.037037,36.123123,36.20921,36.295296,36.381382,36.46747,36.553555,36.63964,36.725727,36.811813,36.8979,36.983982,37.07007,37.156155,37.24224,37.328327,37.414413,37.5005,37.586586,37.672672,37.75876,37.844845,37.93093,38.017017,38.103104,38.18919,38.275276,38.361362,38.44745,38.533535,38.61962,38.705708,38.79179,38.877876,38.963963,39.05005,39.136135,39.22222,39.308308,39.394394,39.48048,39.566566,39.652653,39.73874,39.824825,39.91091,39.996998,40.083084,40.16917,40.255257,40.341343,40.42743,40.51351,40.599598,40.685684,40.77177,40.857857,40.943943,41.03003,41.116116,41.2022,41.28829,41.374374,41.46046,41.546547,41.632633,41.71872,41.804806,41.890892,41.97698,42.063065,42.14915,42.235237,42.32132,42.407406,42.493492,42.57958,42.665665,42.75175,42.837837,42.923923,43.01001,43.096096,43.182182,43.26827,43.354355,43.44044,43.526527,43.612614,43.6987,43.784786,43.870872,43.95696,44.04304,44.129128,44.215214,44.3013,44.387386,44.473473,44.55956,44.645645,44.73173,44.817818,44.903904,44.98999,45.076077,45.162163,45.24825,45.334335,45.42042,45.506508,45.592594,45.67868,45.764763,45.85085,45.936935,46.02302,46.109108,46.195194,46.28128,46.367367,46.453453,46.53954,46.625626,46.71171,46.7978,46.883884,46.96997,47.056057,47.142143,47.22823,47.314316,47.400402,47.48649,47.57257,47.658657,47.744743,47.83083,47.916916,48.003002,48.08909,48.175175,48.26126,48.347347,48.433434,48.51952,48.605606,48.691692,48.77778,48.863865,48.94995,49.036037,49.122124,49.20821,49.294292,49.38038,49.466465,49.55255,49.638638,49.724724,49.81081,49.896896,49.982983,50.06907,50.155155,50.24124,50.327328,50.413414,50.4995,50.585587,50.671673,50.75776,50.843845,50.92993,51.016018,51.1021,51.188187,51.274273,51.36036,51.446445,51.53253,51.618618,51.704704,51.79079,51.876877,51.962963,52.04905,52.135136,52.221222,52.30731,52.393394,52.47948,52.565567,52.651653,52.73774,52.823822,52.90991,52.995995,53.08208,53.168167,53.254253,53.34034,53.426426,53.512512,53.5986,53.684685,53.77077,53.856857,53.942944,54.02903,54.115116,54.201202,54.28729,54.373375,54.45946,54.545544,54.63163,54.717716,54.803802,54.88989,54.975975,55.06206,55.148148,55.234234,55.32032,55.406406,55.492493,55.57858,55.664665,55.75075,55.836838,55.922924,56.00901,56.095097,56.181183,56.26727,56.35335,56.439438,56.525524,56.61161,56.697697,56.783783,56.86987,56.955956,57.04204,57.128128,57.214214,57.3003,57.386387,57.472473,57.55856,57.644646,57.730732,57.81682,57.902905,57.98899,58.075073,58.16116,58.247246,58.333332,58.41942,58.505505,58.59159,58.677677,58.763763,58.84985,58.935936,59.022022,59.10811,59.194195,59.28028,59.366367,59.452454,59.53854,59.624626,59.710712,59.796795,59.88288,59.968967,60.055054,60.14114,60.227226,60.313313,60.3994,60.485485,60.57157,60.657658,60.743744,60.82983,60.915916,61.002003,61.08809,61.174175,61.26026,61.346348,61.432434,61.51852,61.604603,61.69069,61.776775,61.86286,61.948948,62.035034,62.12112,62.207207,62.293293,62.37938,62.465466,62.55155,62.637638,62.723724,62.80981,62.895897,62.981983,63.06807,63.154156,63.240242,63.326324,63.41241,63.498497,63.584583,63.67067,63.756756,63.842842,63.92893,64.015015,64.101105,64.18719,64.27327,64.35936,64.44544,64.53153,64.617615,64.703705,64.78979,64.87588,64.96196,65.04805,65.13413,65.22022,65.306305,65.392395,65.47848,65.56457,65.65065,65.73674,65.82282,65.90891,65.994995,66.08108,66.16717,66.25325,66.33934,66.42542,66.51151,66.597595,66.683685,66.76977,66.85586,66.94194,67.02803,67.11411,67.2002,67.286285,67.372375,67.45846,67.54455,67.63063,67.71671,67.8028,67.888885,67.974976,68.06106,68.14715,68.23323,68.31932,68.4054,68.49149,68.577576,68.663666,68.74975,68.83584,68.92192,69.00801,69.09409,69.18018,69.266266,69.352356,69.43844,69.52452,69.61061,69.69669,69.78278,69.868866,69.954956,70.04104,70.12713,70.21321,70.2993,70.38538,70.47147,70.557556,70.64365,70.72973,70.81582,70.9019,70.98799,71.07407,71.160164,71.24625,71.33233,71.41842,71.5045,71.59059,71.676674,71.762764,71.84885,71.93494,72.02102,72.10711,72.19319,72.27928,72.365364,72.451454,72.53754,72.62363,72.70971,72.7958,72.88188,72.967964,73.054054,73.14014,73.22623,73.31231,73.3984,73.48448,73.57057,73.656654,73.742744,73.82883,73.91492,74.001,74.08709,74.17317,74.25926,74.345345,74.431435,74.51752,74.60361,74.68969,74.77577,74.86186,74.947945,75.034035,75.12012,75.20621,75.29229,75.37838,75.46446,75.55055,75.636635,75.722725,75.80881,75.8949,75.98098,76.06707,76.15315,76.23924,76.325325,76.411415,76.4975,76.58358,76.66967,76.75575,76.84184,76.927925,77.014015,77.1001,77.18619,77.27227,77.35836,77.44444,77.53053,77.616615,77.702705,77.78879,77.87488,77.96096,78.04705,78.13313,78.21922,78.305305,78.39139,78.47748,78.56356,78.64965,78.73573,78.82182,78.907906,78.993996,79.08008,79.16617,79.25225,79.33834,79.42442,79.51051,79.596596,79.682686,79.76877,79.85486,79.94094,80.02702,80.11311,80.199196,80.285286,80.37137,80.45746,80.54354,80.62963,80.71571,80.8018,80.887886,80.973976,81.06006,81.14615,81.23223,81.31832,81.4044,81.49049,81.57658,81.66267,81.74875,81.83483,81.92092,82.007,82.093094,82.17918,82.26527,82.35135,82.43744,82.52352,82.60961,82.695694,82.781784,82.86787,82.95396,83.04004,83.12613,83.21221,83.2983,83.384384,83.470474,83.55656,83.64264,83.72873,83.81481,83.9009,83.986984,84.073074,84.15916,84.24525,84.33133,84.41742,84.5035,84.58959,84.675674,84.761765,84.84785,84.93394,85.02002,85.10611,85.19219,85.278275,85.364365,85.45045,85.53654,85.62262,85.70871,85.79479,85.88088,85.966965,86.053055,86.13914,86.22523,86.31131,86.3974,86.48348,86.56957,86.655655,86.741745,86.82783,86.91392,87.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/runner.jl new file mode 100755 index 000000000000..62f258a9140f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/runner.jl @@ -0,0 +1,82 @@ +#!/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( -87.0f0, stop = -1.0f0, length = 1000 ); +julia> gen( x, "medium_negative.json" ); +``` +""" +function gen( domain, name ) + x = collect( domain ); + y = Float32.( expm1.( 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 ); + +# Generate fixture data for medium negative values: +x = range( -87.0f0, stop = -1.0f0, length = 1000 ); +gen( x, "medium_negative.json" ); + +# Generate fixture data for medium positive values: +x = range( 1.0f0, stop = 87.0f0, length = 1000 ); +gen( x, "medium_positive.json" ); + +# Generate fixture data for small negative values: +x = range( -1.0f0, stop = -2.0f0^-25, length = 1000 ); +gen( x, "small_negative.json" ); + +# Generate fixture data for small positive values: +x = range( 2.0f0^-25, stop = 1.0f0, length = 1000 ); +gen( x, "small_positive.json" ); + +# Generate fixture data for tiny values: +x = range( -2.0f0^-25, stop = 2.0f0^-25, length = 1000 ); +gen( x, "tiny.json" ); diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/small_negative.json b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/small_negative.json new file mode 100644 index 000000000000..42f80d226ccf --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/small_negative.json @@ -0,0 +1 @@ +{"expected":[-0.63212055,-0.63175213,-0.6313833,-0.63101417,-0.6306446,-0.6302747,-0.62990445,-0.62953377,-0.6291627,-0.62879133,-0.6284196,-0.62804747,-0.62767494,-0.62730205,-0.6269288,-0.62655514,-0.6261812,-0.6258068,-0.625432,-0.6250569,-0.6246814,-0.6243055,-0.62392926,-0.6235526,-0.6231756,-0.6227982,-0.62242043,-0.6220423,-0.62166375,-0.62128484,-0.6209056,-0.6205259,-0.62014586,-0.61976546,-0.61938465,-0.6190035,-0.6186219,-0.61823994,-0.61785764,-0.6174749,-0.6170918,-0.61670834,-0.6163244,-0.6159402,-0.6155555,-0.61517054,-0.61478513,-0.6143993,-0.61401314,-0.6136266,-0.61323965,-0.6128523,-0.61246455,-0.6120764,-0.6116879,-0.61129904,-0.61090976,-0.61052006,-0.61013,-0.60973954,-0.6093487,-0.60895747,-0.6085658,-0.6081738,-0.6077814,-0.60738856,-0.6069954,-0.6066018,-0.6062078,-0.60581344,-0.6054186,-0.60502344,-0.6046279,-0.60423195,-0.6038356,-0.6034388,-0.60304165,-0.6026441,-0.60224617,-0.60184777,-0.601449,-0.6010499,-0.60065037,-0.60025036,-0.59985006,-0.5994493,-0.59904814,-0.5986466,-0.5982446,-0.5978423,-0.5974395,-0.59703636,-0.5966328,-0.5962288,-0.5958244,-0.59541965,-0.59501445,-0.59460884,-0.5942029,-0.59379643,-0.59338963,-0.5929824,-0.5925748,-0.5921668,-0.5917583,-0.5913495,-0.5909402,-0.5905305,-0.59012043,-0.58970994,-0.589299,-0.5888877,-0.588476,-0.58806384,-0.5876513,-0.5872383,-0.58682495,-0.5864111,-0.5859969,-0.5855823,-0.5851673,-0.5847518,-0.5843359,-0.58391964,-0.58350295,-0.58308583,-0.5826683,-0.5822503,-0.58183193,-0.58141315,-0.58099395,-0.5805743,-0.58015424,-0.5797338,-0.57931286,-0.5788916,-0.5784698,-0.57804763,-0.57762504,-0.5772021,-0.57677865,-0.57635474,-0.5759305,-0.5755058,-0.57508063,-0.5746551,-0.5742291,-0.5738027,-0.5733759,-0.5729486,-0.5725209,-0.5720928,-0.5716642,-0.57123524,-0.57080585,-0.570376,-0.56994575,-0.56951505,-0.56908387,-0.56865233,-0.5682203,-0.5677879,-0.56735504,-0.5669217,-0.566488,-0.56605387,-0.56561923,-0.56518424,-0.56474876,-0.5643128,-0.5638765,-0.5634397,-0.5630025,-0.56256485,-0.56212676,-0.56168824,-0.56124926,-0.56080985,-0.56036997,-0.5599297,-0.55948895,-0.5590478,-0.5586062,-0.5581641,-0.5577216,-0.5572787,-0.5568353,-0.5563915,-0.5559472,-0.5555025,-0.5550573,-0.5546117,-0.55416566,-0.55371916,-0.5532722,-0.5528248,-0.5523769,-0.55192864,-0.55147994,-0.5510307,-0.5505811,-0.55013096,-0.5496804,-0.54922944,-0.548778,-0.5483261,-0.54787374,-0.5474209,-0.5469677,-0.546514,-0.5460598,-0.5456052,-0.5451501,-0.54469454,-0.54423857,-0.5437821,-0.54332525,-0.54286784,-0.5424101,-0.5419518,-0.54149306,-0.54103386,-0.5405742,-0.54011405,-0.5396535,-0.53919244,-0.538731,-0.538269,-0.5378066,-0.5373437,-0.5368803,-0.53641653,-0.5359522,-0.5354875,-0.53502226,-0.5345566,-0.53409046,-0.5336239,-0.53315675,-0.5326892,-0.5322212,-0.53175277,-0.5312838,-0.53081435,-0.5303445,-0.5298741,-0.52940327,-0.528932,-0.5284602,-0.52798796,-0.52751523,-0.52704203,-0.52656835,-0.52609426,-0.5256196,-0.5251445,-0.52466893,-0.5241929,-0.5237164,-0.5232394,-0.52276194,-0.522284,-0.5218055,-0.5213266,-0.5208472,-0.5203673,-0.519887,-0.51940614,-0.51892483,-0.518443,-0.5179607,-0.517478,-0.5169947,-0.516511,-0.5160268,-0.5155421,-0.5150569,-0.51457125,-0.51408505,-0.51359844,-0.5131113,-0.51262367,-0.51213557,-0.511647,-0.5111579,-0.5106683,-0.51017827,-0.50968766,-0.50919664,-0.5087051,-0.50821304,-0.50772053,-0.50722754,-0.506734,-0.50624,-0.5057455,-0.5052505,-0.504755,-0.504259,-0.50376254,-0.50326556,-0.50276804,-0.5022701,-0.5017716,-0.5012726,-0.50077313,-0.50027317,-0.4997727,-0.49927172,-0.49877024,-0.49826828,-0.49776578,-0.4972628,-0.4967593,-0.4962553,-0.4957508,-0.49524578,-0.49474028,-0.49423426,-0.49372774,-0.49322072,-0.49271315,-0.4922051,-0.49169657,-0.49118748,-0.49067792,-0.49016783,-0.48965722,-0.4891461,-0.4886345,-0.48812237,-0.4876097,-0.48709658,-0.4865829,-0.4860687,-0.485554,-0.4850388,-0.48452306,-0.4840068,-0.48349002,-0.48297274,-0.48245493,-0.4819366,-0.48141778,-0.4808984,-0.48037854,-0.47985813,-0.47933722,-0.47881576,-0.4782938,-0.4777713,-0.47724828,-0.47672474,-0.4762007,-0.47567612,-0.475151,-0.47462535,-0.4740992,-0.47357252,-0.4730453,-0.47251755,-0.47198927,-0.47146046,-0.47093114,-0.47040126,-0.46987087,-0.46933994,-0.4688085,-0.4682765,-0.46774396,-0.4672109,-0.4666773,-0.4661432,-0.46560854,-0.46507332,-0.4645376,-0.46400133,-0.46346453,-0.4629272,-0.46238932,-0.46185088,-0.46131194,-0.46077242,-0.4602324,-0.45969182,-0.4591507,-0.45860904,-0.45806685,-0.4575241,-0.4569808,-0.45643696,-0.4558926,-0.45534766,-0.4548022,-0.45425618,-0.4537096,-0.4531625,-0.45261484,-0.45206663,-0.45151788,-0.45096856,-0.4504187,-0.44986832,-0.44931737,-0.44876584,-0.4482138,-0.44766116,-0.447108,-0.44655427,-0.446,-0.44544518,-0.44488978,-0.44433385,-0.44377735,-0.4432203,-0.44266266,-0.4421045,-0.44154575,-0.44098645,-0.44042662,-0.4398662,-0.43930522,-0.43874368,-0.43818158,-0.4376189,-0.4370557,-0.4364919,-0.43592757,-0.43536264,-0.43479714,-0.4342311,-0.43366447,-0.4330973,-0.43252954,-0.4319612,-0.43139234,-0.43082288,-0.43025282,-0.42968222,-0.42911106,-0.4285393,-0.42796698,-0.4273941,-0.42682064,-0.42624658,-0.42567196,-0.42509678,-0.42452103,-0.42394468,-0.42336777,-0.42279026,-0.42221218,-0.42163354,-0.4210543,-0.42047447,-0.41989407,-0.4193131,-0.41873154,-0.4181494,-0.4175667,-0.41698337,-0.41639948,-0.415815,-0.41522995,-0.4146443,-0.41405806,-0.41347125,-0.41288382,-0.41229582,-0.41170725,-0.41111806,-0.4105283,-0.40993795,-0.409347,-0.40875542,-0.40816328,-0.40757057,-0.40697724,-0.40638334,-0.40578884,-0.40519372,-0.40459803,-0.4040017,-0.40340483,-0.40280735,-0.40220925,-0.40161055,-0.4010113,-0.4004114,-0.3998109,-0.3992098,-0.39860812,-0.3980058,-0.3974029,-0.39679942,-0.39619532,-0.3955906,-0.3949853,-0.39437938,-0.39377284,-0.3931657,-0.39255795,-0.3919496,-0.39134064,-0.39073107,-0.39012086,-0.3895101,-0.38889867,-0.38828665,-0.38767403,-0.3870608,-0.38644692,-0.38583243,-0.38521737,-0.38460165,-0.38398534,-0.38336837,-0.38275084,-0.38213265,-0.38151386,-0.38089445,-0.38027442,-0.37965375,-0.37903246,-0.37841058,-0.37778804,-0.3771649,-0.37654114,-0.37591675,-0.3752917,-0.37466606,-0.3740398,-0.3734129,-0.37278536,-0.37215722,-0.37152842,-0.37089902,-0.37026897,-0.3696383,-0.369007,-0.36837503,-0.36774248,-0.36710927,-0.36647543,-0.36584094,-0.36520582,-0.36457008,-0.3639337,-0.3632967,-0.36265904,-0.36202073,-0.3613818,-0.3607422,-0.36010197,-0.35946113,-0.3588196,-0.35817748,-0.35753468,-0.35689124,-0.3562472,-0.35560247,-0.3549571,-0.35431108,-0.35366443,-0.35301712,-0.35236916,-0.35172057,-0.3510713,-0.3504214,-0.34977084,-0.34911963,-0.3484678,-0.34781528,-0.34716213,-0.3465083,-0.34585384,-0.3451987,-0.34454292,-0.34388646,-0.34322938,-0.34257162,-0.3419132,-0.34125412,-0.34059438,-0.339934,-0.33927295,-0.33861122,-0.33794883,-0.3372858,-0.3366221,-0.3359577,-0.33529267,-0.33462697,-0.3339606,-0.33329356,-0.33262584,-0.33195746,-0.33128843,-0.3306187,-0.3299483,-0.32927725,-0.32860553,-0.32793313,-0.32726005,-0.3265863,-0.32591185,-0.32523677,-0.32456097,-0.32388452,-0.3232074,-0.32252958,-0.3218511,-0.32117194,-0.3204921,-0.31981155,-0.31913033,-0.31844845,-0.3177659,-0.3170826,-0.31639868,-0.31571406,-0.31502873,-0.31434274,-0.31365606,-0.31296867,-0.31228063,-0.31159186,-0.31090242,-0.31021228,-0.30952147,-0.30882993,-0.30813774,-0.30744484,-0.30675125,-0.30605695,-0.30536196,-0.30466628,-0.30396992,-0.30327284,-0.30257505,-0.30187657,-0.3011774,-0.30047753,-0.29977697,-0.2990757,-0.29837373,-0.29767105,-0.29696766,-0.29626358,-0.29555878,-0.29485327,-0.29414707,-0.29344016,-0.29273254,-0.2920242,-0.29131517,-0.29060543,-0.28989497,-0.28918377,-0.28847188,-0.28775927,-0.287046,-0.28633195,-0.2856172,-0.28490177,-0.2841856,-0.2834687,-0.28275108,-0.28203276,-0.28131372,-0.28059396,-0.27987346,-0.27915224,-0.2784303,-0.27770767,-0.2769843,-0.2762602,-0.27553537,-0.2748098,-0.27408352,-0.27335653,-0.27262878,-0.27190033,-0.27117115,-0.2704412,-0.26971057,-0.2689792,-0.26824707,-0.2675142,-0.2667806,-0.26604632,-0.26531124,-0.26457545,-0.26383892,-0.26310167,-0.26236364,-0.2616249,-0.26088542,-0.2601452,-0.25940424,-0.25866252,-0.2579201,-0.25717688,-0.25643295,-0.25568825,-0.25494283,-0.25419664,-0.25344974,-0.25270206,-0.25195363,-0.25120446,-0.25045452,-0.24970385,-0.24895243,-0.24820027,-0.24744733,-0.24669366,-0.24593921,-0.24518402,-0.24442807,-0.24367136,-0.2429139,-0.24215567,-0.2413967,-0.24063694,-0.23987645,-0.23911518,-0.23835315,-0.23759036,-0.2368268,-0.2360625,-0.23529741,-0.23453155,-0.23376493,-0.23299755,-0.2322294,-0.23146047,-0.23069078,-0.22992031,-0.22914907,-0.22837707,-0.22760428,-0.22683074,-0.22605641,-0.2252813,-0.22450541,-0.22372876,-0.22295132,-0.22217311,-0.2213941,-0.22061433,-0.21983376,-0.21905243,-0.21827032,-0.21748741,-0.21670371,-0.21591924,-0.215134,-0.21434794,-0.21356112,-0.21277349,-0.21198508,-0.21119589,-0.2104059,-0.20961511,-0.20882355,-0.20803118,-0.20723802,-0.20644407,-0.20564932,-0.20485377,-0.20405744,-0.2032603,-0.20246236,-0.20166363,-0.20086409,-0.20006375,-0.1992626,-0.19846067,-0.19765793,-0.19685438,-0.19605003,-0.19524488,-0.1944389,-0.19363214,-0.19282456,-0.19201617,-0.19120698,-0.19039696,-0.18958615,-0.18877451,-0.18796207,-0.18714881,-0.18633474,-0.18551986,-0.18470415,-0.18388763,-0.1830703,-0.18225214,-0.18143317,-0.18061337,-0.17979275,-0.1789713,-0.17814904,-0.17732595,-0.17650205,-0.17567731,-0.17485175,-0.17402536,-0.17319815,-0.1723701,-0.17154123,-0.17071153,-0.169881,-0.16904964,-0.16821744,-0.1673844,-0.16655053,-0.16571583,-0.16488029,-0.16404392,-0.16320671,-0.16236866,-0.16152978,-0.16069004,-0.15984948,-0.15900806,-0.15816581,-0.1573227,-0.15647875,-0.15563397,-0.15478833,-0.15394185,-0.15309452,-0.15224634,-0.15139732,-0.15054744,-0.14969671,-0.14884514,-0.1479927,-0.14713942,-0.14628527,-0.14543028,-0.14457442,-0.1437177,-0.14286014,-0.14200172,-0.14114243,-0.14028229,-0.13942127,-0.1385594,-0.13769667,-0.13683307,-0.13596861,-0.13510329,-0.13423707,-0.13337001,-0.13250208,-0.13163328,-0.1307636,-0.12989306,-0.12902164,-0.12814936,-0.12727621,-0.12640217,-0.12552726,-0.12465148,-0.12377481,-0.122897275,-0.12201885,-0.12113955,-0.120259374,-0.11937831,-0.118496366,-0.11761354,-0.11672982,-0.115845226,-0.11495974,-0.11407337,-0.11318611,-0.11229797,-0.111408934,-0.11051901,-0.10962819,-0.108736485,-0.10784388,-0.10695039,-0.106056,-0.105160706,-0.10426452,-0.10336744,-0.10246946,-0.101570584,-0.10067081,-0.09977013,-0.09886854,-0.09796606,-0.09706267,-0.09615838,-0.09525318,-0.094347075,-0.093440056,-0.092532136,-0.0916233,-0.09071356,-0.089802906,-0.08889134,-0.08797887,-0.08706548,-0.086151175,-0.08523595,-0.084319815,-0.08340276,-0.08248479,-0.08156589,-0.080646075,-0.07972534,-0.07880368,-0.077881105,-0.0769576,-0.07603317,-0.07510781,-0.074181534,-0.073254324,-0.07232619,-0.071397126,-0.07046712,-0.06953619,-0.06860433,-0.06767154,-0.06673781,-0.06580314,-0.06486754,-0.063931,-0.062993534,-0.06205512,-0.061115764,-0.060175467,-0.05923423,-0.058292054,-0.05734893,-0.056404866,-0.055459853,-0.054513894,-0.053566985,-0.05261913,-0.051670328,-0.050720572,-0.049769867,-0.048818212,-0.0478656,-0.046912033,-0.045957513,-0.04500204,-0.04404561,-0.043088216,-0.04212987,-0.041170556,-0.040210288,-0.03924906,-0.038286865,-0.037323706,-0.036359586,-0.035394493,-0.03442844,-0.033461418,-0.032493427,-0.03152447,-0.030554537,-0.029583637,-0.028611762,-0.027638916,-0.026665093,-0.025690297,-0.024714524,-0.023737771,-0.022760045,-0.021781337,-0.020801647,-0.019820979,-0.018839328,-0.017856691,-0.016873075,-0.015888471,-0.01490288,-0.013916304,-0.012928739,-0.011940185,-0.010950641,-0.009960106,-0.008968579,-0.007976059,-0.006982545,-0.0059880354,-0.00499253,-0.003996028,-0.002998528,-0.002000029,-0.00100053,-2.9802322e-8],"x":[-1.0,-0.998999,-0.997998,-0.996997,-0.995996,-0.994995,-0.993994,-0.992993,-0.991992,-0.990991,-0.98999,-0.988989,-0.987988,-0.986987,-0.985986,-0.984985,-0.983984,-0.982983,-0.981982,-0.980981,-0.97998,-0.978979,-0.977978,-0.976977,-0.975976,-0.974975,-0.973974,-0.972973,-0.971972,-0.970971,-0.96997,-0.968969,-0.967968,-0.966967,-0.965966,-0.964965,-0.963964,-0.962963,-0.961962,-0.960961,-0.95996,-0.958959,-0.957958,-0.956957,-0.955956,-0.954955,-0.953954,-0.952953,-0.951952,-0.950951,-0.94995,-0.948949,-0.947948,-0.9469469,-0.9459459,-0.9449449,-0.9439439,-0.9429429,-0.9419419,-0.9409409,-0.9399399,-0.9389389,-0.9379379,-0.9369369,-0.9359359,-0.9349349,-0.9339339,-0.9329329,-0.9319319,-0.9309309,-0.9299299,-0.9289289,-0.9279279,-0.9269269,-0.9259259,-0.9249249,-0.9239239,-0.9229229,-0.9219219,-0.9209209,-0.9199199,-0.9189189,-0.9179179,-0.9169169,-0.9159159,-0.9149149,-0.9139139,-0.9129129,-0.9119119,-0.9109109,-0.9099099,-0.9089089,-0.9079079,-0.9069069,-0.9059059,-0.9049049,-0.9039039,-0.9029029,-0.9019019,-0.9009009,-0.8998999,-0.8988989,-0.8978979,-0.8968969,-0.8958959,-0.8948949,-0.8938939,-0.8928929,-0.8918919,-0.8908909,-0.8898899,-0.8888889,-0.8878879,-0.8868869,-0.8858859,-0.8848849,-0.8838839,-0.8828829,-0.8818819,-0.8808809,-0.8798799,-0.8788789,-0.8778779,-0.8768769,-0.8758759,-0.8748749,-0.8738739,-0.8728729,-0.8718719,-0.8708709,-0.8698699,-0.8688689,-0.8678679,-0.8668669,-0.8658659,-0.8648649,-0.8638639,-0.8628629,-0.8618619,-0.8608609,-0.8598599,-0.8588589,-0.8578579,-0.8568569,-0.8558559,-0.8548549,-0.8538539,-0.8528529,-0.8518519,-0.8508509,-0.8498499,-0.8488489,-0.8478479,-0.8468469,-0.8458459,-0.8448449,-0.8438439,-0.8428429,-0.8418418,-0.8408408,-0.8398398,-0.8388388,-0.8378378,-0.8368368,-0.8358358,-0.8348348,-0.8338338,-0.8328328,-0.8318318,-0.8308308,-0.8298298,-0.8288288,-0.8278278,-0.8268268,-0.8258258,-0.8248248,-0.8238238,-0.8228228,-0.8218218,-0.8208208,-0.8198198,-0.8188188,-0.8178178,-0.8168168,-0.8158158,-0.8148148,-0.8138138,-0.8128128,-0.8118118,-0.8108108,-0.8098098,-0.8088088,-0.8078078,-0.8068068,-0.8058058,-0.8048048,-0.8038038,-0.8028028,-0.8018018,-0.8008008,-0.7997998,-0.7987988,-0.7977978,-0.7967968,-0.7957958,-0.7947948,-0.7937938,-0.7927928,-0.7917918,-0.7907908,-0.7897898,-0.7887888,-0.7877878,-0.7867868,-0.7857858,-0.7847848,-0.7837838,-0.7827828,-0.7817818,-0.7807808,-0.7797798,-0.7787788,-0.7777778,-0.7767768,-0.7757758,-0.7747748,-0.7737738,-0.7727728,-0.7717718,-0.7707708,-0.7697698,-0.7687688,-0.7677678,-0.7667668,-0.7657658,-0.7647648,-0.7637638,-0.7627628,-0.7617618,-0.7607608,-0.7597598,-0.7587588,-0.7577578,-0.7567568,-0.7557558,-0.7547548,-0.7537538,-0.7527528,-0.7517518,-0.7507508,-0.7497498,-0.7487488,-0.7477478,-0.7467468,-0.7457458,-0.7447448,-0.7437438,-0.7427428,-0.7417418,-0.7407408,-0.7397398,-0.7387388,-0.7377378,-0.7367367,-0.7357357,-0.7347347,-0.7337337,-0.7327327,-0.7317317,-0.7307307,-0.7297297,-0.7287287,-0.7277277,-0.7267267,-0.7257257,-0.7247247,-0.7237237,-0.7227227,-0.7217217,-0.7207207,-0.7197197,-0.7187187,-0.7177177,-0.7167167,-0.7157157,-0.7147147,-0.7137137,-0.7127127,-0.7117117,-0.7107107,-0.7097097,-0.7087087,-0.7077077,-0.7067067,-0.7057057,-0.7047047,-0.7037037,-0.7027027,-0.7017017,-0.7007007,-0.6996997,-0.6986987,-0.6976977,-0.6966967,-0.6956957,-0.6946947,-0.6936937,-0.6926927,-0.6916917,-0.6906907,-0.6896897,-0.6886887,-0.6876877,-0.6866867,-0.6856857,-0.6846847,-0.6836837,-0.6826827,-0.6816817,-0.6806807,-0.6796797,-0.6786787,-0.6776777,-0.6766767,-0.6756757,-0.6746747,-0.6736737,-0.6726727,-0.6716717,-0.6706707,-0.6696697,-0.6686687,-0.6676677,-0.6666667,-0.6656657,-0.6646647,-0.6636637,-0.6626627,-0.6616617,-0.6606607,-0.6596597,-0.6586587,-0.6576577,-0.6566567,-0.6556557,-0.6546547,-0.6536537,-0.6526527,-0.6516517,-0.6506507,-0.6496497,-0.6486487,-0.6476477,-0.6466467,-0.6456457,-0.6446447,-0.6436437,-0.6426427,-0.6416417,-0.6406407,-0.6396397,-0.6386387,-0.6376377,-0.6366367,-0.6356357,-0.6346347,-0.6336337,-0.6326327,-0.6316317,-0.6306306,-0.6296296,-0.6286286,-0.6276276,-0.6266266,-0.6256256,-0.6246246,-0.6236236,-0.6226226,-0.6216216,-0.6206206,-0.6196196,-0.6186186,-0.6176176,-0.6166166,-0.6156156,-0.6146146,-0.6136136,-0.6126126,-0.6116116,-0.6106106,-0.6096096,-0.6086086,-0.6076076,-0.6066066,-0.6056056,-0.6046046,-0.6036036,-0.6026026,-0.6016016,-0.6006006,-0.5995996,-0.5985986,-0.5975976,-0.5965966,-0.5955956,-0.5945946,-0.5935936,-0.5925926,-0.5915916,-0.5905906,-0.5895896,-0.5885886,-0.5875876,-0.5865866,-0.5855856,-0.5845846,-0.5835836,-0.5825826,-0.5815816,-0.5805806,-0.5795796,-0.5785786,-0.5775776,-0.5765766,-0.5755756,-0.5745746,-0.5735736,-0.5725726,-0.5715716,-0.5705706,-0.5695696,-0.5685686,-0.5675676,-0.5665666,-0.5655656,-0.5645646,-0.5635636,-0.5625626,-0.5615616,-0.5605606,-0.5595596,-0.5585586,-0.5575576,-0.5565566,-0.5555556,-0.5545546,-0.5535536,-0.5525526,-0.5515516,-0.5505506,-0.5495496,-0.5485486,-0.5475476,-0.5465466,-0.5455456,-0.5445446,-0.5435436,-0.5425426,-0.5415416,-0.5405406,-0.5395396,-0.5385386,-0.5375376,-0.5365366,-0.5355356,-0.5345346,-0.5335336,-0.5325326,-0.5315316,-0.5305306,-0.5295296,-0.5285286,-0.5275276,-0.5265266,-0.5255255,-0.5245245,-0.5235235,-0.5225225,-0.5215215,-0.5205205,-0.5195195,-0.5185185,-0.5175175,-0.5165165,-0.5155155,-0.5145145,-0.5135135,-0.5125125,-0.5115115,-0.5105105,-0.5095095,-0.5085085,-0.5075075,-0.5065065,-0.5055055,-0.5045045,-0.5035035,-0.5025025,-0.5015015,-0.5005005,-0.4994995,-0.4984985,-0.4974975,-0.4964965,-0.4954955,-0.4944945,-0.4934935,-0.4924925,-0.4914915,-0.4904905,-0.4894895,-0.4884885,-0.4874875,-0.4864865,-0.4854855,-0.4844845,-0.4834835,-0.4824825,-0.4814815,-0.4804805,-0.4794795,-0.4784785,-0.4774775,-0.4764765,-0.4754755,-0.4744745,-0.4734735,-0.4724725,-0.4714715,-0.4704705,-0.4694695,-0.4684685,-0.4674675,-0.4664665,-0.4654655,-0.4644645,-0.4634635,-0.46246248,-0.46146148,-0.46046048,-0.45945948,-0.45845848,-0.45745748,-0.45645648,-0.45545548,-0.45445448,-0.45345348,-0.45245248,-0.45145148,-0.45045048,-0.44944948,-0.44844848,-0.44744748,-0.44644645,-0.44544545,-0.44444445,-0.44344345,-0.44244245,-0.44144145,-0.44044045,-0.43943945,-0.43843845,-0.43743744,-0.43643644,-0.43543544,-0.43443444,-0.43343344,-0.43243244,-0.43143144,-0.43043044,-0.42942944,-0.42842844,-0.42742744,-0.42642644,-0.42542544,-0.42442444,-0.42342344,-0.42242244,-0.42142144,-0.42042044,-0.41941944,-0.41841844,-0.41741744,-0.41641644,-0.41541544,-0.41441444,-0.41341344,-0.41241243,-0.41141143,-0.41041043,-0.40940943,-0.40840843,-0.40740743,-0.40640643,-0.40540543,-0.40440443,-0.40340343,-0.40240243,-0.40140143,-0.40040043,-0.39939943,-0.39839843,-0.39739743,-0.39639643,-0.39539543,-0.3943944,-0.3933934,-0.3923924,-0.3913914,-0.3903904,-0.3893894,-0.3883884,-0.3873874,-0.3863864,-0.3853854,-0.3843844,-0.3833834,-0.3823824,-0.3813814,-0.3803804,-0.3793794,-0.3783784,-0.3773774,-0.3763764,-0.3753754,-0.3743744,-0.3733734,-0.3723724,-0.3713714,-0.3703704,-0.3693694,-0.3683684,-0.3673674,-0.3663664,-0.3653654,-0.3643644,-0.3633634,-0.36236238,-0.36136138,-0.36036038,-0.35935938,-0.35835838,-0.35735738,-0.35635638,-0.35535538,-0.35435438,-0.35335338,-0.35235238,-0.35135138,-0.35035038,-0.34934938,-0.34834838,-0.34734738,-0.34634638,-0.34534538,-0.34434438,-0.34334338,-0.34234238,-0.34134135,-0.34034035,-0.33933935,-0.33833835,-0.33733734,-0.33633634,-0.33533534,-0.33433434,-0.33333334,-0.33233234,-0.33133134,-0.33033034,-0.32932934,-0.32832834,-0.32732734,-0.32632634,-0.32532534,-0.32432434,-0.32332334,-0.32232234,-0.32132134,-0.32032034,-0.31931934,-0.31831834,-0.31731734,-0.31631634,-0.31531534,-0.31431434,-0.31331334,-0.31231233,-0.31131133,-0.31031033,-0.30930933,-0.30830833,-0.30730733,-0.30630633,-0.30530533,-0.30430433,-0.30330333,-0.30230233,-0.30130133,-0.30030033,-0.29929933,-0.29829833,-0.29729733,-0.29629633,-0.29529533,-0.29429433,-0.29329333,-0.29229233,-0.29129133,-0.29029033,-0.2892893,-0.2882883,-0.2872873,-0.2862863,-0.2852853,-0.2842843,-0.2832833,-0.2822823,-0.2812813,-0.2802803,-0.2792793,-0.2782783,-0.2772773,-0.2762763,-0.2752753,-0.2742743,-0.2732733,-0.2722723,-0.2712713,-0.2702703,-0.2692693,-0.2682683,-0.2672673,-0.2662663,-0.2652653,-0.2642643,-0.2632633,-0.26226228,-0.26126128,-0.26026028,-0.25925928,-0.25825828,-0.25725728,-0.25625628,-0.25525528,-0.25425428,-0.25325328,-0.25225228,-0.25125128,-0.25025028,-0.24924926,-0.24824826,-0.24724726,-0.24624626,-0.24524526,-0.24424426,-0.24324326,-0.24224226,-0.24124126,-0.24024026,-0.23923926,-0.23823826,-0.23723726,-0.23623626,-0.23523526,-0.23423426,-0.23323326,-0.23223226,-0.23123126,-0.23023026,-0.22922926,-0.22822826,-0.22722726,-0.22622626,-0.22522525,-0.22422425,-0.22322324,-0.22222224,-0.22122124,-0.22022024,-0.21921924,-0.21821824,-0.21721724,-0.21621624,-0.21521524,-0.21421424,-0.21321324,-0.21221223,-0.21121123,-0.21021023,-0.20920923,-0.20820823,-0.20720723,-0.20620623,-0.20520523,-0.20420423,-0.20320323,-0.20220223,-0.20120123,-0.20020023,-0.19919923,-0.19819823,-0.19719721,-0.19619621,-0.19519521,-0.19419421,-0.19319321,-0.19219221,-0.19119121,-0.19019021,-0.18918921,-0.18818821,-0.18718721,-0.18618621,-0.18518521,-0.18418421,-0.18318321,-0.18218221,-0.1811812,-0.1801802,-0.1791792,-0.1781782,-0.1771772,-0.1761762,-0.1751752,-0.1741742,-0.1731732,-0.1721722,-0.1711712,-0.17017019,-0.16916919,-0.16816819,-0.16716719,-0.16616619,-0.16516519,-0.16416419,-0.16316319,-0.16216218,-0.16116118,-0.16016018,-0.15915918,-0.15815818,-0.15715718,-0.15615618,-0.15515518,-0.15415418,-0.15315318,-0.15215218,-0.15115118,-0.15015018,-0.14914918,-0.14814818,-0.14714718,-0.14614618,-0.14514518,-0.14414416,-0.14314316,-0.14214216,-0.14114116,-0.14014016,-0.13913916,-0.13813816,-0.13713716,-0.13613616,-0.13513516,-0.13413416,-0.13313316,-0.13213216,-0.13113116,-0.13013016,-0.12912916,-0.12812816,-0.12712716,-0.12612616,-0.12512515,-0.12412415,-0.12312315,-0.122122146,-0.121121146,-0.120120145,-0.119119145,-0.118118145,-0.117117144,-0.116116144,-0.11511514,-0.11411414,-0.11311314,-0.11211214,-0.111111134,-0.110110134,-0.10910913,-0.10810813,-0.10710713,-0.10610613,-0.10510513,-0.10410413,-0.10310313,-0.10210213,-0.10110113,-0.10010013,-0.09909913,-0.09809812,-0.09709712,-0.09609612,-0.09509512,-0.09409412,-0.09309312,-0.09209212,-0.09109112,-0.09009012,-0.08908912,-0.08808812,-0.08708712,-0.08608612,-0.08508511,-0.08408411,-0.08308311,-0.08208211,-0.08108111,-0.08008011,-0.07907911,-0.078078106,-0.077077106,-0.076076105,-0.075075105,-0.074074104,-0.073073104,-0.072072096,-0.071071096,-0.070070095,-0.069069095,-0.068068095,-0.067067094,-0.066066094,-0.06506509,-0.06406409,-0.06306309,-0.06206209,-0.061061088,-0.060060088,-0.059059087,-0.058058087,-0.057057086,-0.056056086,-0.05505508,-0.05405408,-0.05305308,-0.05205208,-0.05105108,-0.05005008,-0.049049076,-0.048048075,-0.047047075,-0.046046074,-0.045045074,-0.044044074,-0.043043073,-0.04204207,-0.04104107,-0.04004007,-0.039039068,-0.038038068,-0.037037067,-0.036036063,-0.035035063,-0.034034062,-0.03303306,-0.03203206,-0.03103106,-0.030030059,-0.029029058,-0.028028058,-0.027027056,-0.026026055,-0.025025055,-0.024024053,-0.023023052,-0.022022052,-0.02102105,-0.020020049,-0.019019049,-0.018018046,-0.017017046,-0.016016046,-0.015015044,-0.014014044,-0.0130130425,-0.012012041,-0.011011041,-0.010010039,-0.009009038,-0.008008038,-0.007007037,-0.0060060355,-0.0050050346,-0.0040040337,-0.0030030326,-0.0020020318,-0.0010010308,-2.9802322e-8]} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/small_positive.json b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/small_positive.json new file mode 100644 index 000000000000..a4427de1deaf --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/small_positive.json @@ -0,0 +1 @@ +{"expected":[2.9802322e-8,0.001001532,0.0020040371,0.0030075463,0.004012061,0.005017581,0.006024108,0.0070316438,0.008040188,0.009049742,0.010060308,0.011071885,0.012084476,0.013098081,0.014112701,0.015128336,0.016144989,0.01716266,0.01818135,0.019201063,0.020221794,0.021243548,0.022266326,0.023290128,0.024314955,0.02534081,0.02636769,0.027395599,0.028424539,0.029454509,0.030485509,0.031517543,0.03255061,0.03358471,0.03461985,0.03565602,0.03669323,0.037731487,0.038770776,0.039811105,0.04085248,0.041894894,0.04293835,0.043982863,0.04502841,0.04607501,0.047122657,0.04817135,0.049221095,0.05027189,0.051323745,0.052376647,0.053430606,0.054485615,0.055541687,0.056598812,0.057657003,0.05871625,0.059776552,0.06083792,0.06190035,0.06296384,0.064028405,0.06509404,0.06616073,0.06722849,0.06829732,0.06936722,0.0704382,0.07151024,0.07258336,0.07365756,0.074732825,0.07580918,0.0768866,0.07796511,0.07904469,0.080125354,0.081207104,0.082289934,0.08337385,0.08445885,0.08554494,0.08663211,0.08772038,0.08880973,0.08990018,0.09099172,0.09208435,0.09317807,0.0942729,0.09536881,0.096465826,0.09756394,0.098663144,0.09976346,0.10086487,0.101967394,0.10307101,0.104175754,0.105281584,0.106388524,0.107496575,0.108605735,0.109716006,0.11082739,0.111939885,0.11305349,0.11416822,0.115284055,0.11640102,0.117519096,0.1186383,0.11975862,0.12088006,0.122002624,0.123126306,0.12425112,0.12537706,0.12650412,0.12763232,0.12876165,0.12989211,0.13102369,0.13215642,0.13329028,0.13442527,0.1355614,0.13669866,0.13783707,0.13897662,0.1401173,0.14125913,0.14240211,0.14354622,0.14469148,0.1458379,0.14698546,0.14813417,0.14928402,0.15043503,0.1515872,0.15274051,0.15389499,0.1550506,0.15620741,0.15736535,0.15852445,0.15968472,0.16084614,0.16200873,0.1631725,0.16433741,0.1655035,0.16667075,0.16783917,0.16900876,0.17017953,0.17135146,0.17252457,0.17369886,0.17487432,0.17605096,0.17722878,0.17840777,0.17958796,0.18076931,0.18195185,0.18313558,0.1843205,0.1855066,0.18669389,0.18788238,0.18907204,0.1902629,0.19145495,0.19264819,0.19384263,0.19503826,0.1962351,0.19743313,0.19863236,0.1998328,0.20103443,0.20223726,0.2034413,0.20464656,0.20585302,0.20706068,0.20826955,0.20947963,0.21069093,0.21190344,0.21311715,0.2143321,0.21554825,0.21676563,0.21798421,0.21920405,0.22042508,0.22164734,0.22287083,0.22409554,0.22532147,0.22654863,0.22777702,0.22900663,0.23023748,0.23146957,0.2327029,0.23393744,0.23517324,0.23641026,0.23764853,0.23888804,0.24012879,0.24137078,0.24261402,0.2438585,0.24510422,0.2463512,0.24759942,0.24884889,0.2500996,0.2513516,0.25260484,0.2538593,0.25511506,0.25637206,0.25763032,0.25888985,0.2601506,0.26141268,0.26267597,0.26394054,0.2652064,0.2664735,0.26774186,0.2690115,0.27028242,0.27155462,0.27282807,0.2741028,0.27537882,0.27665612,0.2779347,0.27921456,0.2804957,0.2817781,0.2830618,0.28434682,0.2856331,0.28692067,0.28820953,0.28949967,0.2907911,0.29208383,0.29337785,0.29467317,0.29596978,0.2972677,0.2985669,0.29986742,0.30116925,0.30247238,0.3037768,0.30508253,0.30638957,0.30769792,0.30900759,0.31031856,0.31163085,0.31294444,0.31425938,0.3155756,0.31689316,0.31821203,0.31953222,0.32085374,0.32217658,0.32350072,0.3248262,0.32615304,0.32748118,0.32881066,0.33014145,0.3314736,0.33280706,0.33414188,0.335478,0.33681554,0.33815438,0.33949453,0.34083605,0.34217888,0.3435231,0.34486863,0.34621552,0.34756374,0.34891334,0.35026428,0.35161656,0.3529702,0.3543252,0.35568157,0.35703927,0.35839838,0.3597588,0.3611206,0.36248377,0.3638483,0.3652142,0.36658147,0.36795008,0.3693201,0.37069148,0.37206423,0.37343836,0.37481385,0.37619072,0.377569,0.37894863,0.38032964,0.38171205,0.38309583,0.384481,0.38586757,0.38725552,0.38864484,0.39003557,0.3914277,0.39282122,0.39421612,0.39561245,0.39701015,0.39840925,0.39980978,0.40121168,0.40261498,0.4040197,0.40542585,0.40683338,0.40824237,0.4096527,0.4110645,0.41247767,0.41389227,0.4153083,0.41672572,0.41814458,0.41956484,0.42098653,0.42240965,0.4238342,0.4252602,0.4266876,0.4281164,0.42954668,0.43097836,0.4324115,0.43384606,0.43528205,0.4367195,0.43815836,0.43959868,0.44104046,0.44248366,0.4439283,0.4453744,0.44682196,0.44827095,0.4497214,0.45117328,0.45262665,0.45408145,0.4555377,0.45699543,0.4584546,0.45991525,0.46137735,0.46284094,0.46430597,0.46577248,0.46724045,0.4687099,0.4701808,0.4716532,0.47312707,0.4746024,0.47607923,0.4775575,0.47903728,0.48051855,0.4820013,0.48348552,0.48497128,0.48645848,0.48794717,0.48943734,0.490929,0.4924222,0.49391684,0.495413,0.49691066,0.49840984,0.49991047,0.50141263,0.50291634,0.5044215,0.50592816,0.50743634,0.50894606,0.5104573,0.51197,0.51348424,0.515,0.5165173,0.51803607,0.5195564,0.5210782,0.5226016,0.52412647,0.5256529,0.52718085,0.5287103,0.5302413,0.53177387,0.5333079,0.5348435,0.53638065,0.53791934,0.5394596,0.5410014,0.54254466,0.54408956,0.54563594,0.54718393,0.5487334,0.55028445,0.5518371,0.5533913,0.55494696,0.55650425,0.5580631,0.5596235,0.5611855,0.56274897,0.5643141,0.5658808,0.56744903,0.56901884,0.5705902,0.57216316,0.5737377,0.5753138,0.5768915,0.5784707,0.58005154,0.581634,0.583218,0.5848036,0.5863908,0.58797956,0.5895699,0.59116185,0.59275544,0.5943506,0.5959473,0.5975457,0.5991456,0.60074717,0.6023503,0.60395503,0.60556144,0.6071694,0.60877895,0.6103902,0.61200297,0.6136174,0.6152334,0.6168511,0.6184704,0.62009126,0.6217138,0.6233379,0.6249637,0.62659115,0.62822014,0.6298508,0.63148314,0.6331171,0.63475263,0.63638985,0.6380287,0.6396692,0.6413113,0.64295506,0.6446005,0.64624757,0.6478963,0.6495467,0.6511987,0.65285236,0.6545077,0.6561647,0.6578233,0.6594837,0.6611456,0.66280925,0.66447455,0.66614157,0.6678102,0.6694805,0.6711525,0.6728262,0.6745015,0.6761785,0.6778572,0.6795376,0.68121964,0.6829034,0.6845888,0.68627596,0.68796474,0.68965524,0.6913474,0.69304144,0.694737,0.69643426,0.6981333,0.6998339,0.70153636,0.70324045,0.7049462,0.7066537,0.70836294,0.7100739,0.7117865,0.71350086,0.71521693,0.71693474,0.7186543,0.7203755,0.72209847,0.72382313,0.7255495,0.7272777,0.72900754,0.7307392,0.7324725,0.7342076,0.7359444,0.73768294,0.7394232,0.7411653,0.7429091,0.7446546,0.74640185,0.7481509,0.74990165,0.75165415,0.75340843,0.7551645,0.7569223,0.75868183,0.7604432,0.76220626,0.76397115,0.7657377,0.7675061,0.7692763,0.77104825,0.7728219,0.7745974,0.7763747,0.7781537,0.7799345,0.7817171,0.78350157,0.78528774,0.7870757,0.78886545,0.790657,0.79245037,0.7942455,0.79604244,0.7978412,0.7996417,0.80144405,0.8032482,0.8050542,0.80686194,0.8086715,0.81048286,0.8122961,0.8141111,0.8159279,0.8177466,0.8195671,0.8213894,0.8232135,0.82503945,0.8268672,0.82869685,0.83052826,0.8323616,0.8341967,0.83603364,0.8378724,0.83971304,0.84155554,0.8433998,0.845246,0.847094,0.8489439,0.8507956,0.8526492,0.85450464,0.8563619,0.85822105,0.8600821,0.8619449,0.8638097,0.8656763,0.8675448,0.8694151,0.87128735,0.87316144,0.87503743,0.8769153,0.87879497,0.88067675,0.88256025,0.8844456,0.88633287,0.88822204,0.8901131,0.89200604,0.89390093,0.89579767,0.8976963,0.89959687,0.9014993,0.90340364,0.9053099,0.9072181,0.9091282,0.9110402,0.9129541,0.9148699,0.9167876,0.9187073,0.9206289,0.9225524,0.9244778,0.9264052,0.92833453,0.9302657,0.9321989,0.934134,0.93607104,0.93801004,0.93995094,0.9418938,0.9438386,0.94578534,0.94773406,0.94968474,0.9516373,0.95359194,0.95554847,0.95750695,0.95946735,0.9614298,0.96339417,0.9653605,0.9673288,0.9692991,0.97127134,0.97324556,0.9752218,0.9772,0.97918016,0.9811623,0.9831464,0.9851326,0.9871207,0.98911077,0.9911029,0.99309695,0.99509305,0.9970912,0.99909127,1.0010934,1.0030974,1.0051036,1.0071117,1.0091218,1.0111339,1.0131481,1.0151643,1.0171825,1.0192026,1.0212249,1.0232491,1.0252755,1.0273037,1.0293341,1.0313665,1.0334009,1.0354373,1.0374758,1.0395163,1.041559,1.0436035,1.0456502,1.047699,1.0497497,1.0518025,1.0538574,1.0559144,1.0579734,1.0600345,1.0620975,1.0641627,1.06623,1.0682994,1.0703708,1.0724442,1.0745199,1.0765975,1.0786772,1.0807589,1.0828428,1.0849289,1.0870168,1.089107,1.0911994,1.0932938,1.0953902,1.0974888,1.0995893,1.1016921,1.103797,1.1059039,1.1080129,1.1101241,1.1122375,1.1143528,1.1164703,1.11859,1.1207118,1.1228356,1.1249617,1.1270899,1.1292201,1.1313525,1.1334871,1.1356238,1.1377627,1.1399037,1.1420467,1.144192,1.1463394,1.148489,1.1506407,1.1527946,1.1549506,1.1571088,1.1592691,1.1614317,1.1635963,1.1657631,1.1679322,1.1701033,1.1722767,1.1744522,1.1766299,1.1788099,1.1809919,1.1831762,1.1853627,1.1875513,1.1897421,1.1919352,1.1941304,1.1963278,1.1985275,1.2007293,1.2029333,1.2051395,1.207348,1.2095587,1.2117715,1.2139866,1.2162039,1.2184235,1.2206452,1.2228692,1.2250954,1.2273239,1.2295545,1.2317874,1.2340226,1.2362599,1.2384995,1.2407414,1.2429855,1.2452319,1.2474805,1.2497313,1.2519845,1.2542398,1.2564974,1.2587574,1.2610195,1.2632838,1.2655506,1.2678195,1.2700907,1.2723643,1.2746401,1.276918,1.2791984,1.281481,1.2837659,1.2860532,1.2883426,1.2906344,1.2929285,1.2952249,1.2975235,1.2998245,1.3021277,1.3044333,1.3067412,1.3090515,1.3113639,1.3136789,1.3159959,1.3183154,1.3206372,1.3229614,1.3252879,1.3276167,1.3299478,1.3322812,1.334617,1.3369552,1.3392956,1.3416384,1.3439837,1.3463311,1.348681,1.3510332,1.3533877,1.3557447,1.358104,1.3604656,1.3628296,1.365196,1.3675647,1.3699359,1.3723093,1.3746852,1.3770635,1.3794441,1.3818271,1.3842125,1.3866003,1.3889905,1.391383,1.3937781,1.3961754,1.3985752,1.4009774,1.403382,1.4057889,1.4081984,1.4106102,1.4130244,1.415441,1.4178602,1.4202816,1.4227055,1.4251318,1.4275606,1.4299918,1.4324255,1.4348615,1.4373001,1.439741,1.4421844,1.4446303,1.4470786,1.4495293,1.4519825,1.4544382,1.4568963,1.4593569,1.46182,1.4642855,1.4667535,1.469224,1.4716969,1.4741722,1.4766501,1.4791305,1.4816134,1.4840987,1.4865866,1.4890769,1.4915696,1.494065,1.4965628,1.4990631,1.5015659,1.5040712,1.506579,1.5090895,1.5116023,1.5141176,1.5166355,1.519156,1.5216789,1.5242044,1.5267323,1.5292629,1.531796,1.5343316,1.5368696,1.5394104,1.5419536,1.5444994,1.5470476,1.5495986,1.5521519,1.554708,1.5572665,1.5598276,1.5623913,1.5649575,1.5675263,1.5700977,1.5726717,1.5752482,1.5778273,1.5804092,1.5829935,1.5855803,1.5881698,1.5907619,1.5933565,1.5959537,1.5985535,1.601156,1.6037611,1.6063688,1.6089791,1.6115919,1.6142075,1.6168256,1.6194464,1.6220697,1.6246958,1.6273243,1.6299556,1.6325896,1.6352261,1.6378653,1.6405071,1.6431516,1.6457987,1.6484485,1.6511009,1.653756,1.6564137,1.6590742,1.6617372,1.664403,1.6670713,1.6697425,1.6724162,1.6750926,1.6777717,1.6804535,1.683138,1.6858251,1.688515,1.6912075,1.6939029,1.6966008,1.6993014,1.7020048,1.7047108,1.7074196,1.710131,1.7128453,1.7155622,1.7182819],"x":[2.9802322e-8,0.0010010308,0.0020020318,0.0030030326,0.0040040337,0.0050050346,0.0060060355,0.007007037,0.008008038,0.009009038,0.010010039,0.011011041,0.012012041,0.0130130425,0.014014044,0.015015044,0.016016046,0.017017046,0.018018046,0.019019049,0.020020049,0.02102105,0.022022052,0.023023052,0.024024053,0.025025055,0.026026055,0.027027056,0.028028058,0.029029058,0.030030059,0.03103106,0.03203206,0.03303306,0.034034062,0.035035063,0.036036063,0.037037067,0.038038068,0.039039068,0.04004007,0.04104107,0.04204207,0.043043073,0.044044074,0.045045074,0.046046074,0.047047075,0.048048075,0.049049076,0.05005008,0.05105108,0.05205208,0.05305308,0.05405408,0.05505508,0.056056086,0.057057086,0.058058087,0.059059087,0.060060088,0.061061088,0.06206209,0.06306309,0.06406409,0.06506509,0.066066094,0.067067094,0.068068095,0.069069095,0.070070095,0.071071096,0.072072096,0.073073104,0.074074104,0.075075105,0.076076105,0.077077106,0.078078106,0.07907911,0.08008011,0.08108111,0.08208211,0.08308311,0.08408411,0.08508511,0.08608612,0.08708712,0.08808812,0.08908912,0.09009012,0.09109112,0.09209212,0.09309312,0.09409412,0.09509512,0.09609612,0.09709712,0.09809812,0.09909913,0.10010013,0.10110113,0.10210213,0.10310313,0.10410413,0.10510513,0.10610613,0.10710713,0.10810813,0.10910913,0.110110134,0.111111134,0.11211214,0.11311314,0.11411414,0.11511514,0.116116144,0.117117144,0.118118145,0.119119145,0.120120145,0.121121146,0.122122146,0.12312315,0.12412415,0.12512515,0.12612616,0.12712716,0.12812816,0.12912916,0.13013016,0.13113116,0.13213216,0.13313316,0.13413416,0.13513516,0.13613616,0.13713716,0.13813816,0.13913916,0.14014016,0.14114116,0.14214216,0.14314316,0.14414416,0.14514518,0.14614618,0.14714718,0.14814818,0.14914918,0.15015018,0.15115118,0.15215218,0.15315318,0.15415418,0.15515518,0.15615618,0.15715718,0.15815818,0.15915918,0.16016018,0.16116118,0.16216218,0.16316319,0.16416419,0.16516519,0.16616619,0.16716719,0.16816819,0.16916919,0.17017019,0.1711712,0.1721722,0.1731732,0.1741742,0.1751752,0.1761762,0.1771772,0.1781782,0.1791792,0.1801802,0.1811812,0.18218221,0.18318321,0.18418421,0.18518521,0.18618621,0.18718721,0.18818821,0.18918921,0.19019021,0.19119121,0.19219221,0.19319321,0.19419421,0.19519521,0.19619621,0.19719721,0.19819823,0.19919923,0.20020023,0.20120123,0.20220223,0.20320323,0.20420423,0.20520523,0.20620623,0.20720723,0.20820823,0.20920923,0.21021023,0.21121123,0.21221223,0.21321324,0.21421424,0.21521524,0.21621624,0.21721724,0.21821824,0.21921924,0.22022024,0.22122124,0.22222224,0.22322324,0.22422425,0.22522525,0.22622626,0.22722726,0.22822826,0.22922926,0.23023026,0.23123126,0.23223226,0.23323326,0.23423426,0.23523526,0.23623626,0.23723726,0.23823826,0.23923926,0.24024026,0.24124126,0.24224226,0.24324326,0.24424426,0.24524526,0.24624626,0.24724726,0.24824826,0.24924926,0.25025028,0.25125128,0.25225228,0.25325328,0.25425428,0.25525528,0.25625628,0.25725728,0.25825828,0.25925928,0.26026028,0.26126128,0.26226228,0.2632633,0.2642643,0.2652653,0.2662663,0.2672673,0.2682683,0.2692693,0.2702703,0.2712713,0.2722723,0.2732733,0.2742743,0.2752753,0.2762763,0.2772773,0.2782783,0.2792793,0.2802803,0.2812813,0.2822823,0.2832833,0.2842843,0.2852853,0.2862863,0.2872873,0.2882883,0.2892893,0.29029033,0.29129133,0.29229233,0.29329333,0.29429433,0.29529533,0.29629633,0.29729733,0.29829833,0.29929933,0.30030033,0.30130133,0.30230233,0.30330333,0.30430433,0.30530533,0.30630633,0.30730733,0.30830833,0.30930933,0.31031033,0.31131133,0.31231233,0.31331334,0.31431434,0.31531534,0.31631634,0.31731734,0.31831834,0.31931934,0.32032034,0.32132134,0.32232234,0.32332334,0.32432434,0.32532534,0.32632634,0.32732734,0.32832834,0.32932934,0.33033034,0.33133134,0.33233234,0.33333334,0.33433434,0.33533534,0.33633634,0.33733734,0.33833835,0.33933935,0.34034035,0.34134135,0.34234238,0.34334338,0.34434438,0.34534538,0.34634638,0.34734738,0.34834838,0.34934938,0.35035038,0.35135138,0.35235238,0.35335338,0.35435438,0.35535538,0.35635638,0.35735738,0.35835838,0.35935938,0.36036038,0.36136138,0.36236238,0.3633634,0.3643644,0.3653654,0.3663664,0.3673674,0.3683684,0.3693694,0.3703704,0.3713714,0.3723724,0.3733734,0.3743744,0.3753754,0.3763764,0.3773774,0.3783784,0.3793794,0.3803804,0.3813814,0.3823824,0.3833834,0.3843844,0.3853854,0.3863864,0.3873874,0.3883884,0.3893894,0.3903904,0.3913914,0.3923924,0.3933934,0.3943944,0.39539543,0.39639643,0.39739743,0.39839843,0.39939943,0.40040043,0.40140143,0.40240243,0.40340343,0.40440443,0.40540543,0.40640643,0.40740743,0.40840843,0.40940943,0.41041043,0.41141143,0.41241243,0.41341344,0.41441444,0.41541544,0.41641644,0.41741744,0.41841844,0.41941944,0.42042044,0.42142144,0.42242244,0.42342344,0.42442444,0.42542544,0.42642644,0.42742744,0.42842844,0.42942944,0.43043044,0.43143144,0.43243244,0.43343344,0.43443444,0.43543544,0.43643644,0.43743744,0.43843845,0.43943945,0.44044045,0.44144145,0.44244245,0.44344345,0.44444445,0.44544545,0.44644645,0.44744748,0.44844848,0.44944948,0.45045048,0.45145148,0.45245248,0.45345348,0.45445448,0.45545548,0.45645648,0.45745748,0.45845848,0.45945948,0.46046048,0.46146148,0.46246248,0.4634635,0.4644645,0.4654655,0.4664665,0.4674675,0.4684685,0.4694695,0.4704705,0.4714715,0.4724725,0.4734735,0.4744745,0.4754755,0.4764765,0.4774775,0.4784785,0.4794795,0.4804805,0.4814815,0.4824825,0.4834835,0.4844845,0.4854855,0.4864865,0.4874875,0.4884885,0.4894895,0.4904905,0.4914915,0.4924925,0.4934935,0.4944945,0.4954955,0.4964965,0.4974975,0.4984985,0.4994995,0.5005005,0.5015015,0.5025025,0.5035035,0.5045045,0.5055055,0.5065065,0.5075075,0.5085085,0.5095095,0.5105105,0.5115115,0.5125125,0.5135135,0.5145145,0.5155155,0.5165165,0.5175175,0.5185185,0.5195195,0.5205205,0.5215215,0.5225225,0.5235235,0.5245245,0.5255255,0.5265266,0.5275276,0.5285286,0.5295296,0.5305306,0.5315316,0.5325326,0.5335336,0.5345346,0.5355356,0.5365366,0.5375376,0.5385386,0.5395396,0.5405406,0.5415416,0.5425426,0.5435436,0.5445446,0.5455456,0.5465466,0.5475476,0.5485486,0.5495496,0.5505506,0.5515516,0.5525526,0.5535536,0.5545546,0.5555556,0.5565566,0.5575576,0.5585586,0.5595596,0.5605606,0.5615616,0.5625626,0.5635636,0.5645646,0.5655656,0.5665666,0.5675676,0.5685686,0.5695696,0.5705706,0.5715716,0.5725726,0.5735736,0.5745746,0.5755756,0.5765766,0.5775776,0.5785786,0.5795796,0.5805806,0.5815816,0.5825826,0.5835836,0.5845846,0.5855856,0.5865866,0.5875876,0.5885886,0.5895896,0.5905906,0.5915916,0.5925926,0.5935936,0.5945946,0.5955956,0.5965966,0.5975976,0.5985986,0.5995996,0.6006006,0.6016016,0.6026026,0.6036036,0.6046046,0.6056056,0.6066066,0.6076076,0.6086086,0.6096096,0.6106106,0.6116116,0.6126126,0.6136136,0.6146146,0.6156156,0.6166166,0.6176176,0.6186186,0.6196196,0.6206206,0.6216216,0.6226226,0.6236236,0.6246246,0.6256256,0.6266266,0.6276276,0.6286286,0.6296296,0.6306306,0.6316317,0.6326327,0.6336337,0.6346347,0.6356357,0.6366367,0.6376377,0.6386387,0.6396397,0.6406407,0.6416417,0.6426427,0.6436437,0.6446447,0.6456457,0.6466467,0.6476477,0.6486487,0.6496497,0.6506507,0.6516517,0.6526527,0.6536537,0.6546547,0.6556557,0.6566567,0.6576577,0.6586587,0.6596597,0.6606607,0.6616617,0.6626627,0.6636637,0.6646647,0.6656657,0.6666667,0.6676677,0.6686687,0.6696697,0.6706707,0.6716717,0.6726727,0.6736737,0.6746747,0.6756757,0.6766767,0.6776777,0.6786787,0.6796797,0.6806807,0.6816817,0.6826827,0.6836837,0.6846847,0.6856857,0.6866867,0.6876877,0.6886887,0.6896897,0.6906907,0.6916917,0.6926927,0.6936937,0.6946947,0.6956957,0.6966967,0.6976977,0.6986987,0.6996997,0.7007007,0.7017017,0.7027027,0.7037037,0.7047047,0.7057057,0.7067067,0.7077077,0.7087087,0.7097097,0.7107107,0.7117117,0.7127127,0.7137137,0.7147147,0.7157157,0.7167167,0.7177177,0.7187187,0.7197197,0.7207207,0.7217217,0.7227227,0.7237237,0.7247247,0.7257257,0.7267267,0.7277277,0.7287287,0.7297297,0.7307307,0.7317317,0.7327327,0.7337337,0.7347347,0.7357357,0.7367367,0.7377378,0.7387388,0.7397398,0.7407408,0.7417418,0.7427428,0.7437438,0.7447448,0.7457458,0.7467468,0.7477478,0.7487488,0.7497498,0.7507508,0.7517518,0.7527528,0.7537538,0.7547548,0.7557558,0.7567568,0.7577578,0.7587588,0.7597598,0.7607608,0.7617618,0.7627628,0.7637638,0.7647648,0.7657658,0.7667668,0.7677678,0.7687688,0.7697698,0.7707708,0.7717718,0.7727728,0.7737738,0.7747748,0.7757758,0.7767768,0.7777778,0.7787788,0.7797798,0.7807808,0.7817818,0.7827828,0.7837838,0.7847848,0.7857858,0.7867868,0.7877878,0.7887888,0.7897898,0.7907908,0.7917918,0.7927928,0.7937938,0.7947948,0.7957958,0.7967968,0.7977978,0.7987988,0.7997998,0.8008008,0.8018018,0.8028028,0.8038038,0.8048048,0.8058058,0.8068068,0.8078078,0.8088088,0.8098098,0.8108108,0.8118118,0.8128128,0.8138138,0.8148148,0.8158158,0.8168168,0.8178178,0.8188188,0.8198198,0.8208208,0.8218218,0.8228228,0.8238238,0.8248248,0.8258258,0.8268268,0.8278278,0.8288288,0.8298298,0.8308308,0.8318318,0.8328328,0.8338338,0.8348348,0.8358358,0.8368368,0.8378378,0.8388388,0.8398398,0.8408408,0.8418418,0.8428429,0.8438439,0.8448449,0.8458459,0.8468469,0.8478479,0.8488489,0.8498499,0.8508509,0.8518519,0.8528529,0.8538539,0.8548549,0.8558559,0.8568569,0.8578579,0.8588589,0.8598599,0.8608609,0.8618619,0.8628629,0.8638639,0.8648649,0.8658659,0.8668669,0.8678679,0.8688689,0.8698699,0.8708709,0.8718719,0.8728729,0.8738739,0.8748749,0.8758759,0.8768769,0.8778779,0.8788789,0.8798799,0.8808809,0.8818819,0.8828829,0.8838839,0.8848849,0.8858859,0.8868869,0.8878879,0.8888889,0.8898899,0.8908909,0.8918919,0.8928929,0.8938939,0.8948949,0.8958959,0.8968969,0.8978979,0.8988989,0.8998999,0.9009009,0.9019019,0.9029029,0.9039039,0.9049049,0.9059059,0.9069069,0.9079079,0.9089089,0.9099099,0.9109109,0.9119119,0.9129129,0.9139139,0.9149149,0.9159159,0.9169169,0.9179179,0.9189189,0.9199199,0.9209209,0.9219219,0.9229229,0.9239239,0.9249249,0.9259259,0.9269269,0.9279279,0.9289289,0.9299299,0.9309309,0.9319319,0.9329329,0.9339339,0.9349349,0.9359359,0.9369369,0.9379379,0.9389389,0.9399399,0.9409409,0.9419419,0.9429429,0.9439439,0.9449449,0.9459459,0.9469469,0.947948,0.948949,0.94995,0.950951,0.951952,0.952953,0.953954,0.954955,0.955956,0.956957,0.957958,0.958959,0.95996,0.960961,0.961962,0.962963,0.963964,0.964965,0.965966,0.966967,0.967968,0.968969,0.96997,0.970971,0.971972,0.972973,0.973974,0.974975,0.975976,0.976977,0.977978,0.978979,0.97998,0.980981,0.981982,0.982983,0.983984,0.984985,0.985986,0.986987,0.987988,0.988989,0.98999,0.990991,0.991992,0.992993,0.993994,0.994995,0.995996,0.996997,0.997998,0.998999,1.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/tiny.json b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/tiny.json new file mode 100644 index 000000000000..6e52f3bbf70b --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/fixtures/julia/tiny.json @@ -0,0 +1 @@ +{"expected":[-2.9802322e-8,-2.9742658e-8,-2.9682994e-8,-2.962333e-8,-2.9563665e-8,-2.9504001e-8,-2.9444337e-8,-2.9384672e-8,-2.9325008e-8,-2.9265344e-8,-2.920568e-8,-2.9146015e-8,-2.9086351e-8,-2.9026687e-8,-2.8967023e-8,-2.8907358e-8,-2.8847694e-8,-2.878803e-8,-2.8728365e-8,-2.8668701e-8,-2.8609037e-8,-2.8549373e-8,-2.8489708e-8,-2.8430044e-8,-2.837038e-8,-2.8310714e-8,-2.825105e-8,-2.8191385e-8,-2.8131721e-8,-2.8072057e-8,-2.8012392e-8,-2.7952728e-8,-2.7893064e-8,-2.78334e-8,-2.7773735e-8,-2.7714071e-8,-2.7654407e-8,-2.7594742e-8,-2.7535078e-8,-2.7475414e-8,-2.741575e-8,-2.7356085e-8,-2.7296421e-8,-2.7236757e-8,-2.7177093e-8,-2.7117428e-8,-2.7057764e-8,-2.69981e-8,-2.6938435e-8,-2.6878771e-8,-2.6819107e-8,-2.6759443e-8,-2.6699778e-8,-2.6640114e-8,-2.658045e-8,-2.6520786e-8,-2.6461121e-8,-2.6401457e-8,-2.6341793e-8,-2.6282128e-8,-2.6222464e-8,-2.61628e-8,-2.6103136e-8,-2.6043471e-8,-2.5983807e-8,-2.5924143e-8,-2.5864479e-8,-2.5804814e-8,-2.574515e-8,-2.5685486e-8,-2.5625821e-8,-2.5566157e-8,-2.5506493e-8,-2.5446829e-8,-2.5387164e-8,-2.5327498e-8,-2.5267834e-8,-2.520817e-8,-2.5148506e-8,-2.5088841e-8,-2.5029177e-8,-2.4969513e-8,-2.4909848e-8,-2.4850184e-8,-2.479052e-8,-2.4730856e-8,-2.4671191e-8,-2.4611527e-8,-2.4551863e-8,-2.4492198e-8,-2.4432534e-8,-2.437287e-8,-2.4313206e-8,-2.4253541e-8,-2.4193877e-8,-2.4134213e-8,-2.4074549e-8,-2.4014884e-8,-2.395522e-8,-2.3895556e-8,-2.3835891e-8,-2.3776227e-8,-2.3716563e-8,-2.3656899e-8,-2.3597234e-8,-2.353757e-8,-2.3477906e-8,-2.3418242e-8,-2.3358577e-8,-2.3298913e-8,-2.3239249e-8,-2.3179584e-8,-2.311992e-8,-2.3060256e-8,-2.3000592e-8,-2.2940927e-8,-2.2881263e-8,-2.2821599e-8,-2.2761935e-8,-2.270227e-8,-2.2642606e-8,-2.2582942e-8,-2.2523277e-8,-2.2463613e-8,-2.2403949e-8,-2.2344283e-8,-2.2284619e-8,-2.2224954e-8,-2.216529e-8,-2.2105626e-8,-2.2045962e-8,-2.1986297e-8,-2.1926633e-8,-2.1866969e-8,-2.1807304e-8,-2.174764e-8,-2.1687976e-8,-2.1628312e-8,-2.1568647e-8,-2.1508983e-8,-2.1449319e-8,-2.1389654e-8,-2.132999e-8,-2.1270326e-8,-2.1210662e-8,-2.1150997e-8,-2.1091333e-8,-2.1031669e-8,-2.0972005e-8,-2.091234e-8,-2.0852676e-8,-2.0793012e-8,-2.0733347e-8,-2.0673683e-8,-2.0614019e-8,-2.0554355e-8,-2.049469e-8,-2.0435026e-8,-2.0375362e-8,-2.0315698e-8,-2.0256033e-8,-2.0196369e-8,-2.0136705e-8,-2.007704e-8,-2.0017376e-8,-1.9957712e-8,-1.9898048e-8,-1.9838383e-8,-1.9778719e-8,-1.9719055e-8,-1.965939e-8,-1.9599726e-8,-1.9540062e-8,-1.9480398e-8,-1.9420733e-8,-1.9361067e-8,-1.9301403e-8,-1.9241739e-8,-1.9182075e-8,-1.912241e-8,-1.9062746e-8,-1.9003082e-8,-1.8943418e-8,-1.8883753e-8,-1.8824089e-8,-1.8764425e-8,-1.870476e-8,-1.8645096e-8,-1.8585432e-8,-1.8525768e-8,-1.8466103e-8,-1.8406439e-8,-1.8346775e-8,-1.828711e-8,-1.8227446e-8,-1.8167782e-8,-1.8108118e-8,-1.8048453e-8,-1.798879e-8,-1.7929125e-8,-1.786946e-8,-1.7809796e-8,-1.7750132e-8,-1.7690468e-8,-1.7630803e-8,-1.757114e-8,-1.7511475e-8,-1.745181e-8,-1.7392146e-8,-1.7332482e-8,-1.7272818e-8,-1.7213154e-8,-1.715349e-8,-1.7093825e-8,-1.703416e-8,-1.6974496e-8,-1.6914832e-8,-1.6855168e-8,-1.6795504e-8,-1.673584e-8,-1.6676175e-8,-1.661651e-8,-1.6556847e-8,-1.6497182e-8,-1.6437518e-8,-1.6377852e-8,-1.6318188e-8,-1.6258523e-8,-1.619886e-8,-1.6139195e-8,-1.607953e-8,-1.6019866e-8,-1.5960202e-8,-1.5900538e-8,-1.5840874e-8,-1.578121e-8,-1.5721545e-8,-1.566188e-8,-1.5602216e-8,-1.5542552e-8,-1.5482888e-8,-1.5423224e-8,-1.536356e-8,-1.5303895e-8,-1.524423e-8,-1.5184566e-8,-1.5124902e-8,-1.5065238e-8,-1.5005574e-8,-1.494591e-8,-1.4886245e-8,-1.4826581e-8,-1.4766917e-8,-1.4707252e-8,-1.4647588e-8,-1.4587924e-8,-1.45282595e-8,-1.4468595e-8,-1.4408931e-8,-1.4349267e-8,-1.4289602e-8,-1.4229938e-8,-1.4170274e-8,-1.4110609e-8,-1.4050944e-8,-1.399128e-8,-1.3931616e-8,-1.3871952e-8,-1.3812287e-8,-1.3752623e-8,-1.3692959e-8,-1.36332945e-8,-1.357363e-8,-1.3513966e-8,-1.3454302e-8,-1.3394637e-8,-1.3334973e-8,-1.3275309e-8,-1.3215645e-8,-1.315598e-8,-1.3096316e-8,-1.3036652e-8,-1.29769875e-8,-1.2917323e-8,-1.2857659e-8,-1.2797995e-8,-1.273833e-8,-1.2678666e-8,-1.2619001e-8,-1.2559337e-8,-1.2499672e-8,-1.2440008e-8,-1.2380344e-8,-1.232068e-8,-1.2261015e-8,-1.2201351e-8,-1.2141687e-8,-1.20820225e-8,-1.2022358e-8,-1.1962694e-8,-1.190303e-8,-1.1843365e-8,-1.1783701e-8,-1.1724037e-8,-1.1664373e-8,-1.1604708e-8,-1.1545044e-8,-1.148538e-8,-1.14257155e-8,-1.1366051e-8,-1.1306387e-8,-1.1246723e-8,-1.1187058e-8,-1.1127393e-8,-1.1067729e-8,-1.1008065e-8,-1.09484e-8,-1.0888736e-8,-1.0829072e-8,-1.0769408e-8,-1.0709743e-8,-1.0650079e-8,-1.0590415e-8,-1.05307505e-8,-1.0471086e-8,-1.0411422e-8,-1.0351758e-8,-1.0292093e-8,-1.0232429e-8,-1.0172765e-8,-1.0113101e-8,-1.0053436e-8,-9.993772e-9,-9.934108e-9,-9.8744435e-9,-9.814779e-9,-9.755115e-9,-9.695451e-9,-9.6357855e-9,-9.576121e-9,-9.516457e-9,-9.456793e-9,-9.397128e-9,-9.337464e-9,-9.2778e-9,-9.218136e-9,-9.158471e-9,-9.098807e-9,-9.039143e-9,-8.9794785e-9,-8.919814e-9,-8.86015e-9,-8.800486e-9,-8.740821e-9,-8.681157e-9,-8.621493e-9,-8.561829e-9,-8.502164e-9,-8.4425e-9,-8.382836e-9,-8.3231715e-9,-8.263507e-9,-8.203843e-9,-8.144178e-9,-8.0845135e-9,-8.024849e-9,-7.965185e-9,-7.905521e-9,-7.845856e-9,-7.786192e-9,-7.726528e-9,-7.666864e-9,-7.607199e-9,-7.547535e-9,-7.487871e-9,-7.4282065e-9,-7.368542e-9,-7.308878e-9,-7.2492137e-9,-7.1895494e-9,-7.129885e-9,-7.0702204e-9,-7.010556e-9,-6.950892e-9,-6.8912276e-9,-6.8315633e-9,-6.771899e-9,-6.7122348e-9,-6.6525705e-9,-6.592906e-9,-6.533242e-9,-6.4735777e-9,-6.4139134e-9,-6.354249e-9,-6.2945844e-9,-6.23492e-9,-6.175256e-9,-6.1155916e-9,-6.0559273e-9,-5.996263e-9,-5.9365988e-9,-5.8769345e-9,-5.81727e-9,-5.757606e-9,-5.6979417e-9,-5.6382774e-9,-5.5786127e-9,-5.5189484e-9,-5.459284e-9,-5.39962e-9,-5.3399556e-9,-5.2802913e-9,-5.220627e-9,-5.1609628e-9,-5.1012985e-9,-5.041634e-9,-4.98197e-9,-4.9223057e-9,-4.8626414e-9,-4.8029767e-9,-4.7433124e-9,-4.683648e-9,-4.623984e-9,-4.5643196e-9,-4.5046553e-9,-4.444991e-9,-4.3853268e-9,-4.3256625e-9,-4.265998e-9,-4.206334e-9,-4.1466697e-9,-4.087005e-9,-4.0273407e-9,-3.9676764e-9,-3.908012e-9,-3.848348e-9,-3.7886836e-9,-3.7290193e-9,-3.669355e-9,-3.6096908e-9,-3.5500265e-9,-3.490362e-9,-3.4306977e-9,-3.3710335e-9,-3.3113692e-9,-3.251705e-9,-3.1920406e-9,-3.1323761e-9,-3.0727119e-9,-3.0130476e-9,-2.9533833e-9,-2.893719e-9,-2.8340548e-9,-2.7743903e-9,-2.714726e-9,-2.6550617e-9,-2.5953975e-9,-2.5357332e-9,-2.476069e-9,-2.4164044e-9,-2.3567401e-9,-2.2970759e-9,-2.2374116e-9,-2.1777473e-9,-2.118083e-9,-2.0584188e-9,-1.9987543e-9,-1.93909e-9,-1.8794257e-9,-1.8197615e-9,-1.7600971e-9,-1.7004328e-9,-1.6407685e-9,-1.5811041e-9,-1.5214399e-9,-1.4617756e-9,-1.4021113e-9,-1.3424469e-9,-1.2827827e-9,-1.2231184e-9,-1.163454e-9,-1.1037897e-9,-1.0441255e-9,-9.844611e-10,-9.247968e-10,-8.6513247e-10,-8.054682e-10,-7.4580386e-10,-6.8613953e-10,-6.2647526e-10,-5.6681093e-10,-5.071466e-10,-4.4748233e-10,-3.87818e-10,-3.281537e-10,-2.684894e-10,-2.0882508e-10,-1.4916077e-10,-8.9496466e-11,-2.9832154e-11,2.9832154e-11,8.9496466e-11,1.4916077e-10,2.0882508e-10,2.684894e-10,3.281537e-10,3.87818e-10,4.4748233e-10,5.071466e-10,5.6681093e-10,6.2647526e-10,6.8613953e-10,7.4580386e-10,8.054682e-10,8.6513247e-10,9.247968e-10,9.844611e-10,1.0441255e-9,1.1037897e-9,1.163454e-9,1.2231184e-9,1.2827827e-9,1.3424469e-9,1.4021113e-9,1.4617756e-9,1.5214399e-9,1.5811041e-9,1.6407685e-9,1.7004328e-9,1.7600971e-9,1.8197615e-9,1.8794257e-9,1.93909e-9,1.9987543e-9,2.0584188e-9,2.118083e-9,2.1777473e-9,2.2374116e-9,2.2970759e-9,2.3567401e-9,2.4164044e-9,2.476069e-9,2.5357332e-9,2.5953975e-9,2.6550617e-9,2.714726e-9,2.7743903e-9,2.8340548e-9,2.893719e-9,2.9533833e-9,3.0130476e-9,3.0727119e-9,3.1323761e-9,3.1920406e-9,3.251705e-9,3.3113692e-9,3.3710335e-9,3.4306977e-9,3.490362e-9,3.5500265e-9,3.6096908e-9,3.669355e-9,3.7290193e-9,3.7886836e-9,3.848348e-9,3.908012e-9,3.9676764e-9,4.0273407e-9,4.087005e-9,4.1466697e-9,4.206334e-9,4.265998e-9,4.3256625e-9,4.3853268e-9,4.444991e-9,4.5046553e-9,4.5643196e-9,4.623984e-9,4.683648e-9,4.7433124e-9,4.8029767e-9,4.8626414e-9,4.9223057e-9,4.98197e-9,5.041634e-9,5.1012985e-9,5.1609628e-9,5.220627e-9,5.2802913e-9,5.3399556e-9,5.39962e-9,5.459284e-9,5.5189484e-9,5.5786127e-9,5.6382774e-9,5.6979417e-9,5.757606e-9,5.81727e-9,5.8769345e-9,5.9365988e-9,5.996263e-9,6.0559273e-9,6.1155916e-9,6.175256e-9,6.23492e-9,6.2945844e-9,6.354249e-9,6.4139134e-9,6.4735777e-9,6.533242e-9,6.592906e-9,6.6525705e-9,6.7122348e-9,6.771899e-9,6.8315633e-9,6.8912276e-9,6.950892e-9,7.010556e-9,7.0702204e-9,7.129885e-9,7.1895494e-9,7.2492137e-9,7.308878e-9,7.368542e-9,7.4282065e-9,7.487871e-9,7.547535e-9,7.607199e-9,7.666864e-9,7.726528e-9,7.786192e-9,7.845856e-9,7.905521e-9,7.965185e-9,8.024849e-9,8.0845135e-9,8.144178e-9,8.203843e-9,8.263507e-9,8.3231715e-9,8.382836e-9,8.4425e-9,8.502164e-9,8.561829e-9,8.621493e-9,8.681157e-9,8.740821e-9,8.800486e-9,8.86015e-9,8.919814e-9,8.9794785e-9,9.039143e-9,9.098807e-9,9.158471e-9,9.218136e-9,9.2778e-9,9.337464e-9,9.397128e-9,9.456793e-9,9.516457e-9,9.576121e-9,9.6357855e-9,9.695451e-9,9.755115e-9,9.814779e-9,9.8744435e-9,9.934108e-9,9.993772e-9,1.0053436e-8,1.0113101e-8,1.0172765e-8,1.0232429e-8,1.0292093e-8,1.0351758e-8,1.0411422e-8,1.0471086e-8,1.05307505e-8,1.0590415e-8,1.0650079e-8,1.0709743e-8,1.0769408e-8,1.0829072e-8,1.0888736e-8,1.09484e-8,1.1008065e-8,1.1067729e-8,1.1127393e-8,1.1187058e-8,1.1246723e-8,1.1306387e-8,1.1366051e-8,1.14257155e-8,1.148538e-8,1.1545044e-8,1.1604708e-8,1.1664373e-8,1.1724037e-8,1.1783701e-8,1.1843365e-8,1.190303e-8,1.1962694e-8,1.2022358e-8,1.20820225e-8,1.2141687e-8,1.2201351e-8,1.2261015e-8,1.232068e-8,1.2380344e-8,1.2440008e-8,1.2499672e-8,1.2559337e-8,1.2619001e-8,1.2678666e-8,1.273833e-8,1.2797995e-8,1.2857659e-8,1.2917323e-8,1.29769875e-8,1.3036652e-8,1.3096316e-8,1.315598e-8,1.3215645e-8,1.3275309e-8,1.3334973e-8,1.3394637e-8,1.3454302e-8,1.3513966e-8,1.357363e-8,1.36332945e-8,1.3692959e-8,1.3752623e-8,1.3812287e-8,1.3871952e-8,1.3931616e-8,1.399128e-8,1.4050944e-8,1.4110609e-8,1.4170274e-8,1.4229938e-8,1.4289602e-8,1.4349267e-8,1.4408931e-8,1.4468595e-8,1.45282595e-8,1.4587924e-8,1.4647588e-8,1.4707252e-8,1.4766917e-8,1.4826581e-8,1.4886245e-8,1.494591e-8,1.5005574e-8,1.5065238e-8,1.5124902e-8,1.5184566e-8,1.524423e-8,1.5303895e-8,1.536356e-8,1.5423224e-8,1.5482888e-8,1.5542552e-8,1.5602216e-8,1.566188e-8,1.5721545e-8,1.578121e-8,1.5840874e-8,1.5900538e-8,1.5960202e-8,1.6019866e-8,1.607953e-8,1.6139195e-8,1.619886e-8,1.6258523e-8,1.6318188e-8,1.6377852e-8,1.6437518e-8,1.6497182e-8,1.6556847e-8,1.661651e-8,1.6676175e-8,1.673584e-8,1.6795504e-8,1.6855168e-8,1.6914832e-8,1.6974496e-8,1.703416e-8,1.7093825e-8,1.715349e-8,1.7213154e-8,1.7272818e-8,1.7332482e-8,1.7392146e-8,1.745181e-8,1.7511475e-8,1.757114e-8,1.7630803e-8,1.7690468e-8,1.7750132e-8,1.7809796e-8,1.786946e-8,1.7929125e-8,1.798879e-8,1.8048453e-8,1.8108118e-8,1.8167782e-8,1.8227446e-8,1.828711e-8,1.8346775e-8,1.8406439e-8,1.8466103e-8,1.8525768e-8,1.8585432e-8,1.8645096e-8,1.870476e-8,1.8764425e-8,1.8824089e-8,1.8883753e-8,1.8943418e-8,1.9003082e-8,1.9062746e-8,1.912241e-8,1.9182075e-8,1.9241739e-8,1.9301403e-8,1.9361067e-8,1.9420733e-8,1.9480398e-8,1.9540062e-8,1.9599726e-8,1.965939e-8,1.9719055e-8,1.9778719e-8,1.9838383e-8,1.9898048e-8,1.9957712e-8,2.0017376e-8,2.007704e-8,2.0136705e-8,2.0196369e-8,2.0256033e-8,2.0315698e-8,2.0375362e-8,2.0435026e-8,2.049469e-8,2.0554355e-8,2.0614019e-8,2.0673683e-8,2.0733347e-8,2.0793012e-8,2.0852676e-8,2.091234e-8,2.0972005e-8,2.1031669e-8,2.1091333e-8,2.1150997e-8,2.1210662e-8,2.1270326e-8,2.132999e-8,2.1389654e-8,2.1449319e-8,2.1508983e-8,2.1568647e-8,2.1628312e-8,2.1687976e-8,2.174764e-8,2.1807304e-8,2.1866969e-8,2.1926633e-8,2.1986297e-8,2.2045962e-8,2.2105626e-8,2.216529e-8,2.2224954e-8,2.2284619e-8,2.2344283e-8,2.2403949e-8,2.2463613e-8,2.2523277e-8,2.2582942e-8,2.2642606e-8,2.270227e-8,2.2761935e-8,2.2821599e-8,2.2881263e-8,2.2940927e-8,2.3000592e-8,2.3060256e-8,2.311992e-8,2.3179584e-8,2.3239249e-8,2.3298913e-8,2.3358577e-8,2.3418242e-8,2.3477906e-8,2.353757e-8,2.3597234e-8,2.3656899e-8,2.3716563e-8,2.3776227e-8,2.3835891e-8,2.3895556e-8,2.395522e-8,2.4014884e-8,2.4074549e-8,2.4134213e-8,2.4193877e-8,2.4253541e-8,2.4313206e-8,2.437287e-8,2.4432534e-8,2.4492198e-8,2.4551863e-8,2.4611527e-8,2.4671191e-8,2.4730856e-8,2.479052e-8,2.4850184e-8,2.4909848e-8,2.4969513e-8,2.5029177e-8,2.5088841e-8,2.5148506e-8,2.520817e-8,2.5267834e-8,2.5327498e-8,2.5387164e-8,2.5446829e-8,2.5506493e-8,2.5566157e-8,2.5625821e-8,2.5685486e-8,2.574515e-8,2.5804814e-8,2.5864479e-8,2.5924143e-8,2.5983807e-8,2.6043471e-8,2.6103136e-8,2.61628e-8,2.6222464e-8,2.6282128e-8,2.6341793e-8,2.6401457e-8,2.6461121e-8,2.6520786e-8,2.658045e-8,2.6640114e-8,2.6699778e-8,2.6759443e-8,2.6819107e-8,2.6878771e-8,2.6938435e-8,2.69981e-8,2.7057764e-8,2.7117428e-8,2.7177093e-8,2.7236757e-8,2.7296421e-8,2.7356085e-8,2.741575e-8,2.7475414e-8,2.7535078e-8,2.7594742e-8,2.7654407e-8,2.7714071e-8,2.7773735e-8,2.78334e-8,2.7893064e-8,2.7952728e-8,2.8012392e-8,2.8072057e-8,2.8131721e-8,2.8191385e-8,2.825105e-8,2.8310714e-8,2.837038e-8,2.8430044e-8,2.8489708e-8,2.8549373e-8,2.8609037e-8,2.8668701e-8,2.8728365e-8,2.878803e-8,2.8847694e-8,2.8907358e-8,2.8967023e-8,2.9026687e-8,2.9086351e-8,2.9146015e-8,2.920568e-8,2.9265344e-8,2.9325008e-8,2.9384672e-8,2.9444337e-8,2.9504001e-8,2.9563665e-8,2.962333e-8,2.9682994e-8,2.9742658e-8,2.9802322e-8],"x":[-2.9802322e-8,-2.9742658e-8,-2.9682994e-8,-2.962333e-8,-2.9563665e-8,-2.9504001e-8,-2.9444337e-8,-2.9384672e-8,-2.9325008e-8,-2.9265344e-8,-2.920568e-8,-2.9146015e-8,-2.9086351e-8,-2.9026687e-8,-2.8967023e-8,-2.8907358e-8,-2.8847694e-8,-2.878803e-8,-2.8728365e-8,-2.8668701e-8,-2.8609037e-8,-2.8549373e-8,-2.8489708e-8,-2.8430044e-8,-2.837038e-8,-2.8310714e-8,-2.825105e-8,-2.8191385e-8,-2.8131721e-8,-2.8072057e-8,-2.8012392e-8,-2.7952728e-8,-2.7893064e-8,-2.78334e-8,-2.7773735e-8,-2.7714071e-8,-2.7654407e-8,-2.7594742e-8,-2.7535078e-8,-2.7475414e-8,-2.741575e-8,-2.7356085e-8,-2.7296421e-8,-2.7236757e-8,-2.7177093e-8,-2.7117428e-8,-2.7057764e-8,-2.69981e-8,-2.6938435e-8,-2.6878771e-8,-2.6819107e-8,-2.6759443e-8,-2.6699778e-8,-2.6640114e-8,-2.658045e-8,-2.6520786e-8,-2.6461121e-8,-2.6401457e-8,-2.6341793e-8,-2.6282128e-8,-2.6222464e-8,-2.61628e-8,-2.6103136e-8,-2.6043471e-8,-2.5983807e-8,-2.5924143e-8,-2.5864479e-8,-2.5804814e-8,-2.574515e-8,-2.5685486e-8,-2.5625821e-8,-2.5566157e-8,-2.5506493e-8,-2.5446829e-8,-2.5387164e-8,-2.5327498e-8,-2.5267834e-8,-2.520817e-8,-2.5148506e-8,-2.5088841e-8,-2.5029177e-8,-2.4969513e-8,-2.4909848e-8,-2.4850184e-8,-2.479052e-8,-2.4730856e-8,-2.4671191e-8,-2.4611527e-8,-2.4551863e-8,-2.4492198e-8,-2.4432534e-8,-2.437287e-8,-2.4313206e-8,-2.4253541e-8,-2.4193877e-8,-2.4134213e-8,-2.4074549e-8,-2.4014884e-8,-2.395522e-8,-2.3895556e-8,-2.3835891e-8,-2.3776227e-8,-2.3716563e-8,-2.3656899e-8,-2.3597234e-8,-2.353757e-8,-2.3477906e-8,-2.3418242e-8,-2.3358577e-8,-2.3298913e-8,-2.3239249e-8,-2.3179584e-8,-2.311992e-8,-2.3060256e-8,-2.3000592e-8,-2.2940927e-8,-2.2881263e-8,-2.2821599e-8,-2.2761935e-8,-2.270227e-8,-2.2642606e-8,-2.2582942e-8,-2.2523277e-8,-2.2463613e-8,-2.2403949e-8,-2.2344283e-8,-2.2284619e-8,-2.2224954e-8,-2.216529e-8,-2.2105626e-8,-2.2045962e-8,-2.1986297e-8,-2.1926633e-8,-2.1866969e-8,-2.1807304e-8,-2.174764e-8,-2.1687976e-8,-2.1628312e-8,-2.1568647e-8,-2.1508983e-8,-2.1449319e-8,-2.1389654e-8,-2.132999e-8,-2.1270326e-8,-2.1210662e-8,-2.1150997e-8,-2.1091333e-8,-2.1031669e-8,-2.0972005e-8,-2.091234e-8,-2.0852676e-8,-2.0793012e-8,-2.0733347e-8,-2.0673683e-8,-2.0614019e-8,-2.0554355e-8,-2.049469e-8,-2.0435026e-8,-2.0375362e-8,-2.0315698e-8,-2.0256033e-8,-2.0196369e-8,-2.0136705e-8,-2.007704e-8,-2.0017376e-8,-1.9957712e-8,-1.9898048e-8,-1.9838383e-8,-1.9778719e-8,-1.9719055e-8,-1.965939e-8,-1.9599726e-8,-1.9540062e-8,-1.9480398e-8,-1.9420733e-8,-1.9361067e-8,-1.9301403e-8,-1.9241739e-8,-1.9182075e-8,-1.912241e-8,-1.9062746e-8,-1.9003082e-8,-1.8943418e-8,-1.8883753e-8,-1.8824089e-8,-1.8764425e-8,-1.870476e-8,-1.8645096e-8,-1.8585432e-8,-1.8525768e-8,-1.8466103e-8,-1.8406439e-8,-1.8346775e-8,-1.828711e-8,-1.8227446e-8,-1.8167782e-8,-1.8108118e-8,-1.8048453e-8,-1.798879e-8,-1.7929125e-8,-1.786946e-8,-1.7809796e-8,-1.7750132e-8,-1.7690468e-8,-1.7630803e-8,-1.757114e-8,-1.7511475e-8,-1.745181e-8,-1.7392146e-8,-1.7332482e-8,-1.7272818e-8,-1.7213154e-8,-1.715349e-8,-1.7093825e-8,-1.703416e-8,-1.6974496e-8,-1.6914832e-8,-1.6855168e-8,-1.6795504e-8,-1.673584e-8,-1.6676175e-8,-1.661651e-8,-1.6556847e-8,-1.6497182e-8,-1.6437518e-8,-1.6377852e-8,-1.6318188e-8,-1.6258523e-8,-1.619886e-8,-1.6139195e-8,-1.607953e-8,-1.6019866e-8,-1.5960202e-8,-1.5900538e-8,-1.5840874e-8,-1.578121e-8,-1.5721545e-8,-1.566188e-8,-1.5602216e-8,-1.5542552e-8,-1.5482888e-8,-1.5423224e-8,-1.536356e-8,-1.5303895e-8,-1.524423e-8,-1.5184566e-8,-1.5124902e-8,-1.5065238e-8,-1.5005574e-8,-1.494591e-8,-1.4886245e-8,-1.4826581e-8,-1.4766917e-8,-1.4707252e-8,-1.4647588e-8,-1.4587924e-8,-1.45282595e-8,-1.4468595e-8,-1.4408931e-8,-1.4349267e-8,-1.4289602e-8,-1.4229938e-8,-1.4170274e-8,-1.4110609e-8,-1.4050944e-8,-1.399128e-8,-1.3931616e-8,-1.3871952e-8,-1.3812287e-8,-1.3752623e-8,-1.3692959e-8,-1.36332945e-8,-1.357363e-8,-1.3513966e-8,-1.3454302e-8,-1.3394637e-8,-1.3334973e-8,-1.3275309e-8,-1.3215645e-8,-1.315598e-8,-1.3096316e-8,-1.3036652e-8,-1.29769875e-8,-1.2917323e-8,-1.2857659e-8,-1.2797995e-8,-1.273833e-8,-1.2678666e-8,-1.2619001e-8,-1.2559337e-8,-1.2499672e-8,-1.2440008e-8,-1.2380344e-8,-1.232068e-8,-1.2261015e-8,-1.2201351e-8,-1.2141687e-8,-1.20820225e-8,-1.2022358e-8,-1.1962694e-8,-1.190303e-8,-1.1843365e-8,-1.1783701e-8,-1.1724037e-8,-1.1664373e-8,-1.1604708e-8,-1.1545044e-8,-1.148538e-8,-1.14257155e-8,-1.1366051e-8,-1.1306387e-8,-1.1246723e-8,-1.1187058e-8,-1.1127393e-8,-1.1067729e-8,-1.1008065e-8,-1.09484e-8,-1.0888736e-8,-1.0829072e-8,-1.0769408e-8,-1.0709743e-8,-1.0650079e-8,-1.0590415e-8,-1.05307505e-8,-1.0471086e-8,-1.0411422e-8,-1.0351758e-8,-1.0292093e-8,-1.0232429e-8,-1.0172765e-8,-1.0113101e-8,-1.0053436e-8,-9.993772e-9,-9.934108e-9,-9.8744435e-9,-9.814779e-9,-9.755115e-9,-9.695451e-9,-9.6357855e-9,-9.576121e-9,-9.516457e-9,-9.456793e-9,-9.397128e-9,-9.337464e-9,-9.2778e-9,-9.218136e-9,-9.158471e-9,-9.098807e-9,-9.039143e-9,-8.9794785e-9,-8.919814e-9,-8.86015e-9,-8.800486e-9,-8.740821e-9,-8.681157e-9,-8.621493e-9,-8.561829e-9,-8.502164e-9,-8.4425e-9,-8.382836e-9,-8.3231715e-9,-8.263507e-9,-8.203843e-9,-8.144178e-9,-8.0845135e-9,-8.024849e-9,-7.965185e-9,-7.905521e-9,-7.845856e-9,-7.786192e-9,-7.726528e-9,-7.666864e-9,-7.607199e-9,-7.547535e-9,-7.487871e-9,-7.4282065e-9,-7.368542e-9,-7.308878e-9,-7.2492137e-9,-7.1895494e-9,-7.129885e-9,-7.0702204e-9,-7.010556e-9,-6.950892e-9,-6.8912276e-9,-6.8315633e-9,-6.771899e-9,-6.7122348e-9,-6.6525705e-9,-6.592906e-9,-6.533242e-9,-6.4735777e-9,-6.4139134e-9,-6.354249e-9,-6.2945844e-9,-6.23492e-9,-6.175256e-9,-6.1155916e-9,-6.0559273e-9,-5.996263e-9,-5.9365988e-9,-5.8769345e-9,-5.81727e-9,-5.757606e-9,-5.6979417e-9,-5.6382774e-9,-5.5786127e-9,-5.5189484e-9,-5.459284e-9,-5.39962e-9,-5.3399556e-9,-5.2802913e-9,-5.220627e-9,-5.1609628e-9,-5.1012985e-9,-5.041634e-9,-4.98197e-9,-4.9223057e-9,-4.8626414e-9,-4.8029767e-9,-4.7433124e-9,-4.683648e-9,-4.623984e-9,-4.5643196e-9,-4.5046553e-9,-4.444991e-9,-4.3853268e-9,-4.3256625e-9,-4.265998e-9,-4.206334e-9,-4.1466697e-9,-4.087005e-9,-4.0273407e-9,-3.9676764e-9,-3.908012e-9,-3.848348e-9,-3.7886836e-9,-3.7290193e-9,-3.669355e-9,-3.6096908e-9,-3.5500265e-9,-3.490362e-9,-3.4306977e-9,-3.3710335e-9,-3.3113692e-9,-3.251705e-9,-3.1920406e-9,-3.1323761e-9,-3.0727119e-9,-3.0130476e-9,-2.9533833e-9,-2.893719e-9,-2.8340548e-9,-2.7743903e-9,-2.714726e-9,-2.6550617e-9,-2.5953975e-9,-2.5357332e-9,-2.476069e-9,-2.4164044e-9,-2.3567401e-9,-2.2970759e-9,-2.2374116e-9,-2.1777473e-9,-2.118083e-9,-2.0584188e-9,-1.9987543e-9,-1.93909e-9,-1.8794257e-9,-1.8197615e-9,-1.7600971e-9,-1.7004328e-9,-1.6407685e-9,-1.5811041e-9,-1.5214399e-9,-1.4617756e-9,-1.4021113e-9,-1.3424469e-9,-1.2827827e-9,-1.2231184e-9,-1.163454e-9,-1.1037897e-9,-1.0441255e-9,-9.844611e-10,-9.247968e-10,-8.6513247e-10,-8.054682e-10,-7.4580386e-10,-6.8613953e-10,-6.2647526e-10,-5.6681093e-10,-5.071466e-10,-4.4748233e-10,-3.87818e-10,-3.281537e-10,-2.684894e-10,-2.0882508e-10,-1.4916077e-10,-8.9496466e-11,-2.9832154e-11,2.9832154e-11,8.9496466e-11,1.4916077e-10,2.0882508e-10,2.684894e-10,3.281537e-10,3.87818e-10,4.4748233e-10,5.071466e-10,5.6681093e-10,6.2647526e-10,6.8613953e-10,7.4580386e-10,8.054682e-10,8.6513247e-10,9.247968e-10,9.844611e-10,1.0441255e-9,1.1037897e-9,1.163454e-9,1.2231184e-9,1.2827827e-9,1.3424469e-9,1.4021113e-9,1.4617756e-9,1.5214399e-9,1.5811041e-9,1.6407685e-9,1.7004328e-9,1.7600971e-9,1.8197615e-9,1.8794257e-9,1.93909e-9,1.9987543e-9,2.0584188e-9,2.118083e-9,2.1777473e-9,2.2374116e-9,2.2970759e-9,2.3567401e-9,2.4164044e-9,2.476069e-9,2.5357332e-9,2.5953975e-9,2.6550617e-9,2.714726e-9,2.7743903e-9,2.8340548e-9,2.893719e-9,2.9533833e-9,3.0130476e-9,3.0727119e-9,3.1323761e-9,3.1920406e-9,3.251705e-9,3.3113692e-9,3.3710335e-9,3.4306977e-9,3.490362e-9,3.5500265e-9,3.6096908e-9,3.669355e-9,3.7290193e-9,3.7886836e-9,3.848348e-9,3.908012e-9,3.9676764e-9,4.0273407e-9,4.087005e-9,4.1466697e-9,4.206334e-9,4.265998e-9,4.3256625e-9,4.3853268e-9,4.444991e-9,4.5046553e-9,4.5643196e-9,4.623984e-9,4.683648e-9,4.7433124e-9,4.8029767e-9,4.8626414e-9,4.9223057e-9,4.98197e-9,5.041634e-9,5.1012985e-9,5.1609628e-9,5.220627e-9,5.2802913e-9,5.3399556e-9,5.39962e-9,5.459284e-9,5.5189484e-9,5.5786127e-9,5.6382774e-9,5.6979417e-9,5.757606e-9,5.81727e-9,5.8769345e-9,5.9365988e-9,5.996263e-9,6.0559273e-9,6.1155916e-9,6.175256e-9,6.23492e-9,6.2945844e-9,6.354249e-9,6.4139134e-9,6.4735777e-9,6.533242e-9,6.592906e-9,6.6525705e-9,6.7122348e-9,6.771899e-9,6.8315633e-9,6.8912276e-9,6.950892e-9,7.010556e-9,7.0702204e-9,7.129885e-9,7.1895494e-9,7.2492137e-9,7.308878e-9,7.368542e-9,7.4282065e-9,7.487871e-9,7.547535e-9,7.607199e-9,7.666864e-9,7.726528e-9,7.786192e-9,7.845856e-9,7.905521e-9,7.965185e-9,8.024849e-9,8.0845135e-9,8.144178e-9,8.203843e-9,8.263507e-9,8.3231715e-9,8.382836e-9,8.4425e-9,8.502164e-9,8.561829e-9,8.621493e-9,8.681157e-9,8.740821e-9,8.800486e-9,8.86015e-9,8.919814e-9,8.9794785e-9,9.039143e-9,9.098807e-9,9.158471e-9,9.218136e-9,9.2778e-9,9.337464e-9,9.397128e-9,9.456793e-9,9.516457e-9,9.576121e-9,9.6357855e-9,9.695451e-9,9.755115e-9,9.814779e-9,9.8744435e-9,9.934108e-9,9.993772e-9,1.0053436e-8,1.0113101e-8,1.0172765e-8,1.0232429e-8,1.0292093e-8,1.0351758e-8,1.0411422e-8,1.0471086e-8,1.05307505e-8,1.0590415e-8,1.0650079e-8,1.0709743e-8,1.0769408e-8,1.0829072e-8,1.0888736e-8,1.09484e-8,1.1008065e-8,1.1067729e-8,1.1127393e-8,1.1187058e-8,1.1246723e-8,1.1306387e-8,1.1366051e-8,1.14257155e-8,1.148538e-8,1.1545044e-8,1.1604708e-8,1.1664373e-8,1.1724037e-8,1.1783701e-8,1.1843365e-8,1.190303e-8,1.1962694e-8,1.2022358e-8,1.20820225e-8,1.2141687e-8,1.2201351e-8,1.2261015e-8,1.232068e-8,1.2380344e-8,1.2440008e-8,1.2499672e-8,1.2559337e-8,1.2619001e-8,1.2678666e-8,1.273833e-8,1.2797995e-8,1.2857659e-8,1.2917323e-8,1.29769875e-8,1.3036652e-8,1.3096316e-8,1.315598e-8,1.3215645e-8,1.3275309e-8,1.3334973e-8,1.3394637e-8,1.3454302e-8,1.3513966e-8,1.357363e-8,1.36332945e-8,1.3692959e-8,1.3752623e-8,1.3812287e-8,1.3871952e-8,1.3931616e-8,1.399128e-8,1.4050944e-8,1.4110609e-8,1.4170274e-8,1.4229938e-8,1.4289602e-8,1.4349267e-8,1.4408931e-8,1.4468595e-8,1.45282595e-8,1.4587924e-8,1.4647588e-8,1.4707252e-8,1.4766917e-8,1.4826581e-8,1.4886245e-8,1.494591e-8,1.5005574e-8,1.5065238e-8,1.5124902e-8,1.5184566e-8,1.524423e-8,1.5303895e-8,1.536356e-8,1.5423224e-8,1.5482888e-8,1.5542552e-8,1.5602216e-8,1.566188e-8,1.5721545e-8,1.578121e-8,1.5840874e-8,1.5900538e-8,1.5960202e-8,1.6019866e-8,1.607953e-8,1.6139195e-8,1.619886e-8,1.6258523e-8,1.6318188e-8,1.6377852e-8,1.6437518e-8,1.6497182e-8,1.6556847e-8,1.661651e-8,1.6676175e-8,1.673584e-8,1.6795504e-8,1.6855168e-8,1.6914832e-8,1.6974496e-8,1.703416e-8,1.7093825e-8,1.715349e-8,1.7213154e-8,1.7272818e-8,1.7332482e-8,1.7392146e-8,1.745181e-8,1.7511475e-8,1.757114e-8,1.7630803e-8,1.7690468e-8,1.7750132e-8,1.7809796e-8,1.786946e-8,1.7929125e-8,1.798879e-8,1.8048453e-8,1.8108118e-8,1.8167782e-8,1.8227446e-8,1.828711e-8,1.8346775e-8,1.8406439e-8,1.8466103e-8,1.8525768e-8,1.8585432e-8,1.8645096e-8,1.870476e-8,1.8764425e-8,1.8824089e-8,1.8883753e-8,1.8943418e-8,1.9003082e-8,1.9062746e-8,1.912241e-8,1.9182075e-8,1.9241739e-8,1.9301403e-8,1.9361067e-8,1.9420733e-8,1.9480398e-8,1.9540062e-8,1.9599726e-8,1.965939e-8,1.9719055e-8,1.9778719e-8,1.9838383e-8,1.9898048e-8,1.9957712e-8,2.0017376e-8,2.007704e-8,2.0136705e-8,2.0196369e-8,2.0256033e-8,2.0315698e-8,2.0375362e-8,2.0435026e-8,2.049469e-8,2.0554355e-8,2.0614019e-8,2.0673683e-8,2.0733347e-8,2.0793012e-8,2.0852676e-8,2.091234e-8,2.0972005e-8,2.1031669e-8,2.1091333e-8,2.1150997e-8,2.1210662e-8,2.1270326e-8,2.132999e-8,2.1389654e-8,2.1449319e-8,2.1508983e-8,2.1568647e-8,2.1628312e-8,2.1687976e-8,2.174764e-8,2.1807304e-8,2.1866969e-8,2.1926633e-8,2.1986297e-8,2.2045962e-8,2.2105626e-8,2.216529e-8,2.2224954e-8,2.2284619e-8,2.2344283e-8,2.2403949e-8,2.2463613e-8,2.2523277e-8,2.2582942e-8,2.2642606e-8,2.270227e-8,2.2761935e-8,2.2821599e-8,2.2881263e-8,2.2940927e-8,2.3000592e-8,2.3060256e-8,2.311992e-8,2.3179584e-8,2.3239249e-8,2.3298913e-8,2.3358577e-8,2.3418242e-8,2.3477906e-8,2.353757e-8,2.3597234e-8,2.3656899e-8,2.3716563e-8,2.3776227e-8,2.3835891e-8,2.3895556e-8,2.395522e-8,2.4014884e-8,2.4074549e-8,2.4134213e-8,2.4193877e-8,2.4253541e-8,2.4313206e-8,2.437287e-8,2.4432534e-8,2.4492198e-8,2.4551863e-8,2.4611527e-8,2.4671191e-8,2.4730856e-8,2.479052e-8,2.4850184e-8,2.4909848e-8,2.4969513e-8,2.5029177e-8,2.5088841e-8,2.5148506e-8,2.520817e-8,2.5267834e-8,2.5327498e-8,2.5387164e-8,2.5446829e-8,2.5506493e-8,2.5566157e-8,2.5625821e-8,2.5685486e-8,2.574515e-8,2.5804814e-8,2.5864479e-8,2.5924143e-8,2.5983807e-8,2.6043471e-8,2.6103136e-8,2.61628e-8,2.6222464e-8,2.6282128e-8,2.6341793e-8,2.6401457e-8,2.6461121e-8,2.6520786e-8,2.658045e-8,2.6640114e-8,2.6699778e-8,2.6759443e-8,2.6819107e-8,2.6878771e-8,2.6938435e-8,2.69981e-8,2.7057764e-8,2.7117428e-8,2.7177093e-8,2.7236757e-8,2.7296421e-8,2.7356085e-8,2.741575e-8,2.7475414e-8,2.7535078e-8,2.7594742e-8,2.7654407e-8,2.7714071e-8,2.7773735e-8,2.78334e-8,2.7893064e-8,2.7952728e-8,2.8012392e-8,2.8072057e-8,2.8131721e-8,2.8191385e-8,2.825105e-8,2.8310714e-8,2.837038e-8,2.8430044e-8,2.8489708e-8,2.8549373e-8,2.8609037e-8,2.8668701e-8,2.8728365e-8,2.878803e-8,2.8847694e-8,2.8907358e-8,2.8967023e-8,2.9026687e-8,2.9086351e-8,2.9146015e-8,2.920568e-8,2.9265344e-8,2.9325008e-8,2.9384672e-8,2.9444337e-8,2.9504001e-8,2.9563665e-8,2.962333e-8,2.9682994e-8,2.9742658e-8,2.9802322e-8]} diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/test.js b/lib/node_modules/@stdlib/math/base/special/expm1f/test/test.js new file mode 100644 index 000000000000..8e381d52045f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/test.js @@ -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. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var PINF = require( '@stdlib/constants/float32/pinf' ); +var NINF = require( '@stdlib/constants/float32/ninf' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' ); +var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var isAlmostSameValue = require( '@stdlib/number/float32/base/assert/is-almost-same-value' ); +var expm1f = require( './../lib' ); + + +// FIXTURES // + +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 tiny = require( './fixtures/julia/tiny.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof expm1f, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function computes exp(x)-1 (medium negative values)', function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = mediumNegative.x; + expected = mediumNegative.expected; + + ulps = 2; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function computes exp(x)-1 (medium positive values)', function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = mediumPositive.x; + expected = mediumPositive.expected; + + ulps = 2; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function computes exp(x)-1 (small negative values)', function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = smallNegative.x; + expected = smallNegative.expected; + + ulps = 2; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function computes exp(x)-1 (small positive values)', function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = smallPositive.x; + expected = smallPositive.expected; + + ulps = 2; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function computes exp(x)-1 (tiny values)', function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = tiny.x; + expected = tiny.expected; + + ulps = 1; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function returns `+0` if provided `+0`', function test( t ) { + var v = expm1f( +0.0 ); + t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `-0` if provided `-0`', function test( t ) { + var v = expm1f( -0.0 ); + t.strictEqual( isNegativeZerof( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { + var v = expm1f( NaN ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `+infinity` if provided `+infinity`', function test( t ) { + var v = expm1f( PINF ); + t.strictEqual( v, PINF, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `-1` if provided `-infinity`', function test( t ) { + var v = expm1f( NINF ); + t.strictEqual( v, -1.0, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `+infinity` for large positive values (overflow)', function test( t ) { + var v; + + v = expm1f( 89.0 ); + t.strictEqual( v, PINF, 'returns expected value' ); + + v = expm1f( 100.0 ); + t.strictEqual( v, PINF, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns `-1` for very negative values', function test( t ) { + var v; + + v = expm1f( f32( -50.0 ) ); + t.strictEqual( v, -1.0, 'returns expected value' ); + + v = expm1f( f32( -100.0 ) ); + t.strictEqual( v, -1.0, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/expm1f/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/expm1f/test/test.native.js new file mode 100644 index 000000000000..6da03df76537 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/expm1f/test/test.native.js @@ -0,0 +1,212 @@ +/** +* @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 PINF = require( '@stdlib/constants/float32/pinf' ); +var NINF = require( '@stdlib/constants/float32/ninf' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' ); +var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var isAlmostSameValue = require( '@stdlib/number/float32/base/assert/is-almost-same-value' ); +var tryRequire = require( '@stdlib/utils/try-require' ); + + +// FIXTURES // + +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 tiny = require( './fixtures/julia/tiny.json' ); + + +// VARIABLES // + +var expm1f = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( expm1f instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof expm1f, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function computes exp(x)-1 (medium negative values)', opts, function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = mediumNegative.x; + expected = mediumNegative.expected; + + ulps = 2; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function computes exp(x)-1 (medium positive values)', opts, function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = mediumPositive.x; + expected = mediumPositive.expected; + + ulps = 2; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function computes exp(x)-1 (small negative values)', opts, function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = smallNegative.x; + expected = smallNegative.expected; + + ulps = 2; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function computes exp(x)-1 (small positive values)', opts, function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = smallPositive.x; + expected = smallPositive.expected; + + ulps = 2; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function computes exp(x)-1 (tiny values)', opts, function test( t ) { + var expected; + var ulps; + var x; + var y; + var i; + var e; + + x = tiny.x; + expected = tiny.expected; + + ulps = 1; + for ( i = 0; i < x.length; i++ ) { + y = expm1f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( isAlmostSameValue( y, e, ulps ), true, 'within '+ulps+' ULPs. x: '+x[i]+'. y: '+y+'. E: '+e ); + } + t.end(); +}); + +tape( 'the function returns `+0` if provided `+0`', opts, function test( t ) { + var v = expm1f( +0.0 ); + t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `-0` if provided `-0`', opts, function test( t ) { + var v = expm1f( -0.0 ); + t.strictEqual( isNegativeZerof( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { + var v = expm1f( NaN ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `+infinity` if provided `+infinity`', opts, function test( t ) { + var v = expm1f( PINF ); + t.strictEqual( v, PINF, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `-1` if provided `-infinity`', opts, function test( t ) { + var v = expm1f( NINF ); + t.strictEqual( v, -1.0, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `+infinity` for large positive values (overflow)', opts, function test( t ) { + var v; + + v = expm1f( 89.0 ); + t.strictEqual( v, PINF, 'returns expected value' ); + + v = expm1f( 100.0 ); + t.strictEqual( v, PINF, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns `-1` for very negative values', opts, function test( t ) { + var v; + + v = expm1f( f32( -50.0 ) ); + t.strictEqual( v, -1.0, 'returns expected value' ); + + v = expm1f( f32( -100.0 ) ); + t.strictEqual( v, -1.0, 'returns expected value' ); + + t.end(); +});