diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/README.md b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/README.md new file mode 100644 index 000000000000..34c11f70bc20 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/README.md @@ -0,0 +1,217 @@ + + +# xlog1pyf + +> Compute `x * ln(y+1)` so that the result is `0` if `x = 0` for single-precision floating-point numbers. + +
+ +## Usage + +```javascript +var xlog1pyf = require( '@stdlib/math/base/special/xlog1pyf' ); +``` + +#### xlog1pyf( x, y ) + +Computes `x * ln(y+1)` so that the result is `0` if `x = 0` for single-precision floating-point numbers `x` and `y`. + +```javascript +var out = xlog1pyf( 3.0, 2.0 ); +// returns ~3.296 + +out = xlog1pyf( 1.5, 5.9 ); +// returns ~2.897 + +out = xlog1pyf( 0.9, 1.0 ); +// returns ~0.624 + +out = xlog1pyf( 1.0, 0.0 ); +// returns 0.0 + +out = xlog1pyf( 0.0, -2.0 ); +// returns 0.0 + +out = xlog1pyf( 1.5, NaN ); +// returns NaN + +out = xlog1pyf( 0.0, NaN ); +// returns NaN + +out = xlog1pyf( NaN, 2.3 ); +// returns NaN +``` + +
+ + + +
+ +## Examples + + + +```javascript +var randu = require( '@stdlib/random/base/randu' ); +var xlog1pyf = require( '@stdlib/math/base/special/xlog1pyf' ); + +var x; +var y; +var i; + +for ( i = 0; i < 100; i++ ) { + x = randu(); + if ( x < 0.5 ) { + x = 0.0; + } + y = ( randu() * 20.0 ) - 5.0; + console.log( 'xlog1pyf(%d, %d) = %d', x, y, xlog1pyf( x, y ) ); +} +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/xlog1pyf.h" +``` + +#### stdlib_base_xlog1pyf( x, y ) + +Computes `x * ln(y+1)` so that the result is `0` if `x = 0` for single-precision floating-point numbers `x` and `y`. + +```c +float v = stdlib_base_xlog1pyf( 3.0f, 2.0f ); +// returns ~3.296f +``` + +The function accepts the following arguments: + +- **x**: `[in] float` input value. +- **y**: `[in] float` input value. + +```c +float stdlib_base_xlog1pyf( const float x, const float y ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/xlog1pyf.h" +#include +#include + +int main( void ) { + float out; + float x; + float y; + int i; + + for ( i = 0; i < 100; i++ ) { + x = ( (float)rand() / (float)RAND_MAX ) * 100.0f; + y = ( (float)rand() / (float)RAND_MAX ) * 5.0f; + out = stdlib_base_xlog1pyf( x, y ); + printf( "xlog1pyf(%f, %f) = %f\n", x, y, out ); + } +} +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/benchmark.js new file mode 100644 index 000000000000..f9ac1ae05e3a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/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 xlog1pyf = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var out; + var x; + var y; + var i; + + x = uniform( 100, 0.0, 10.0 ); + y = uniform( 100, 0.0, 10.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + out = xlog1pyf( x[ i % x.length ], y[ i % y.length ] ); + if ( isnanf( out ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( out ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/benchmark.native.js new file mode 100644 index 000000000000..828860e7ddd2 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/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 xlog1pyf = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( xlog1pyf instanceof Error ) +}; + + +// MAIN // + +bench( format( '%s::native', pkg ), opts, function benchmark( b ) { + var out; + var x; + var y; + var i; + + x = uniform( 100, 0.0, 100.0 ); + y = uniform( 100, 0.0, 5.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + out = xlog1pyf( x[ i % x.length ], y[ i % y.length ] ); + if ( isnanf( out ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( out ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/c/Makefile b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/c/Makefile new file mode 100644 index 000000000000..979768abbcec --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := benchmark.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/c/benchmark.c new file mode 100644 index 000000000000..7cf109af280a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/benchmark/c/benchmark.c @@ -0,0 +1,138 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/xlog1pyf.h" +#include +#include +#include +#include +#include + +#define NAME "xlog1pyf" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmarks results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec / 1.0e6; +} + +/** +* Generates a random number on the interval [0,1). +* +* @return random number +*/ +static float rand_double( void ) { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + float x[ 100 ]; + float y[ 100 ]; + double elapsed; + double out; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 100.0f*rand_double() ); + y[ i ] = ( 5.0f*rand_double() ); + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + out = stdlib_base_xlog1pyf( x[ i%100 ], y[ i%100 ] ); + if ( out != out ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( out != out ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::native::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i + 1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/binding.gyp b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/binding.gyp new file mode 100644 index 000000000000..0d6508a12e99 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/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/xlog1pyf/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/docs/repl.txt new file mode 100644 index 000000000000..d9cef1a815f4 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/docs/repl.txt @@ -0,0 +1,40 @@ + +{{alias}}( x, y ) + Computes `x * ln(y+1)` so that the result is `0` if `x = 0` for + single-precision floating-point numbers. + + Parameters + ---------- + x: number + Input value. + + y: number + Input value. + + Returns + ------- + out: number + Function value. + + Examples + -------- + > var out = {{alias}}( 3.0, 2.0 ) + ~3.296 + > out = {{alias}}( 1.5, 5.9 ) + ~2.897 + > out = {{alias}}( 0.9, 1.0 ) + ~0.624 + > out = {{alias}}( 1.0, 0.0 ) + 0.0 + > out = {{alias}}( 0.0, -2.0 ) + 0.0 + > out = {{alias}}( 1.5, NaN ) + NaN + > out = {{alias}}( 0.0, NaN ) + NaN + > out = {{alias}}( NaN, 2.3 ) + NaN + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/docs/types/index.d.ts new file mode 100644 index 000000000000..e3951eaf1ff4 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/docs/types/index.d.ts @@ -0,0 +1,65 @@ +/* +* @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 `x * ln(y+1)` so that the result is `0` if `x = 0` for single-precision floating-point numbers `x` and `y`. +* +* @param x - input value +* @param y - input value +* @returns function value +* +* @example +* var out = xlog1pyf( 3.0, 2.0 ); +* // returns ~3.296 +* +* @example +* var out = xlog1pyf( 1.5, 5.9 ); +* // returns ~2.897 +* +* @example +* var out = xlog1pyf( 0.9, 1.0 ); +* // returns ~0.624 +* +* @example +* var out = xlog1pyf( 1.0, 0.0 ); +* // returns 0.0 +* +* @example +* var out = xlog1pyf( 0.0, -2.0 ); +* // returns 0.0 +* +* @example +* var out = xlog1pyf( 1.5, NaN ); +* // returns NaN +* +* @example +* var out = xlog1pyf( 0.0, NaN ); +* // returns NaN +* +* @example +* var out = xlog1pyf( NaN, 2.3 ); +* // returns NaN +*/ +declare function xlog1pyf( x: number, y: number ): number; + + +// EXPORTS // + +export = xlog1pyf; diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/docs/types/test.ts new file mode 100644 index 000000000000..b0dea6f0fec6 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/docs/types/test.ts @@ -0,0 +1,56 @@ +/* +* @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 xlog1pyf = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + xlog1pyf( 8, 2 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided values other than two numbers... +{ + xlog1pyf( true, 3 ); // $ExpectError + xlog1pyf( false, 2 ); // $ExpectError + xlog1pyf( '5', 1 ); // $ExpectError + xlog1pyf( [], 1 ); // $ExpectError + xlog1pyf( {}, 2 ); // $ExpectError + xlog1pyf( ( x: number ): number => x, 2 ); // $ExpectError + + xlog1pyf( 9, true ); // $ExpectError + xlog1pyf( 9, false ); // $ExpectError + xlog1pyf( 5, '5' ); // $ExpectError + xlog1pyf( 8, [] ); // $ExpectError + xlog1pyf( 9, {} ); // $ExpectError + xlog1pyf( 8, ( x: number ): number => x ); // $ExpectError + + xlog1pyf( [], true ); // $ExpectError + xlog1pyf( {}, false ); // $ExpectError + xlog1pyf( false, '5' ); // $ExpectError + xlog1pyf( {}, [] ); // $ExpectError + xlog1pyf( '5', ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + xlog1pyf(); // $ExpectError + xlog1pyf( 3 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/examples/c/Makefile b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/examples/c/Makefile new file mode 100644 index 000000000000..c8f8e9a1517b --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/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/xlog1pyf/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/examples/c/example.c new file mode 100644 index 000000000000..427a10148a6d --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/examples/c/example.c @@ -0,0 +1,35 @@ +/** +* @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/xlog1pyf.h" +#include +#include + +int main( void ) { + float out; + float x; + float y; + int i; + + for ( i = 0; i < 100; i++ ) { + x = ( (float)rand() / (float)RAND_MAX ) * 100.0; + y = ( (float)rand() / (float)RAND_MAX ) * 5.0; + out = stdlib_base_xlog1pyf( x, y ); + printf( "xlog1pyf(%f, %f) = %f\n", x, y, out ); + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/examples/index.js b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/examples/index.js new file mode 100644 index 000000000000..b8f2f7d9a709 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/examples/index.js @@ -0,0 +1,35 @@ +/** +* @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 randu = require( '@stdlib/random/base/randu' ); +var xlog1pyf = require( './../lib' ); + +var x; +var y; +var i; + +for ( i = 0; i < 100; i++ ) { + x = randu(); + if ( x < 0.5 ) { + x = 0.0; + } + y = ( randu() * 20.0 ) - 5.0; + console.log( 'xlog1pyf(%f, %f) = %f', x, y, xlog1pyf( x, y ) ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/include.gypi b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/include.gypi new file mode 100644 index 000000000000..bee8d41a2caf --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A GYP include file for building a Node.js native add-on. +# +# Main documentation: +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Source directory: + 'src_dir': './src', + + # Include directories: + 'include_dirs': [ + '=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "natural", + "logarithm", + "log1pf", + "log", + "ln", + "special" + ] +} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/src/Makefile b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/src/Makefile new file mode 100644 index 000000000000..2caf905cedbe --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/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/xlog1pyf/src/addon.c b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/src/addon.c new file mode 100644 index 000000000000..7e99aff75619 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/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/xlog1pyf.h" +#include "stdlib/math/base/napi/binary.h" + +STDLIB_MATH_BASE_NAPI_MODULE_FF_F( stdlib_base_xlog1pyf ) diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/src/main.c b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/src/main.c new file mode 100644 index 000000000000..51e802c022c8 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/src/main.c @@ -0,0 +1,42 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/log1pf.h" +#include "stdlib/math/base/assert/is_nanf.h" + +/** +* Computes `x * ln(y+1)` so that the result is `0` if `x = 0` for single-precision floating point numbers. +* +* @param x input value +* @param y input value +* @return output value +* +* @example +* float out = stdlib_base_xlog1pyf( 3.0, 2.0 ); +* // returns ~3.296 +* +* @example +* float out = stdlib_base_xlog1pyf( 0.0, -2.0 ); +* // returns 0.0 +*/ +float stdlib_base_xlog1pyf( const float x, const float y ) { + if ( x == 0.0f && !stdlib_base_is_nanf( y ) ) { + return 0.0f; + } + return x * stdlib_base_log1pf( y ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/large_large.json b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/large_large.json new file mode 100644 index 000000000000..dff3502d1cdf --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/large_large.json @@ -0,0 +1 @@ +{"y": [99.20850058150327, 52.20786475248301, 18.297467420227242, 16.451613097273253, 3.057205478182834, 1.4377290416365596, 65.64964687761055, 76.81821395071374, 97.23555694672375, 48.71608478677929, 23.2269777500165, 15.678024778725296, 3.6562391546887674, 0.5031885388569912, 60.61461337372691, 12.644182407120185, 73.79545997539203, 16.234038799577178, 39.444681794712764, 29.417154086932772, 15.984950440762447, 13.491501929353845, 99.89230814887463, 39.75636872197239, 77.59475210550123, 13.780322961862135, 40.859344990565525, 74.1152222495179, 11.333521868189433, 72.97508927148452, 11.862439276094305, 38.90397184659411, 52.600932588942484, 25.727980642757576, 54.418931591322895, 3.605574770695441, 59.00584457382936, 4.831414845045979, 47.5371211958316, 46.49799253404049, 26.721452095162423, 29.320673125033615, 26.62985898907193, 12.02923783840636, 22.2720307952186, 32.946173604976245, 99.30606323122619, 36.18058649282835, 57.52238623223823, 86.1422689452936, 47.99382968307469, 79.92276647692151, 93.24957723341718, 26.86516854987213, 83.56528478083094, 96.98585997061741, 72.62352376375028, 96.91883239485789, 84.13444676497481, 7.8189614043643445, 32.20285577599217, 45.6549926526988, 43.41994697227454, 39.12882772820726, 21.39076367126923, 48.2756374343689, 39.10068528015438, 67.2394367823697, 47.22161583823059, 56.72546213706888, 90.57020818342478, 30.734911271493903, 29.778304609900264, 67.8219277349191, 21.535714211825407, 22.315620377016575, 98.20234697531671, 28.104692944267274, 80.70795359332024, 23.55607692230319, 46.72052332858898, 49.8489871387778, 43.427073316284506, 15.742688224432477, 5.099826825940379, 36.2271968214047, 78.27729103075204, 47.50352399316249, 22.053719373327873, 75.42940645174299, 44.495589548498884, 82.08421234708509, 28.884202354463852, 64.18791169325632, 34.03851507174115, 11.59810246015034, 44.968433100720084, 51.62661296144585, 20.511027111586124, 77.53532716334249, 29.19912973464529, 35.44915981027316, 82.91424925554118, 26.76676333984538, 46.9321269027967, 95.1319279085438, 28.60849910850989, 18.09598714306321, 19.738916473758085, 65.70500580490408, 91.77827595123992, 83.05960145822256, 93.19947269704997, 61.198056048113, 73.60400836282616, 76.63316039823405, 12.687485170750046, 63.184755452539086, 83.20945349571537, 74.15509399207572, 89.20530530352333, 85.08596469634129, 83.89908914407317, 87.36829473524269, 12.125601286928788, 43.397092750814934, 77.053967118428, 29.887903951146143, 9.004504540006552, 55.70321947469636, 58.55080899377331, 41.1266289369422, 69.5907694834015, 97.52481115715894, 5.890600929606071, 44.99105941886494, 45.90725788920448, 95.47345059249763, 52.28602731647145, 76.60335287281349, 36.27867549961431, 77.9831826537411, 40.30997462978768, 65.87257198663897, 50.89430544681765, 87.80124711884918, 95.48780982091031, 41.15312126147689, 24.10961591248737, 25.832766020775566, 4.712895003144569, 19.75521311553805, 83.76415344295393, 57.67305879170509, 43.48675862586473, 18.035595924624225, 71.06352685518817, 78.12181259767232, 18.168546732877033, 79.85055133443015, 14.303464272455102, 30.566361043744696, 45.13537179629835, 91.2131820970591, 67.89614185126133, 7.481994396154457, 16.665347762232663, 78.36178404370463, 55.38722750923473, 82.68071167447802, 37.220060362928805, 8.73101903298844, 15.046639599026989, 5.9345080566799435, 62.14974017101099, 29.69772893617123, 21.299514397299802, 15.742643524221734, 39.31462326780175, 45.69838779660702, 68.92512007653045, 57.49444072828731, 53.31581463103683, 52.1849078231605, 5.5065129594035644, 87.9846191300363, 56.42688859292151, 50.297717857818526, 82.67700756299462, 27.80809169488936, 8.48282119814111, 94.79025653087885, 28.10608937443907, 86.38807605248327, 32.57255965419319, 92.97505235410976, 61.66404885319918, 85.64782192614513, 99.59405990357276, 61.18841734592655, 93.95896445721529, 92.78917321944495, 1.0669283948556152, 77.6412972126113, 77.10128325430854, 19.040231827238173, 85.31857704973868, 23.641145483352112, 2.630080216228403, 3.7894843001373135, 44.75533341696316, 89.87276239451917, 60.518713258396275, 29.58799405017252, 45.32803273850258, 84.78438199552498, 5.707974305011909, 93.34446285754969, 63.32206135029267, 60.59977355513415, 0.6194358016880841, 0.46635494611276807, 54.2265758949672, 57.71665220674049, 39.920014514317536, 10.384257606160773, 14.216933887820494, 10.469080691356748, 64.30605517066864, 5.589610158763714, 14.207400193178355, 26.752476026347072, 93.93876539516361, 41.02830450171774, 98.44287471074267, 27.502807533900032, 55.96755151076596, 87.962400855332, 48.492840900800225, 51.3924567926704, 81.90901705852698, 38.78098524180429, 84.99495788943507, 1.5788875635971977, 93.86079923315631, 34.61161484943358, 58.35695350427509, 36.57031308779748, 68.40290870851588, 68.65077638390378, 99.37149615510789, 98.1195286393079, 29.303636220434537, 12.353578897588303, 31.76115788934557, 43.23684191405089, 80.24037565630888, 80.14894480404755, 25.610833973294454, 60.54382438536262, 49.75648840128343, 68.46190509257588, 14.953402610618749, 20.433938770662863, 28.288267632785924, 68.71888546850516, 34.50669933517017, 2.7824045150556365, 96.40006628568698, 73.0550335353258, 19.411989112976258, 80.94728643208889, 54.599486237942315, 7.771473680821339, 65.34104138018418, 68.77971885999472, 63.66536143611636, 47.68220619220885, 53.724245517768374, 81.42253461934222, 65.98161878854715, 62.33581643279958, 54.188549034942625, 70.81581936758317, 21.29706624401353, 49.43658530864099, 97.65216701210014, 60.26840090954263, 39.84878166310776, 29.60891316974572, 23.617107652496717, 30.359529449648313, 85.7848720058307, 72.78769165619822, 94.60795008727717, 64.56691053408136, 61.661775047113984, 31.497021896177245, 69.59947556200716, 9.09271965040286, 4.938842944625199, 14.216833643037319, 87.46801667286627, 20.592808861787226, 99.31156421488221, 10.976355662007087, 38.37413149879786, 18.15882561741471, 18.157351721392523, 17.943754573772843, 55.874702732195146, 35.15406238369493, 7.743861996440038, 61.11451586601162, 82.05598876565404, 27.413138249343703, 4.265423276296342, 14.095415519743016, 29.06562297249441, 95.2942081001778, 26.3494502798447, 65.67255866306601, 94.95832544870345, 31.792329442052093, 43.622681544589845, 96.04319367405714, 96.74523162246165, 15.316771263956507, 26.62750870651451, 81.98239413022898, 65.8332048080841, 73.5199252549614, 20.955454723986257, 28.812088893711106, 95.61369156662937, 2.7137813504611974, 22.782367001281255, 61.45671343157232, 19.347848027245774, 59.72025064280642, 4.885808865102259, 31.597878116966914, 34.91640968981377, 77.26378748373283, 54.736665904577144, 16.926243051819355, 44.10655155559863, 45.92151773849093, 56.64024019622131, 29.350802167872892, 83.90961264260827, 60.13627324920871, 83.77580040802751, 82.46163150126351, 15.058944716579736, 14.803734285481285, 59.338114643277805, 95.51247251395951, 49.53867932884708, 35.6405911478972, 90.2148399385062, 5.824605442535901, 46.69696263268768, 69.07523595940049, 39.85360370457393, 69.93325914923666, 95.03226200228896, 88.75781479308398, 42.36325877037217, 98.94149794648135, 30.46276594102164, 76.0048969595416, 14.93003096244674, 44.410540135561135, 79.19488037431873, 26.71948822327035, 37.60475177547552, 46.796650301214186, 83.51404436215962, 43.559362783582934, 23.659533743192775, 37.61171825115398, 45.43817358189941, 60.177820907215896, 9.02629812587039, 21.809945465936174, 51.12551555860141, 32.29374995140116, 94.64043726608095, 13.924124367735779, 70.5525932024211, 41.49242769207021, 47.55650695979068, 71.73204816188718, 73.76358784702133, 91.49316844574757, 81.38323460584402, 80.42604577211507, 60.38506398937089, 97.23745567987635, 68.56661711590233, 52.27830079706502, 39.02218175699489, 85.3390612752506, 92.80089849705611, 52.22350119483428, 71.58595330184943, 18.579132697556688, 80.82624113108167, 6.558832923107428, 14.380783377738249, 43.05215796458429, 65.3964567595369, 73.37808088348932, 25.167302989223085, 73.92954637466178, 35.28206549960957, 11.053804705160719, 24.448828834070714, 5.329708365670982, 39.95038847018124, 89.39404055676113, 62.0587230497762, 47.755742319256726, 96.6962578439205, 49.40703427115053, 43.008800151466275, 31.697410975646335, 45.24127855936375, 69.85229849320028, 71.51032066823427, 11.953019277441202, 42.38714645247414, 51.69696311273342, 39.84056837055229, 99.96368885934776, 68.64217674906214, 55.053875531266364, 15.857395249779959, 70.52158893572272, 31.22846537861689, 87.73144810338103, 14.10353660336412, 64.62365696724368, 54.44996128599092, 14.18183722618036, 12.335903096285339, 61.06084487559274, 96.51156272309636, 78.39034290323856, 79.18420320056751, 52.773368223234215, 12.607767741877218, 57.58563127370825, 20.450573072792423, 11.38366523979899, 38.406593958085836, 80.31251109028871, 46.40328417279038, 95.55326110968021, 19.066020247921735, 35.66619990078277, 89.14726522129776, 82.20108690690448, 6.495332675329513, 94.5718137574676, 7.330189663405918, 91.16673462905544, 60.2859432890324, 36.82328007235823, 47.55924312932491, 13.469106748035841, 49.23610806192572, 47.449213261384045, 5.808574173300163, 41.51955956806606, 19.943006682156316, 15.127165905280437, 56.98718470651419, 57.15953437824871, 41.84372283647284, 84.17870854242969, 62.9978663878269, 10.107172957118294, 8.084014188943767, 68.56957150378342, 37.00744470220331, 72.39090540464717, 33.23970628734807, 96.58549806661307, 2.3679398109920813, 96.56142633845893, 30.280112387570625, 24.85399919656005, 38.28003559136284, 56.325936498389986, 49.888208952605005, 31.10323028738001, 55.894062813955024, 28.039637991853905], "x": [26.796513038538194, 48.149622480849885, 41.831825520791064, 38.375863797897345, 92.15753163991218, 16.709817883521396, 36.9055762456423, 80.84235493443279, 80.16775162660049, 17.95855204084117, 35.42032524736985, 78.24810128759253, 72.84341353635841, 54.73884131604345, 75.77594201244, 58.8193714830318, 34.79346799917102, 65.26241203676854, 72.69410529521264, 18.186249640693553, 41.824337532919046, 5.436195577588143, 89.09393457648785, 50.813535074249685, 39.31597671240169, 56.925061408640396, 74.79404035061906, 49.01629523804879, 51.204075187386685, 14.830385617870856, 41.84764010616924, 63.5150238677795, 95.95204118724959, 11.11770660773449, 91.2867532535399, 47.29682539601471, 78.47959172122, 87.5293801338435, 78.59232847139482, 70.02602303654808, 36.82778667090043, 54.666686791274756, 6.862223914547039, 9.021210557462167, 45.65930156649195, 64.96728398096481, 7.09506119954233, 73.16283883476423, 73.40134535862853, 86.20296572446091, 89.11893179892022, 11.16364493888341, 37.192186638656054, 40.153541362526546, 35.91408866631165, 78.53000997182419, 96.81289552968178, 46.33158728633311, 68.61240003978834, 16.673248192875747, 80.02371262156706, 35.68293940231666, 41.13788820541706, 58.92264308697687, 41.07315140839602, 36.64131501558193, 47.32115476015901, 60.982046566618266, 76.1852552997106, 40.919623214070164, 56.438444494817674, 86.76241554254703, 20.617195789371934, 56.00130961635914, 57.65343004107692, 19.616762969207247, 1.9227061995770067, 35.198361463333896, 75.1349202210192, 91.95668717222087, 92.75512602686189, 56.763863988497064, 2.2468650070500695, 80.63217332439643, 56.19272977446642, 45.10464811710697, 8.404819051215418, 64.95836617151144, 7.106336755808984, 23.421575032864585, 18.396304471753044, 49.29267369539399, 21.51733043771341, 6.481905057087268, 4.508427831719175, 4.289861106637439, 55.98333235644149, 16.244263299036852, 91.98041623268855, 12.270679096160396, 60.22919729766188, 90.95435087992477, 82.92916967913308, 16.2337032689878, 96.27157410091239, 66.78576959177215, 38.44202723542753, 15.274392429196016, 7.057254249419365, 43.27977646874353, 63.23007874062374, 17.003078787353253, 45.03657754879505, 42.45761264645098, 78.26041330027597, 29.02680540444811, 90.62970352322867, 53.60884350256113, 39.630389509928435, 88.60496785901121, 91.5056225628837, 46.21009239907319, 14.553296050373543, 21.87916232242616, 18.628010015007636, 61.744657092175146, 80.57563791518544, 42.82287639541287, 95.34261108741586, 93.45061665195007, 97.53299764466699, 11.759188080205174, 29.32407865717146, 24.854434953326898, 42.04964872374912, 53.89113574389926, 86.67319962135768, 25.44483110706749, 29.796179238091803, 56.49497015075965, 85.73279197011799, 67.89986723789879, 74.03612011547666, 61.93468247708231, 41.27416966505957, 69.85220737612939, 19.2494995978306, 5.884836654903736, 93.99606067861896, 58.907362331051225, 51.60374794623208, 54.66502499202215, 99.20626873522038, 81.03364775236597, 10.409229998445069, 45.65306209403334, 73.19556128372622, 94.20532837883312, 56.26185164448637, 72.09131421759682, 67.5966550248244, 4.975201616709047, 42.42971009344295, 53.66130161415856, 56.6827305294182, 80.70618206264562, 31.365060379204714, 12.100599348995523, 51.157205959794375, 82.97552860652408, 74.61864152042415, 50.64407137165882, 70.07059674625764, 66.39330928493895, 24.84490175827122, 21.497498777123024, 85.5103225543877, 40.622651881626695, 84.14012728127189, 84.9376990842788, 32.69946023075998, 17.18190990713645, 26.507707146725924, 53.980288714846324, 39.7070555218865, 79.12771562527212, 30.78512574696696, 51.393519138964294, 88.57849102828958, 91.87346787097252, 88.20246008417608, 17.786747441109373, 62.31131209948089, 32.27941201254188, 94.94597545437982, 21.61054931172527, 44.53067050547863, 35.415266957878245, 11.364069091948348, 42.66963342614538, 20.215984814685818, 48.56804719412702, 23.51186710670794, 38.77223569812386, 97.47651794105185, 52.16478968809132, 95.56185936393061, 73.33142555386422, 16.943640140827632, 85.54087819262924, 47.6871555481306, 33.779542474988666, 18.0943647908827, 33.35876107743139, 28.442480190155305, 27.603219865977678, 90.20049847089318, 7.026812117499393, 65.21677769308477, 47.47278585367985, 48.39761402276742, 18.519554688972782, 34.58919398920115, 4.168885053336801, 66.26623561898009, 73.75829775763185, 92.4539841913449, 88.18008106602633, 18.042919825671444, 37.506356577293886, 37.96451494407177, 21.492743999550957, 61.04528882739109, 83.44845606503237, 25.725466156429277, 64.01705217457888, 51.088044489235074, 36.05300239963909, 64.51595972785371, 85.74228995168671, 19.550015390740725, 56.716242096014945, 88.76199813859355, 98.00461395390964, 93.93402119052642, 7.824863234825519, 58.919805233648916, 72.96939071574077, 40.08985280620424, 38.05708168381015, 79.4431220349094, 62.325028136183136, 85.32906121372956, 28.935190499616247, 33.1286767860982, 48.155024999226335, 67.59522951943661, 78.9131882217832, 77.89800859196438, 8.098565470741804, 40.845118121957555, 79.1391419201463, 54.77379279131234, 39.20182466932835, 63.70519495550062, 0.36669782081794056, 82.98445457699526, 58.0316483539, 52.95815269697795, 6.494534342737168, 45.13546698031511, 0.7572379295727294, 99.85624653610789, 67.50417647888727, 10.752640689606707, 20.605079306236828, 99.36085059818664, 13.043941634671373, 15.106148037605148, 23.565550517659496, 7.99035901206625, 44.00527903527465, 15.616739051476113, 45.43460761818056, 93.32066448751023, 44.94992012112675, 85.49049854433265, 31.189104776204314, 4.0454770127765105, 24.951112393497944, 15.564996809272202, 30.721153171252034, 18.61880361839583, 24.0640287629434, 84.0462516535783, 79.4923289329031, 35.70833530372756, 88.84047179184088, 97.47711936979194, 98.99396690009978, 22.49084274146297, 13.123522304770152, 3.1412036832376034, 19.44877470269364, 25.512176607381743, 60.42865941645824, 31.144475565428852, 43.54616247628337, 35.047217702877255, 81.70609373855146, 53.788507304708624, 51.82714196197051, 0.6254684563540946, 26.734010721468906, 65.18229483223136, 97.59670654210272, 38.15337265179557, 32.113548671933444, 88.61326653507898, 76.89384028455409, 54.83367431909454, 18.047764820556655, 62.78820387619075, 65.78600851809225, 12.833114548734304, 10.723894690075076, 46.09852986578537, 35.048447892911774, 62.12201301665103, 83.6764515828148, 4.057558609101974, 30.782607400567674, 30.41099459980786, 85.29830958038339, 14.033860960622757, 46.597434781495096, 59.00838837367224, 44.61390422975132, 10.782243758348553, 43.07778399701311, 13.061516933360739, 35.14511935770555, 58.42821538424891, 39.09933636296049, 47.97484894832669, 53.8612364693016, 70.28159561090419, 46.76127131327059, 46.53265489652938, 38.61233953615273, 11.774764924836633, 86.90951252260119, 21.713143365978393, 37.218023659263174, 12.170564334513523, 49.889005860933246, 12.073471149031045, 37.692049929603456, 71.44528153376844, 12.593281693997515, 13.30948871493398, 57.89591273970572, 55.245221326282625, 35.93517644755846, 66.3926528948958, 34.101208715741585, 84.90226204189494, 79.73031154873779, 75.02882362349872, 35.81823218989313, 17.457815787668263, 34.367592690385905, 97.27300722836063, 96.49715628910883, 89.10859503942639, 86.84368978021047, 68.95997596395476, 88.37421780855229, 35.41018843854141, 37.98845807404065, 18.196461742040025, 87.40851392610112, 81.86073396381924, 13.730738673906428, 11.424086654750365, 96.13539556443308, 95.24936139957198, 88.84605431825817, 73.2782714758278, 88.23384689032662, 68.64792154957686, 10.57200430475367, 42.465086056092225, 41.0725528509033, 80.09078764614486, 59.639365098942676, 74.76450403597813, 22.82780570341174, 42.60180341816482, 8.08479049052302, 65.18738315032773, 72.33031792569543, 56.59275252438163, 51.12677746688576, 70.98489143685583, 36.25127083219834, 32.762813224729534, 43.102711692353225, 76.56189587192686, 19.014187266139427, 64.26362262864144, 45.78155384363565, 10.855429995261812, 40.681511138589734, 63.56576175726782, 45.76099094349612, 72.10976013959277, 85.00124297701622, 1.3628291051949848, 28.770105580457006, 56.28340010786887, 84.46101278354233, 21.877680705291237, 93.8461902072854, 1.2524742760903318, 8.81824132510074, 4.94112416789293, 16.70376954723727, 99.1568665450926, 79.14793931197998, 76.48514194172726, 86.9908251608046, 92.01510992359204, 41.73607180038233, 15.66420777545876, 95.59444833436015, 74.2801060548276, 13.477853170444753, 0.2978790031839762, 66.12852730624058, 25.194953219345727, 97.78704762715755, 67.57028282080458, 52.3641382364867, 92.3646113562255, 49.05520871341474, 16.711211357765833, 92.75424438869723, 31.981895926535298, 93.70790169097985, 27.770826528512018, 52.93664750728263, 9.462630713938491, 7.054704463612582, 82.79943076476358, 90.12290900468439, 66.21198213523776, 61.45631832977535, 20.3737279366914, 80.18510744509399, 39.38806056625827, 87.2527464017413, 46.95566233657213, 23.998787059968198, 58.60750644780386, 65.44602412048694, 31.013443312999, 3.17373439869425, 6.839963004678607, 25.74845907615385, 18.55769404628871, 29.58996804772035, 72.37380262337409, 7.678459600622201, 43.37538915294887, 94.60364115396335, 4.103623355033581, 25.3419325104012, 39.98388087917929, 60.25836604802198, 27.17383931426759, 82.48735629463654, 87.8976104576453, 12.286452372657397, 40.31811948808769, 80.27295520835551, 52.976121331187606, 7.990917600360181, 46.00150148860681, 26.382661497712533, 82.29913830125503, 64.05088914534667, 73.63878047120573, 22.243590414319037, 57.09318981013406, 42.660341331347496, 60.33898251011277, 95.4645713149745, 69.29184812185466, 89.28519060827898], "expected": [123.45831565429977, 191.35652911141207, 123.82111028981538, 109.73317625173742, 129.06610981392672, 14.889565374981403, 154.98311288117594, 352.01797100340303, 367.75899743207424, 70.15200398458788, 112.90111060514093, 220.1973536089024, 112.04832683560772, 22.310924664638794, 312.26500915671363, 153.71344188290783, 150.1253661317274, 185.7946750960765, 268.96347602173023, 62.1061648880938, 118.46022905043256, 14.534008115837262, 411.08419777050136, 188.39687825392176, 171.58691099765338, 153.31608382797904, 279.30451197320167, 211.70251784539738, 128.6410687945102, 63.82595184169311, 106.89190335542825, 234.14660248798162, 382.03942962874874, 36.529570682605346, 366.5091264719274, 72.23490316439064, 321.3301338996788, 154.33702456997312, 305.1212674092401, 270.34858814999063, 122.34951437020203, 186.5134289418433, 22.77501460609043, 23.159214725432246, 143.70133933586555, 228.99513251371457, 32.695646513721805, 264.5412237329763, 298.70012122790195, 385.11537492259816, 346.8236447275317, 49.047420448096, 169.07368475378192, 133.6059888625686, 159.36962454150807, 360.0462102208476, 416.1952098365793, 212.3904313287983, 304.9294055701399, 36.29606249274235, 280.2939278451226, 137.12168392116757, 156.0643385284608, 217.5479942781342, 127.68199206538709, 142.80695265786102, 174.6809994715763, 257.52856387388215, 295.2793748826981, 165.95764880399506, 254.9384351636667, 299.9738831529813, 70.65121365124078, 236.97079670025207, 179.59627770046689, 61.7756100135319, 8.83899124920475, 118.65013661964, 330.8304252779278, 294.3496181586057, 358.5320989915724, 223.0172862319693, 8.524266656716188, 227.218371301565, 101.61108698434592, 163.145298000577, 36.75386792458291, 252.1447621857641, 22.29845617863623, 101.56455731746583, 70.23001503845443, 217.86645550926778, 73.10147203137922, 27.076693778292157, 16.033988636173188, 10.868561323333363, 214.3016727546424, 64.37962073238336, 282.2479496392044, 53.543703991245785, 205.24984798903517, 327.0644245910165, 367.3592572922946, 53.95822808733772, 372.55038843831585, 304.92522392546636, 130.24395061922732, 45.0514877288411, 21.397679275782192, 181.78717949117174, 286.44569416385343, 75.34958722940075, 204.70991639792084, 175.36368571257213, 337.4741032321029, 126.32450213534712, 237.13098106056304, 223.10744763288662, 175.69369072682255, 382.7339343177072, 411.96638745853147, 205.88196818953102, 64.6379312431609, 98.05175581337203, 47.95901552128101, 234.20822722380245, 351.10032281067345, 146.89808137126585, 219.57741280758594, 377.337795950039, 398.60076914085175, 43.98736033873673, 124.82965260932144, 114.08952170206892, 81.16247844879578, 206.31935788897462, 333.53341598194885, 116.2642486523561, 118.45989942093114, 245.84411284051203, 310.2173743540402, 296.6704731722981, 275.4961017634293, 260.29839590439224, 163.00032488885768, 313.38499165184265, 87.95898449135481, 22.016990769192137, 302.97288500329955, 193.7830583773126, 89.93118813398361, 165.7879483784733, 440.46320765830757, 329.96744622281983, 39.50502210604026, 134.50810515864296, 313.0975302501854, 411.7704160759768, 166.15648050631728, 316.6684802281166, 184.40903030712005, 17.174853846956548, 162.57282604875712, 242.76926061754037, 239.91533544729094, 172.54542767113293, 90.06806317923242, 52.928226574332925, 206.2782687621198, 367.3333708475026, 271.8626124346489, 115.23139867321392, 194.48090321233926, 128.5713149945726, 102.99475724210484, 73.61149187142958, 265.4723461886825, 114.47296622308741, 311.0420086431182, 326.4758528989656, 138.88850344184695, 69.91201822164706, 105.89339752480909, 214.50550389694092, 74.36351926639006, 355.1618662736716, 124.69554083973998, 202.36949868196837, 392.13381214424595, 308.75514945855986, 198.4098345607737, 81.14600502037172, 210.0481560818504, 144.30055496127366, 333.6125338178797, 98.1773597183822, 184.25846958176732, 158.0176754351201, 52.40078181919615, 176.2327872376574, 92.05237184507241, 220.5499027964331, 17.07111176852713, 169.23681416870468, 424.8032975780715, 156.3765728510238, 426.01905367683463, 234.98451261070014, 21.844668468910186, 133.99317713070425, 182.3227005837037, 152.32750617066134, 74.5368661554003, 114.10723102311682, 109.09816479118157, 122.88503446682893, 171.6783393517588, 31.950581506781358, 271.55631494201174, 195.61912404274588, 23.331416165523333, 7.08890945696529, 138.7526245437172, 16.97871558295557, 245.95503878232282, 179.39725440496522, 251.69754748937956, 215.12895618206687, 75.40289127798131, 70.71801742504198, 103.33113964694645, 71.42737479316894, 277.9533691911495, 311.9589772945671, 118.32642595285587, 214.45729074163523, 206.52249178215942, 161.81358355658213, 251.73018010322008, 339.4333729820867, 86.36695980109174, 208.90798454823775, 395.3715622218569, 92.84546771361653, 427.62622867817794, 27.955668565829907, 240.60310635140937, 264.6026402682231, 169.97812065332357, 161.49499196371556, 366.14367837989244, 286.46617730467506, 291.0802714640193, 74.99377624883059, 115.59402355068367, 182.4862587505368, 297.2440978153458, 346.9249675463142, 255.60817087108387, 33.36406115142693, 160.40039061416013, 335.61156951601316, 151.70544769349314, 120.1526356808912, 215.14435711171285, 1.5564383522897527, 296.23138273549495, 77.20297920606903, 242.48621367716976, 27.957726728029808, 136.1340943405269, 3.3364480132905334, 401.23976966350773, 146.58564519139279, 45.10527104624879, 87.47563757937131, 414.2578105180252, 50.679803666343325, 60.459439866530865, 103.96788326434003, 33.59481113701694, 182.55374335963842, 62.63492183576024, 194.19227347288566, 289.7098138532241, 176.23590745947047, 392.53819012008296, 128.35140716764334, 15.008222108406942, 85.36502242484684, 49.86155881602667, 105.85029208699761, 83.10376984552863, 103.50400651027033, 383.2724214063694, 332.5220682905194, 147.75222201326838, 309.26687077966915, 414.96231146415784, 228.8556719793142, 40.067758501247305, 35.72750719595169, 14.080888712493351, 59.75364398411998, 117.56727833509065, 150.04039386161287, 114.39705473700023, 128.58151813261543, 103.48344811086231, 240.33637515199786, 217.3513247354628, 185.9448663162336, 1.3562357583147862, 110.38418787541924, 288.07412608369447, 326.6416985794968, 63.37891514503152, 87.16873037562563, 301.5848339589799, 351.20555454262217, 181.42798241998426, 75.79688455127304, 286.55996190833713, 229.6059736304892, 48.74327832169815, 49.063493011320446, 211.2402629016275, 97.8620480672983, 206.17128031443988, 369.7351509297691, 17.050672929205607, 132.7058688620582, 93.94003719974673, 289.5804235645615, 64.14485550718041, 61.13819177356765, 186.9943032935478, 184.45501510647117, 32.48663259410024, 176.8893248779656, 23.15211577628289, 122.45428363905488, 209.24279104499433, 170.47643044647063, 192.88951056714765, 155.4578410755757, 267.70453065539044, 179.9596477097299, 188.65366379629288, 131.77707843447203, 52.29864646867896, 357.4679818112463, 96.40657648876216, 164.66694090995185, 33.78872393295274, 137.7059418073222, 49.500796917427785, 172.2403145652891, 280.26119012461237, 45.350380415177916, 60.06861874807617, 111.19109949198202, 213.51547255524008, 152.70902852527402, 246.31641262691699, 145.3304655548178, 387.5520138776405, 358.55638771297856, 282.82959217553076, 164.9280944625605, 60.20859911403366, 149.2883210666301, 269.2717288209593, 368.208468255495, 390.69304183368286, 288.5065231622138, 251.93667783255094, 341.73917288551047, 157.1120927647392, 144.23542458064622, 58.32263664504121, 319.3518840760768, 314.19146984180065, 56.48530295593677, 26.33493540430112, 300.63428652263474, 376.58307307106156, 311.43826590317053, 334.19257086446686, 238.49423423929852, 293.1563323063103, 39.637889428965934, 164.88038764246878, 176.06908497617343, 345.53816579124543, 269.99544442298827, 329.8147838063274, 100.43538705333471, 175.39871992025755, 37.08806736217398, 276.54344554680375, 287.5512861689258, 208.7952165075935, 227.93759771359316, 322.35477425196115, 144.080677756401, 140.38116582341064, 128.20747892057273, 337.22437254466723, 38.4603160790655, 175.6401214354617, 173.30031917247152, 45.54551639446032, 175.3031928808891, 207.51110647885642, 197.52952722276973, 258.9694801931029, 211.60042427027108, 4.411027703266403, 53.0881571015176, 208.94431620743663, 380.4274645382561, 90.66256161143507, 364.76352883996947, 5.73866586444855, 34.568658840212784, 18.69913899907369, 58.25098705181487, 380.15482096637044, 337.2175050251978, 327.641613397994, 222.8121153723993, 346.9119842731022, 165.46507016377768, 58.10913423708544, 441.1455258676425, 315.1980012307128, 54.266059358451514, 0.8414454648982516, 282.3687684343184, 87.49829530355417, 438.6349861389001, 183.44851553988687, 219.08821645257794, 370.8883434158055, 133.43506311778498, 43.28972255339846, 382.90021287601627, 146.47615468535014, 409.9136650382161, 121.75637145060423, 210.94080585884737, 24.703529695873744, 28.716100207764544, 253.84246761484698, 226.78333118347842, 243.2583968647742, 270.3033183133546, 78.61593107028266, 366.4535413443182, 118.12589057872222, 314.2717711731859, 211.36831328978582, 106.10488715289763, 118.0519583802021, 298.42588174012525, 65.74497125774813, 14.356702608090911, 28.150213208459853, 93.54221523011283, 72.05552791827381, 79.06486236498355, 283.46893722499055, 29.79638610379646, 83.20192219559436, 354.7602670619878, 12.482421139616516, 70.46337444834026, 162.34343410236133, 244.84117993707682, 102.10730835890818, 366.6358008582259, 365.55295484788616, 29.58075353000343, 88.96258324813545, 340.54414778337076, 192.71558345607679, 34.32738401441357, 162.54106010507724, 120.85181990223775, 99.9359444865052, 293.3839571988957, 253.53703311874042, 72.34650589848805, 209.57290756943885, 172.7211919963346, 237.10995099313675, 331.16246017822766, 280.02159241230015, 300.7716041251577]} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/large_small.json b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/large_small.json new file mode 100644 index 000000000000..e28615ff3c05 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/large_small.json @@ -0,0 +1 @@ +{"y": [1.994638168709622, 3.818697434123744, 2.8810754743184326, 0.3781876292373121, 0.25343262970998204, 2.076403101986309, 4.449139034147843, 3.3835845632071413, 0.07997010070915966, 3.3252788880460287, 4.907699578646759, 1.2243513648654654, 4.26732249263247, 1.4852255215919707, 4.860020249340462, 1.1316187470533046, 0.2753155057170703, 1.4323303458613927, 3.8137275219082967, 2.145242785542081, 0.5165848436860504, 2.9510610481913115, 0.9529933666997092, 0.17825564553275552, 0.07820503747785312, 4.078623058468219, 4.159158117081136, 0.224977193459433, 1.9062591826131614, 3.0939754363873764, 1.324184134180157, 4.750506904800547, 2.9075043421032376, 2.5981666941838943, 3.93785495560147, 0.5736690905255731, 0.6263785089054358, 1.6197745342704, 4.076800223752266, 4.012770054992174, 4.982339435790546, 4.212598546790742, 0.5316529324088054, 0.31027112953569524, 0.24176260183871812, 4.269761061674049, 0.8534224575845151, 0.9323050011131845, 0.3776432820804687, 4.327644479985733, 4.452095465197621, 2.2474377440382076, 2.7828252512332723, 3.1186234789382605, 4.061769514706874, 2.189330580754251, 3.4000003451127987, 2.742661092996377, 0.18916568511152976, 4.174519989580202, 0.9774473193331007, 3.6239977218142077, 4.910476212108648, 0.7654576175046246, 2.469804519466777, 3.2893486258877465, 0.5143250973895158, 2.628669049146076, 2.5486935936790527, 1.6775302566776917, 1.4618357457558517, 2.27629853962343, 0.4675248939896015, 2.0154651580719305, 1.4287427085752502, 1.6107875535059168, 0.02138374901705431, 1.545061164398075, 3.2274151035333847, 2.508201512900234, 2.2190537624260815, 1.1326364738951251, 0.6300694880080376, 4.285642872382233, 1.6645567603652407, 3.6653927622073743, 1.2470992449618257, 2.623839145431442, 0.5772172403150944, 4.909806475236484, 3.99814761332257, 2.9485369044806125, 1.0069965877271114, 4.002475075675346, 2.327969724565474, 4.053818915014304, 2.485408124633542, 2.585542694203063, 3.167388873657015, 0.881237690011491, 0.3191905040272236, 1.5918183036638078, 2.4455481125469634, 4.176185590194613, 0.5466036111812567, 3.2875255707550832, 2.8857002079730103, 1.6989631223825512, 2.453014862812922, 0.5051906224590563, 2.809536165237475, 3.4690133094032305, 2.6099578461043738, 4.191123264409919, 3.0261082759761777, 1.2916914932214985, 3.255057171539439, 4.489071576731018, 1.3833868144427575, 3.9737022630917096, 3.4434127560659347, 3.9241086696602085, 2.595406448144202, 1.5901369939317767, 4.896897145217846, 2.1384942656835944, 0.9691271550688602, 0.8921596314851526, 0.7146257552161567, 0.7832225329717546, 1.575795832647121, 0.3914430065591096, 0.22530668843095292, 2.7380249231772487, 4.124582667764666, 0.6687514869441868, 4.435112387978062, 2.6100328661306813, 0.14443782006606176, 0.37384085193881145, 3.7990791027124042, 2.7249294135360893, 2.0876975675527727, 3.371179789664, 3.2216759895125815, 2.299633587730943, 3.5603931399657323, 2.4666694271874356, 4.589631431449832, 3.8896627135811657, 2.0332010550098003, 2.5145949938547494, 0.14926904381828088, 1.1506109060098413, 2.622413663064249, 1.4367030678547814, 4.223976893415357, 1.9425430255933307, 2.8735925671796707, 1.3096054646150983, 3.8487091216222136, 3.9790502338178397, 3.0832080502697052, 2.104826612194563, 0.3974058981888601, 0.5396447158193701, 1.8342651772763658, 1.2584945336720843, 3.8279325414175958, 0.3896343986098766, 3.6804054824208077, 4.094049220729859, 2.246349386882214, 0.09323729760189081, 0.9465102353294147, 2.0224823871103474, 0.8268497149277687, 2.602756720014371, 4.353489297963699, 0.22708306032367676, 0.08246797305292097, 2.604750699308376, 0.7887669426825422, 2.0361533562993546, 0.11449510479374037, 2.071063925954265, 1.3054969235476892, 4.583686092281907, 0.21134977956757728, 3.0763810947206305, 4.9070836259829615, 0.9060187070731923, 3.4949935776396006, 2.8309342475947084, 1.009068166704744, 3.1607113715070385, 0.07669445694791166, 4.877502158342381, 2.092348788079763, 4.915914085942548, 0.875929252628983, 0.9007571906850437, 1.4182026422618377, 2.376410932854662, 0.8273059304215158, 4.978806670049885, 1.1168244316415525, 1.7685945818250515, 4.140031389461351, 2.5401210835638555, 3.80447224184929, 0.9439998853066095, 3.267013414737102, 4.779840617179218, 2.638055621128497, 2.3627955230786313, 3.699502717259348, 1.648394228301031, 4.264566671660403, 0.5594505572449654, 1.2573431277202252, 2.7286918291776634, 3.7924158932286893, 0.8727586559667799, 4.152250105519961, 2.158008389704682, 4.829346293769433, 0.5184255740477522, 1.592850174700955, 4.6436778551699325, 2.6976190909711684, 4.126400592027882, 0.7451875013889209, 3.443231310627857, 4.350298175778785, 1.5576172920190257, 4.807566470562941, 1.7875851986147517, 2.5376542546028045, 4.585115645636028, 1.8944458484251196, 3.8931090367762833, 3.2336861622090165, 4.254946749344911, 0.09743391371689725, 0.7945060635719731, 0.7020505170529628, 0.8944800936819969, 1.5257456027946752, 2.853623678791395, 3.8334867482620534, 4.749896098430584, 3.1198677347224315, 0.35175236765308315, 2.6909496342748813, 4.407833686786548, 2.5223489572403897, 1.7652892310075663, 4.2694090644311276, 0.20785279097116138, 4.657994313508446, 1.691872947875398, 3.651905193831284, 3.9182440627036277, 1.451751127043256, 3.0017118342853895, 2.9979656352009263, 4.308225412128972, 4.673996604399506, 3.9586802226819104, 3.573066515034911, 3.4452851553861, 2.8417844896844664, 4.922076250169905, 1.1633357511456777, 3.226001333156692, 1.2454873323109839, 2.5379860847515348, 3.261827413083326, 0.3009144904789335, 4.933386181599743, 0.43187200981550156, 0.8665532006450422, 4.3898139278637895, 4.619194532107251, 1.0658676296789915, 3.7331340591147475, 1.5493229783211648, 1.128777720750553, 2.1993754309849622, 2.9322249314887285, 1.2581290633183846, 1.2600972123193788, 4.316021887738924, 1.7190374146544314, 2.8172393312947115, 1.5987029069482976, 4.436392751896195, 4.3583036571642015, 0.005231747284177857, 0.22800716811243738, 1.294553175024351, 4.526067257857292, 4.599413191886697, 2.2275921446546647, 2.6646731193863142, 3.817272513603773, 0.5227433720222546, 3.3672733214868855, 4.683728869630899, 4.0963724074141945, 1.4430727272871968, 3.8075470124532655, 0.9698476079229534, 2.76035013924198, 2.3528048232320975, 3.1615821013411605, 4.62294507290371, 1.8057436733367465, 1.3098102322239962, 2.539702861048326, 4.506890530787882, 3.4436844872204957, 4.334677640712566, 2.185848531548457, 3.114278626723754, 1.845106680528101, 1.4629805190104856, 2.1288035738677484, 4.008626693534128, 2.115809429348215, 3.0480511360944114, 3.4021216107685803, 3.5066695670707118, 2.1816506312105375, 2.933603499093213, 1.3530619709923342, 0.8818514265258132, 4.3824405082578775, 4.069236599050409, 3.6553784568076733, 2.1537096157738094, 3.783593842384472, 2.5631142680665047, 0.33027439015291093, 4.863297958120448, 3.371720251087591, 0.5099516466052129, 0.031501622275860175, 1.1004020835511978, 4.527801721754982, 2.6361733460870784, 1.29641661324986, 3.5598220381588557, 2.828352968753216, 4.260238803238732, 1.070920321786934, 2.4045861326645928, 4.06660506802446, 2.314688969547732, 4.729175424909241, 3.825032418962854, 0.34120752490397144, 2.789300118102234, 3.4102274877876075, 1.46418514197318, 2.7015272714132506, 1.1017323839391397, 3.8490786935421575, 0.27133062526461804, 4.837680008827366, 2.9161340723964155, 2.1044820774167365, 0.17950539169697466, 1.4336159660986103, 0.6465849767982484, 1.4066730722232585, 0.6799623556339829, 4.557742199021967, 1.8861512390907014, 0.5189400191061583, 4.853278280258142, 0.10605447954993463, 0.1885958081124034, 3.6843715011417415, 4.379165729746467, 2.2922008465219252, 4.501737501397391, 1.3570686525319937, 4.479089838542103, 1.7358273102928141, 3.3099523446204895, 4.816061739250327, 4.416366017820898, 1.5077589375042477, 4.267443476834308, 0.2408760334872695, 2.3797303556063305, 4.311436127257443, 0.8963423733683334, 2.3511152259166175, 2.6799012041298607, 3.2513228178239393, 2.4478164985764232, 0.06867226816839767, 0.034011014467105194, 4.69981682102675, 0.3551548631147555, 3.304897615076106, 3.827377615164529, 0.7459306256765902, 4.433710613426067, 0.5949287102289519, 1.2898908163416616, 0.47057726766868646, 2.76755057910891, 0.7077046525286007, 2.1858555324321745, 0.38451974353419016, 0.09077158312453926, 0.8739020781810769, 3.833016078417122, 2.7972394996762535, 3.4334127355381745, 0.3490883307996556, 2.5733792736158168, 0.5761230348495228, 3.169043185808442, 0.7608966767164654, 0.15693120447085318, 0.5488212855823738, 2.6824043226572702, 1.5969038749268867, 0.16426062730049762, 3.5084291387413176, 0.6985652697828038, 2.8241184771661114, 2.0304443547925803, 4.020465400170118, 2.310621202064429, 1.7985230642743026, 2.3412484120848736, 1.7214613209420508, 2.829796634079203, 3.1250334073664066, 3.49643294737323, 2.5748803982205217, 4.277503477290429, 3.1642884985497965, 3.5935447925963704, 3.849546593947891, 3.599506512292616, 0.3632898238168991, 4.285655144441423, 1.5953312875603372, 3.8955988552910474, 2.757201167897445, 0.3824334752271874, 3.6650349925914414, 1.9654168868668853, 1.7542601383036698, 3.037378746159442, 1.756917692638718, 2.947318210176566, 1.9262644083603249, 2.381423229936497, 1.6455529585281332, 4.372672346718362, 3.9893073368718968, 0.11004098392315642, 0.8677513732277126, 2.610042798178439, 4.822756474526221, 4.8222568980118, 0.5011035269532443, 4.809996022758362, 1.5559482970109095, 4.139310398547748, 0.6490206917663971, 3.89269623786325, 0.39161665480308694, 0.3521537325107399, 0.826307155680191, 3.0585005691510148, 2.550741558292702, 3.286652712824583, 1.1466805971849425, 2.92839025188351, 4.27738592778846, 4.896382905545796, 0.3616531905091136, 1.4992377629533888, 1.7763505844496068, 0.7297786397478068, 4.175140515608218, 2.5326208192697863, 1.5137844320956244, 4.161982048181322, 3.4978484665937186, 0.9213470284574243], "x": [56.39169474804321, 17.57476996210793, 95.93780087377061, 64.75655998713123, 25.061732361742727, 87.43805635947231, 13.418031481005032, 10.264576226854071, 73.25506343146486, 61.39017288814418, 47.46297116071165, 35.01473745817426, 84.61044617496624, 19.670353076055967, 48.207114296767465, 64.88228893618476, 54.642323011936725, 0.012643540680612464, 36.89156981683473, 38.25354084939433, 34.74936125270553, 82.57501413960374, 1.2666446047567503, 65.77308413678912, 50.309018267793846, 89.02426781335606, 44.235161361995736, 28.11270175595213, 42.13042993731486, 62.40877211618916, 41.21111467756361, 38.70473749801169, 17.89380848932538, 83.76517583277786, 46.150784676274306, 28.730124524528165, 26.766536479318447, 55.71587649753697, 59.69365103658579, 4.068100759553217, 70.685062767004, 18.99628705220522, 12.259068055706024, 28.94634374521906, 97.79925723233295, 73.63603144296704, 80.5261201426433, 79.8791552781137, 72.24085394916287, 25.338060201961387, 72.34938769976135, 99.27291310484058, 3.430403328599063, 73.68703966028409, 3.9637794757404143, 10.691061645050992, 63.922901168268034, 18.037449763063996, 82.8957848514656, 80.23608471783255, 13.702644193825563, 76.93687429678185, 53.15547240210326, 64.49173395586836, 95.80310619221878, 73.26043289921235, 28.781417798491017, 85.36456686578714, 94.63896260716021, 8.613897698001749, 64.40511778964844, 67.14871655204438, 85.4386111637994, 39.413924929506486, 33.38511286270206, 33.24499063866365, 69.77277796564152, 64.41840591037274, 34.94087872233618, 35.30206484460257, 53.71802247119951, 43.6283206069735, 79.84000665540081, 81.106672878091, 16.806217430163628, 49.75994409689384, 13.584567969896888, 32.78621856542097, 83.83347810728064, 32.507156022392145, 10.6863653042928, 32.366367582840574, 71.25244115921164, 37.71185245815789, 13.362508387917115, 83.18933961285441, 45.92172226421065, 87.83213051326058, 13.448535734248889, 86.66074989149475, 69.26489878031904, 60.69438092849977, 34.127120633121265, 2.2400230950979205, 16.218862663213773, 75.62144406383298, 94.10888143156319, 64.04713746209474, 87.15768979296219, 23.900455172787016, 8.436841095814662, 76.07194636977593, 56.76685160824353, 90.04764433933497, 58.042758335589454, 39.2617758793667, 97.85439750771758, 62.45903626509971, 90.61497497877326, 47.84035138989555, 26.95962778131439, 69.30145361628357, 70.48810448936577, 68.00453867104407, 15.146448644220733, 69.42348192955139, 92.2204509401621, 44.91928717594641, 72.4757768162177, 68.53168974089134, 87.54083272316474, 77.77818373799437, 17.539010585454573, 88.61690999554855, 98.96659081487317, 49.587491070981116, 79.87438823085874, 60.321901037530964, 13.76538197296302, 75.40343170359756, 68.36918837581322, 7.953475984171654, 45.738189466299296, 36.98494128742931, 58.55132019836154, 19.856369003536976, 91.27182507814632, 51.68024322349722, 23.339329220351246, 18.343148067783865, 16.11160820580675, 81.47122642772935, 63.079238710779926, 95.64593072306843, 53.96090470153847, 98.87108745549965, 71.2036958811447, 23.520031088552606, 23.199257339019276, 44.79448124860309, 34.271867274236115, 2.1724185807735608, 61.96247208499772, 56.321264901492995, 76.82806780260431, 10.678376020520918, 62.05658430823557, 65.47205281268285, 32.56225467160614, 65.1800378365489, 3.865693745793708, 56.27179322488075, 75.89354872753282, 48.19751667139236, 76.92927466564069, 42.417703167812704, 81.70560968798617, 4.058975200738669, 47.89553943463078, 32.094005512338555, 88.94210269769228, 54.717009310198925, 81.75723254475413, 72.4145857814842, 53.94581895688433, 18.255838083855323, 45.363435434445265, 54.609208329930745, 87.40139144683197, 4.010177578077556, 81.39966036647118, 17.192096327043515, 69.3547707626947, 33.06695459468445, 85.8400443910607, 42.171287196926045, 28.992048901182265, 65.09453718032918, 68.51496894345827, 9.112545926769943, 5.100491268535878, 18.18302057482104, 58.594687040547065, 58.93223467838057, 4.377173495763564, 35.19080365514662, 55.56785361032135, 12.50077524196984, 74.34323687261639, 59.399913126526286, 16.762979146015322, 47.20842183492181, 92.97690836209843, 0.7200875453931777, 21.330750960926213, 89.99960244296858, 12.533015293982096, 76.91452668653531, 7.679414080549174, 95.26745697769223, 68.54812444855366, 91.559912003171, 27.956235534385122, 66.42462224209793, 30.707149252167156, 25.78132895383771, 3.895688871958769, 16.914509557549586, 91.75265391436216, 61.84918954180871, 23.090831427452997, 65.07146397246817, 15.82084940746734, 46.6721973292845, 3.8359755474493995, 13.389699365260876, 13.302306755385551, 88.86188909492749, 98.47786221000227, 31.872370104398186, 10.353117722021176, 59.20664747684287, 76.61850247718452, 34.198356090813945, 41.18878441741738, 53.825922574186166, 54.59727053498199, 15.718273053998855, 64.04392742142561, 45.22576632729528, 78.41143139481674, 83.24778885443997, 14.562828047038135, 92.90154834450803, 15.978351824840953, 47.90177563046777, 20.869486932614777, 89.78027410642927, 50.23608168619528, 44.98428597817047, 53.19441972260176, 78.32427617482657, 13.141294410430227, 97.2796611619889, 99.20778033876412, 39.27766521879106, 67.87665758107264, 21.022833935783336, 23.238993122354433, 55.85547076124524, 51.50147030762204, 50.46007404346783, 72.87941536642731, 65.92498746299746, 91.8084598502493, 71.7041923809123, 20.53546468713939, 91.93776866785196, 13.874588359153373, 97.1562673539638, 7.830303092801028, 1.3423834381387945, 34.347392524785946, 14.938173555625001, 93.05204107870287, 74.57751029042925, 28.067540001795454, 25.35269225438296, 90.15363524916926, 45.54342902532562, 93.75757487742507, 93.41910528772685, 56.14488754228682, 31.57875897739021, 42.1243703733161, 23.575828403531496, 43.00201974667519, 15.15808738610126, 3.7274082435063915, 45.58560993440629, 16.023031922881547, 15.753702811232206, 67.35825071332229, 54.760362118191075, 2.652713236579418, 46.182747310649766, 93.33503196818093, 89.76143127753437, 81.14061503679093, 89.68645613239927, 37.46363913304257, 67.076490733479, 38.80125321453609, 90.6059740132517, 74.23395896523974, 95.2597772364439, 75.44006131499272, 23.859417929924852, 87.08496276346035, 93.3144281718018, 17.98665057225215, 8.424739724732511, 78.76562135662464, 56.80573355105872, 43.75474405076688, 61.07002707569151, 98.94040617826455, 10.25408132307456, 75.87104855966177, 98.2513442287689, 45.72169847936015, 15.40422874917513, 92.11782401517421, 56.121540635500025, 95.54229180369894, 94.54964341097121, 77.20557783031893, 30.392567964837536, 71.28264589517428, 96.59580166558268, 57.331134471160496, 3.227689964971847, 45.777508703256956, 15.325318527548893, 29.824696846780853, 50.60962110677889, 18.83528271376663, 20.23635304959456, 63.240005369622146, 94.22345440658171, 63.20207371896396, 30.763010208813203, 5.8758896355747385, 79.4666350327332, 56.16185265332153, 2.943152240841429, 2.6578840923925484, 8.897922616434784, 72.58151144655854, 18.784996762453854, 57.94403422831109, 57.87715111658795, 91.36441018822207, 20.177209428353727, 59.31973856865711, 28.78311278605441, 6.811577528199042, 11.647394716824255, 22.332201988714672, 58.05555669929886, 98.1434852550219, 9.176177546721732, 90.44821545591549, 31.88623699765827, 50.061332923199075, 69.81653154779048, 86.71560701703503, 27.16863635956901, 47.53617434726113, 10.161128446347012, 51.03771780552853, 1.6352967536659602, 94.33127266972167, 63.266693818791744, 50.20105091919665, 17.45245583193227, 83.02809637577869, 12.656259582182038, 39.29443468142148, 71.55325172634957, 86.14697664269423, 70.3165631873201, 80.40742692655122, 13.777437361134648, 43.65453301719114, 33.95040132460695, 91.79562118909456, 62.37442967924471, 11.044075246858942, 76.5279616390549, 8.19609010157205, 7.612862938477171, 83.93263728270443, 27.642287216052196, 38.52450275345928, 71.02421501522817, 82.04661866194817, 93.73849425086726, 21.85314441673628, 68.39318606801857, 22.375279087623657, 91.07336742989601, 71.30460263872222, 78.41271534503558, 30.779390944135987, 93.1462563832402, 93.90599774404618, 70.35122616941852, 84.57486065650006, 16.91347083121597, 10.758660679768484, 8.285024591623225, 89.594870226215, 77.50169233819267, 94.78515099347231, 17.675322674901718, 7.281244105191753, 18.57466976572677, 92.51652230697164, 36.77441642275282, 30.503083323532586, 91.64533681615266, 47.834758781767796, 16.0496510414313, 69.44009909556176, 25.295431967077285, 95.8223248512589, 9.29478621452211, 58.96274891328396, 42.74643480748752, 87.77889403375771, 53.217536232105786, 38.42453127267936, 86.87045030412804, 71.11037918301261, 72.19633272879143, 4.8460346370517104, 34.51502332561371, 11.016846262158387, 66.33133395067262, 88.8815858248311, 21.22032585546624, 25.362796585998804, 55.5535761439075, 98.02024148934406, 2.7769133952630365, 19.341733135871607, 34.789941640140384, 64.735861640421, 1.8672680206999859, 75.74268642783085, 86.08660384158998, 5.100811473659784, 36.70142304555235, 57.444148147759385, 31.346075951777607, 38.59461481286365, 45.09719164327883, 3.2858635765561583, 47.473350759031575, 92.9620881430421, 5.962016928128566, 16.765810386174905, 23.731955630958357, 43.30447750867384, 81.98423795185887, 90.97574798478729, 47.04589524579538, 13.223889510124975, 73.26142049332408, 32.329710606792304, 51.2913657546322, 56.86966928873761, 14.231704910917575, 65.93595854970633, 16.988323451433164, 99.13679352742655, 0.6143532859328671, 55.324477446929606, 91.33944912751508, 24.479702002628134, 72.82940051785602, 5.119741506450104, 79.69430254182348, 56.98033712945085, 22.979178363652565, 53.643207138710935, 83.88479745612607, 7.867487345277557, 54.875057870018416], "expected": [61.851731069416665, 27.63638990730661, 130.10243173554045, 20.77191796335089, 5.661091755260343, 98.25948556722655, 22.74970373073861, 15.16967624840251, 5.635757890210155, 89.90447295936805, 84.30641167199146, 27.993069396990506, 140.58213192430267, 17.90716967441818, 85.23755661429956, 49.10821495876116, 13.288663434845974, 0.011238208452035667, 57.97405928509999, 43.83439140924719, 14.471753515012432, 113.45676165729743, 0.847845356102249, 10.789093004173719, 3.7881511584064698, 144.66801160125647, 72.57987657537738, 5.704692025917727, 44.94755486152969, 87.96619325089813, 34.756179353200615, 67.70573316890656, 24.38745180913535, 107.25498037876115, 73.69961952621571, 13.02652269104831, 13.018059441966631, 53.65930646391803, 96.98315175803141, 6.557732322603493, 126.44226739592973, 31.364360995052614, 5.226623020675764, 7.822288713454282, 21.17665149613033, 122.38198135132727, 49.68734653223159, 52.61748525136277, 23.144111040662903, 42.388274130521665, 122.70456326109226, 116.93021874496507, 4.564052666411271, 104.30540472835993, 6.4281251061413105, 12.399611383858792, 94.70846565373087, 23.805769931380727, 14.361856893390836, 131.88778978435658, 9.342555718991177, 117.81033033706774, 94.44273141453509, 36.65774199333017, 119.18847751747691, 106.67707210466116, 11.943420898167481, 110.02348168455732, 119.8677731550914, 8.483783253974787, 58.02304140259582, 79.68634156469032, 32.7723063275085, 43.50328122082048, 29.625071779386527, 31.903619111972777, 1.4762750848978328, 60.176755544581866, 50.37044650195998, 44.3077457323252, 62.80106611239529, 33.0423010690797, 39.011635196028145, 135.04214421120585, 16.470727095659274, 76.63887382152599, 10.99861178454367, 42.213371176284376, 38.19973482201919, 57.752638764210445, 17.19508167715377, 44.45019253078877, 49.63725569353538, 60.713548413087096, 16.066577999156575, 134.77872426966442, 57.33718031111863, 112.15371187258926, 19.19495613412665, 54.76351953092854, 19.187644091157594, 57.80288102514772, 42.21808062392778, 3.6827512138462746, 7.072418468915524, 110.08287543667751, 127.73428603706556, 63.590332174513556, 108.00996859323992, 9.773363365003547, 11.284337738449956, 113.8924570334555, 72.87138575181865, 148.30397706157248, 80.84196663945377, 32.55940550930648, 141.7037552661867, 106.35269422103757, 78.70114527767366, 76.74379264686355, 40.20820139434613, 110.4764464009788, 90.20059943305488, 64.72065170724002, 26.87625690138811, 79.40263202309005, 62.487690034173966, 28.645875661677934, 39.07856475905239, 39.64024658742071, 82.82750714401996, 25.693349661929656, 3.5637720914139313, 116.84648035973035, 161.71626776325763, 25.39255089823697, 135.21777023688506, 77.43624238411991, 1.8571362681383936, 23.948910998756144, 107.23187904770288, 10.459201908705527, 51.566409790841995, 54.55400695743982, 84.32749688464327, 23.704760240701724, 138.49667373412026, 64.24858451037252, 40.16496326900944, 29.112838177624507, 17.87773878230816, 102.40316395387535, 8.775970126474876, 73.24105739729899, 69.4552691715161, 88.05913103479817, 117.71814882756324, 25.38456231764403, 31.416025711516898, 37.49641723197407, 54.10542557372568, 3.487251370702678, 87.17394652531384, 63.80962045046288, 25.708022735583754, 4.608271173218072, 64.64947637877967, 53.33998032284708, 51.266610646236515, 21.446884621570206, 5.966252766611903, 91.61458940570813, 89.36701387287854, 4.296485317290279, 51.23783150061866, 46.917308485075495, 49.235229780162065, 5.202385705896407, 80.35667200753578, 6.567712707042198, 7.048091907926537, 70.16102822926082, 47.543999224491046, 80.42301409423982, 5.847806698083994, 20.483489515309593, 37.89190697324741, 93.91960043635264, 16.757928354522992, 5.635140063393498, 144.57818952849817, 11.089187863887105, 104.23774027034827, 44.4125144754285, 59.88811097706207, 60.12301639096763, 2.142386577870203, 115.29100927531047, 77.34866745428351, 16.19888102085145, 3.208740163147711, 11.678087297832922, 51.740547414999035, 71.70952643343254, 2.6387471453659574, 62.92893391106969, 41.67128119284381, 12.73003721302627, 121.70427886512648, 75.09104947681195, 26.31028700218216, 31.381687335216576, 134.90151178305882, 1.2633043848896603, 27.54758486685118, 109.14905446105591, 19.394298466316393, 74.91117283259656, 12.75549786907842, 42.33052758013166, 55.811095617388936, 120.49810487184469, 43.808389657424755, 41.67564234754803, 50.342330185298614, 29.647021957830773, 6.867728869098932, 7.064750721036837, 87.41804973356327, 107.03224628750459, 30.19562911245991, 106.353046292268, 8.810029851199843, 69.60606960250178, 6.433515185853952, 12.57394638928213, 23.400907651037823, 91.09904943126946, 124.42322065689919, 54.82382760157715, 11.00322804105604, 94.00996650993248, 110.56609580541894, 56.74088206177623, 3.8295127682642605, 31.473621510858656, 29.036668983006106, 10.043103237058437, 59.339024022766395, 61.01018835911037, 123.54255008094077, 145.6155158897154, 20.61835863667097, 28.000693970467236, 20.8658704537036, 80.8509442209352, 26.277357104929955, 91.31957790077301, 83.4882596706819, 8.495022861504063, 92.18962468087979, 77.55961306597044, 20.20180773914629, 154.9617888774988, 88.96978691333676, 54.46721142846016, 94.0624974039555, 35.09252494365876, 40.34042263706368, 89.43240729624257, 78.29171060941445, 75.2785596525311, 98.09109945797276, 117.25992512032337, 70.84412287357975, 103.34411432019216, 16.611600915283304, 116.16867208689756, 20.11396352935971, 25.558653580954477, 13.942599127508355, 0.4818924121622697, 21.43598516739025, 25.163515621748044, 160.62534757372035, 54.10973480200615, 43.633448943841216, 23.725754855935094, 68.11539655039945, 52.96498641748286, 128.37337837675608, 76.09328248304504, 45.780980728910265, 52.75943024534324, 42.13607783117361, 31.580469850233467, 41.06746374306102, 25.6643963999688, 6.257004317424191, 0.23787069244950423, 3.2910132589936536, 13.084050866776108, 115.14733977751345, 94.33358425376575, 3.1082806399847196, 59.97934159720216, 146.7420745466029, 37.74589884560057, 119.61253378850238, 155.8398595836525, 61.010622548079255, 59.91651546978533, 60.92522250482406, 61.42688033285812, 98.32377503973476, 115.24501712649962, 107.5696299768938, 41.201768533847364, 89.84282405532382, 78.11960784340603, 22.73589590134089, 14.372607081525656, 117.47765390427834, 95.10577577078045, 50.69943876578715, 86.38132518389816, 103.4521445444024, 9.24274394012456, 86.54236364077504, 158.2988091275888, 51.962205892237904, 21.53874047832174, 136.5265934209274, 84.49425835734871, 110.58066081480983, 129.49102449659912, 66.06615990970252, 19.215886295515304, 119.97880786275, 156.79336191733577, 88.17661538997598, 3.7072582541769057, 71.65059561527659, 19.472885446041598, 8.511527949634251, 89.51385614981848, 27.784991264938935, 8.338948368061596, 1.9614283713921363, 69.92593865682036, 108.06228739142998, 39.712949684131644, 4.884920341803133, 120.57342176807556, 75.3936184945514, 4.886151967121258, 1.9349213021056297, 10.90105307774079, 117.77591241654049, 22.511259991693407, 101.1454614347007, 91.0880705991313, 26.82188152655411, 26.879701825792225, 88.02611854939188, 25.958372108402287, 8.914621509720288, 8.651241605094807, 35.257828744633, 13.93705429595513, 173.15783483298392, 12.526445493514144, 102.46398037290483, 5.264264388254412, 44.52345832467026, 34.81774389805836, 76.15757653850196, 14.094311134642105, 81.53366340676614, 10.77002251911138, 21.33441604588042, 2.8895724610971536, 9.50851305340244, 10.930752272693761, 77.52205698324852, 29.364337987578537, 98.93265060287655, 21.57973197686738, 33.69178509053706, 121.70771638868825, 86.70123596873657, 102.72735495770131, 141.5671938097265, 23.275948686734864, 40.135519315213365, 56.41012418919927, 19.811111463080934, 75.95932659102154, 18.442084404917708, 48.972306168238894, 9.911475974747548, 9.918691820126586, 121.46984624600816, 34.21399586198251, 2.5586821723389788, 2.375435292188876, 142.79672779434011, 28.488603652009157, 31.9002008753443, 107.67162422852263, 12.469468341806571, 154.15280853030603, 33.28705915867639, 64.9652591333018, 11.87022671629642, 123.55153025257727, 50.2538097504364, 81.51743370856242, 27.516712035906842, 1.4695323295791036, 6.756685598817495, 13.052813655731532, 119.54413770818725, 115.4131685706863, 28.381428076901262, 22.509730639849348, 3.3127334771583286, 26.518806337095132, 52.3479905153255, 5.360642948010355, 13.344921448046952, 119.46573481188207, 45.64966308320241, 2.4409309335328127, 104.57323297268451, 13.401113504698081, 128.52916516638035, 10.30521555055422, 95.13773020588587, 51.17328940187723, 90.3325401484695, 64.1986828409561, 38.46944902666206, 116.65065736809166, 100.76867789763267, 108.53162102290162, 6.173517242990878, 57.41412460568936, 15.716031714144608, 101.13220176532978, 140.33382172639278, 32.38113539662439, 7.85995011036089, 92.49651398843366, 93.48329347764344, 4.410673204891199, 25.602155262455227, 11.266560272793624, 99.69939854309023, 2.0297532495092634, 76.73861596826364, 120.14209037719978, 5.1728006421684585, 50.39239029451587, 61.67931353643978, 38.18882072743553, 37.54793277669819, 75.82305506136518, 5.281358964348895, 4.956072412923158, 58.07669180592539, 7.65355815147096, 29.537564982438436, 41.80830073342546, 17.590301380235818, 144.25781609475118, 85.37376239205511, 77.01031541327662, 6.6143461018951335, 116.32034634439252, 10.683874423268703, 15.474537273553176, 34.25237321574893, 19.93596561187583, 83.55117656979384, 24.726609685828887, 75.7328510254927, 0.8405764347457069, 92.02844451971251, 162.06715559886678, 7.556872815698657, 66.71069600976965, 5.22795915118923, 43.67195550992298, 93.66806688474468, 29.000643116686806, 49.44773755061037, 137.6818480715579, 11.829547394403777, 35.83486793138712]} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/runner.py new file mode 100644 index 000000000000..b8c822c3bc1c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/runner.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python +# +# @license Apache-2.0 +# +# Copyright (c) 2026 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Generate fixtures.""" + +import os +import json +import numpy as np +from scipy.special import xlog1py + +# Get the file path: +FILE = os.path.realpath(__file__) + +# Extract the directory in which this file resides: +DIR = os.path.dirname(FILE) + + +def gen(x, y, name): + """Generate fixture data and writes them to file. + + # Arguments + + * `x`: first parameter + * `y`: second parameter + * `name::str`: output filename + + # Examples + + ``` python + python> x = random(500) * 5.0 + python> y = random(500) * 5.0 + python> gen(x, y, './data.json') + ``` + """ + out = xlog1py(x, y) + + # Store data to be written to file as a dictionary: + data = { + "x": x.tolist(), + "y": y.tolist(), + "expected": out.tolist() + } + + # Based on the script directory, create an output filepath: + filepath = os.path.join(DIR, name) + + # Write the data to the output filepath as JSON: + with open(filepath, "w", encoding="utf-8") as outfile: + json.dump(data, outfile) + + +def main(): + """Generate fixture data.""" + x = np.random.random(500) * 5.0 + y = np.random.random(500) * 5.0 + gen(x, y, "small_small.json") + + x = np.random.random(500) * 5.0 + y = np.random.random(500) * 100.0 + gen(x, y, "small_large.json") + + x = np.random.random(500) * 100.0 + y = np.random.random(500) * 5.0 + gen(x, y, "large_small.json") + + x = np.random.random(500) * 100.0 + y = np.random.random(500) * 100.0 + gen(x, y, "large_large.json") + + +if __name__ == "__main__": + main() diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/small_large.json b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/small_large.json new file mode 100644 index 000000000000..fa75f0d22877 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/small_large.json @@ -0,0 +1 @@ +{"y": [58.338856431705665, 64.90208571084945, 26.472553350574803, 54.724845363935124, 4.574658473131398, 54.42216514739341, 54.50473240867447, 95.97773544058495, 39.839044959959615, 11.747506297922305, 54.56850763966988, 34.67289708194161, 65.33538935342578, 72.3865518402762, 9.497672492857511, 79.8827025042193, 62.82989730024685, 57.886599553991935, 44.43093809690327, 59.167255773376496, 20.464690457508794, 38.29627495460382, 7.79086462192311, 50.369275393472265, 46.885449353077334, 54.668604884944585, 24.915941473826997, 90.17746838258931, 6.537443599449489, 19.835963528775235, 73.49410733456746, 90.45039457390509, 36.266933128982714, 62.99783406205772, 86.68284857806488, 37.133727823249544, 60.736972695517885, 17.39997712500765, 25.8194784815167, 46.9017866186242, 14.779951922218082, 10.582948628414657, 51.17930894438841, 39.924600965904034, 35.21217290051651, 99.01077341011484, 42.12676420350404, 92.49089460499094, 0.9473519096459659, 72.69681131252158, 91.28168290729508, 77.62415395268609, 9.096468811542934, 16.01145386473598, 54.902811986506805, 11.475803832707776, 81.569218840758, 76.0525304572187, 54.433720624924575, 57.75589546279555, 43.05975058788635, 76.14981238047514, 17.49829828416234, 63.161203910861154, 76.34921696802557, 28.44615791327677, 53.69270323394685, 61.33435967208721, 21.626879294956126, 59.194952360074836, 47.41406269695404, 34.759974455817755, 24.728326458843995, 36.872263029310524, 30.945151273140848, 48.462996869274654, 74.0559705511143, 36.437116360946064, 15.2852755116065, 39.11410527300105, 0.5425277058681122, 40.3506968936006, 87.18744528810758, 74.40758844652875, 93.82307096689499, 70.22321199815607, 17.231412908333887, 11.74290120805004, 87.61454374788033, 0.7593978105098764, 46.19435830137119, 84.05268619341534, 69.20345222786621, 58.78585949778906, 13.92030111259881, 13.333616162517913, 64.38038518889908, 65.99952365288483, 44.42176779253919, 19.788191057943404, 62.30746065595436, 71.06284821228166, 80.7690518817103, 44.206725841369874, 26.716361785985143, 44.32922813652572, 13.056935769498057, 33.38290633586622, 93.77838889537291, 91.5954658801449, 52.482491659067776, 48.45614135954809, 43.93207710326349, 19.3473790772248, 83.32346482378627, 74.9727085646395, 69.8506160703537, 1.3421874346125184, 78.1053919339865, 38.76772173872407, 99.83605060689383, 3.125932674261156, 23.958674573367567, 37.906692696254, 87.34278459407118, 41.25108484809815, 42.12745806687739, 68.70360460110507, 93.37955111857029, 54.15758370326619, 95.77432873836145, 35.414108024070224, 18.845375331246316, 92.44572653913585, 51.27909771498158, 58.99664431339823, 66.37325711091565, 59.60646994476303, 71.34577242113915, 21.739534725105926, 98.37893503893702, 20.047943753289665, 81.11522645901795, 78.36163973174189, 78.27788759664458, 9.906338696346461, 93.71844008038349, 38.247130573353274, 8.761024543330286, 97.97082374819523, 55.3286330058977, 69.01704344303894, 36.66688605731123, 28.665310675765433, 28.4737405488536, 44.65850341881175, 70.5006584520602, 38.280351865686036, 87.95229847353194, 76.18294574526503, 88.84953554049687, 37.778748599390575, 50.85514856075655, 59.77918883883604, 49.39640429063078, 97.80465255326615, 90.74277576128547, 13.724877216443886, 88.92819432908567, 94.19526845934426, 54.48326770141273, 19.50550129824393, 0.9033727037097594, 12.387002536174585, 82.82287608469528, 51.90546607450497, 12.916567718828386, 21.812641200486393, 72.53032778301265, 6.4585779943799775, 3.7691048022823748, 50.51232709211697, 73.65303087842673, 31.583423827005397, 74.67021553593854, 35.91119421501321, 6.24281745412495, 2.0020870223794063, 72.00058771872101, 2.458071291532593, 95.57461089344706, 74.28464944911245, 82.63355478486277, 15.914715465019857, 75.81892322131529, 14.455547487062237, 38.52685025485084, 99.00357755394533, 61.376684212060475, 2.4777187774716936, 55.63701705340897, 40.36725907935386, 52.43698559554414, 15.966107499185533, 85.88020215341065, 36.56543241411844, 83.33124308458805, 90.81658907344027, 98.20511429111858, 71.9215391654829, 94.65733391633414, 50.170239120570855, 81.34569560843525, 23.364204150326096, 12.18540349214412, 11.517709005972343, 22.838819226027585, 34.952143941319015, 1.0472439641649123, 38.477495297559535, 75.30961184090441, 71.26456750836161, 92.89957070627331, 16.23408433364214, 79.82801241860396, 76.36773408441182, 7.305980765149622, 2.147926876412809, 98.17479961433489, 78.86464803240658, 74.43551083015247, 50.53614840879569, 17.89897821528087, 5.914633665226243, 87.7740780470457, 5.5857754002984645, 80.33579796632881, 50.24436455877381, 37.04220618236499, 96.98671310940944, 5.962076991275067, 53.073700434129435, 6.793926173683795, 92.71138403376568, 14.260370140393796, 28.496314286892233, 54.74140975438889, 64.16935352931765, 46.82101540838668, 68.16574767778573, 18.949815047644837, 11.239941561465061, 66.45006982460811, 59.454684856334715, 35.88574317675217, 65.68208817092757, 85.95460473925588, 18.078902997500123, 42.65498997247587, 22.244642753064735, 43.01898663279834, 84.6296994455284, 6.108015130597311, 5.744505190971472, 93.37338910716039, 66.70348231572223, 6.228857345736804, 19.756897718457534, 50.28462847658128, 57.762840071956155, 5.929246786498499, 0.6701119886841078, 65.86348915079606, 99.76569385375717, 9.202321808126223, 24.033514731990014, 85.92248042556577, 77.13674601951332, 37.154020289577126, 42.405552287692096, 86.81538117920942, 75.81020343532504, 47.720751283854256, 4.231721433605484, 13.247208084779228, 39.50820286481827, 2.969522348597886, 82.55758033558831, 13.613728822634208, 52.27781303733533, 61.91481662723469, 27.49519516933756, 36.282003589821684, 21.284653493926164, 73.18206869131191, 60.77758582018761, 67.67903980788171, 16.052602880842205, 12.032424480622272, 67.99326080187573, 34.41692447630903, 55.9292820014214, 49.86074070683855, 63.69402021906384, 54.77292285050838, 98.22234667992201, 46.98962186292434, 63.77223876274286, 30.28731925938093, 78.4183700611772, 63.135194859269916, 7.868322004648009, 37.381843486000044, 55.76216723252859, 49.198529757845456, 96.48997993819133, 3.4956634549354604, 11.77275323293222, 98.99493429048218, 18.598314610163214, 35.67348880783646, 32.645081461893234, 54.19856222458657, 39.07896251361432, 34.535518773427185, 44.243499776619885, 53.37491355714992, 69.79977252772565, 66.08789282250468, 30.20336242961539, 57.72852798786224, 36.56418002475883, 28.21714670339529, 7.89861591604466, 24.998021187640486, 37.07376837750649, 40.090709795419365, 16.117938464416326, 94.87855939085382, 46.97941402191075, 25.419268649037807, 91.20837668088207, 47.542806674026835, 23.64927918805528, 75.6141791128616, 11.240997740503445, 39.98671681279235, 58.19691583623656, 46.64131684085188, 36.807986187912334, 51.961121150261036, 59.65825147862479, 73.8354183006205, 68.60508670663855, 17.814009118562534, 58.45649975145734, 66.79304633666719, 54.10808517862645, 90.35722888987794, 36.95985634484876, 29.585245812826766, 28.889305547093414, 98.00869923037446, 46.63706852595679, 35.873513829317424, 82.15715760247647, 5.357723828527017, 28.888255993313237, 50.56279650151426, 1.0260781645001327, 34.52031587856834, 1.8069985824155532, 2.9151484317274545, 27.280835310284257, 25.52269709227718, 62.25069334973009, 26.886770898441135, 47.60432327344758, 96.04949315779844, 12.958172659715606, 26.19323314561336, 36.269672209102474, 97.77237494303385, 32.472822112261156, 85.93053600709007, 68.53232486761479, 91.20947558981267, 76.8154259969016, 91.54758436669687, 44.56883420554551, 51.08011571770127, 2.290969996874903, 51.9540693886597, 95.01806928694425, 11.65958296216143, 38.0904145382258, 36.27051336073617, 49.03320917803809, 73.2018946090783, 85.91851891024882, 44.18426007369713, 26.560997997696067, 51.13210537018391, 28.548516037573137, 80.11938086258358, 17.648243239974505, 87.16124654937867, 64.65868263080536, 21.80350095608904, 31.83332619368391, 11.157057457767506, 34.49589471747016, 57.01367203431781, 81.52811524888104, 49.90147121885627, 71.32638677602309, 44.09196000999055, 90.12920359279603, 18.17163245182534, 40.79361830374179, 87.73087524926302, 90.234668853727, 2.179241127993159, 19.02364619688468, 70.05954452937785, 9.055777913545581, 24.69250027651735, 18.80891001371903, 71.43557801718099, 75.51591845974657, 83.51280266566383, 90.31236473469129, 28.894700180275056, 74.50338737448419, 73.46196183213338, 41.317269406285384, 46.56984674365587, 47.10166695494304, 34.142326361109276, 24.858685674338876, 94.61129512225929, 46.54211866751896, 32.881935511252216, 1.8730602296483156, 93.04497397762174, 77.61301548269348, 99.64149118756909, 71.46643117867492, 27.853583603558096, 77.09365935842382, 9.978897003258979, 66.97426420681035, 73.96507613612124, 28.817065415166766, 58.157658168405135, 1.2225614688014974, 72.34980791866195, 31.707263652392083, 91.32178013595103, 33.61926058915711, 45.115047334720536, 24.112833981512296, 29.503278603638062, 72.25387187956582, 32.53216573876959, 66.39878569246287, 1.8998004600364826, 33.530814875976255, 83.72347208953646, 69.73061626122133, 60.98372170660309, 70.47157512433544, 85.19560366310665, 86.98579709607421, 27.545123664842507, 90.64254233516132, 75.61676825148452, 87.86808165287717, 3.462795430277732, 72.93285417169648, 96.87616818263564, 35.70172114142153, 51.95005799415474, 28.011584099897814, 90.56010960745513, 34.48834198264245, 94.79827588949338, 88.46793988286635, 64.87190547912806, 18.180193369237486, 92.59117652070597, 19.37301354714466, 20.586524068991608, 28.47296156909095, 51.5257947083144, 67.02427795835519, 27.31984838816175, 77.43816709732565, 35.92296574042674, 7.355201620134066], "x": [2.6644495102785255, 2.188775383169525, 0.415402688319505, 4.700136595682384, 0.16182508471522417, 2.9284959523708998, 4.692327281803358, 2.478956698561936, 4.7954173194154945, 0.9904131208266553, 3.8633236418996564, 2.878790613560377, 0.46459489523777264, 3.799278583056682, 1.417696571442519, 1.6406197016430952, 0.9000299368965453, 4.60705877177819, 1.1805833550762839, 2.190747642735045, 3.719313938672693, 0.7830888092241561, 2.2589638511121057, 0.46303902971600586, 3.522421155591326, 3.5029439153927995, 2.0785240019387388, 2.5080237740288873, 0.7316548991595018, 2.377580867076104, 2.440059791293261, 0.8622607417353545, 1.1582799768373837, 4.173400341185773, 2.531550465387994, 1.9066636164729016, 3.147854266272809, 2.39715742906987, 3.733611050139772, 1.77242079650141, 4.250968630018201, 2.4434618749581913, 2.660595514909411, 1.5943614064669704, 4.810237276801121, 1.274559920051539, 4.370373103770109, 3.1815994877739535, 2.476482806698974, 2.915738475084601, 3.9426971199308842, 4.145004821839596, 1.0020762096179054, 1.4666471547204591, 4.997948452664323, 0.9576024815192891, 4.401747696480561, 2.99054872999972, 3.7508389095339107, 4.040327469165062, 2.9919965076127806, 3.175011168121189, 1.4228381189125594, 2.829061139288603, 2.133468307042348, 3.9620754494174197, 2.1454317302126213, 1.7972365426900878, 1.6615878675147107, 3.159516935326725, 2.742880642040642, 3.1420457577746825, 3.06509813322089, 2.101345836656902, 4.314151022311149, 1.6800795227305476, 4.603856455841983, 3.5580664849838897, 2.9819465575248154, 3.2753017827655446, 0.4448854194826901, 3.2238202738293484, 2.197138041793041, 3.2073751843182006, 2.528658548274848, 3.451237489256725, 4.711240639236722, 3.6432333968138804, 1.984773650337253, 0.22633120606767254, 3.1865831363432022, 0.9461335449089203, 4.616329286494915, 4.843285753396065, 3.9035820180429255, 4.912961047049414, 0.38353689723255036, 1.1830693794019558, 0.0687444065151227, 0.38349461393519413, 2.1908770964979265, 0.3010671002291476, 1.8428578460782457, 4.725404818789537, 1.690440171304104, 4.274574779731274, 4.7293282531583385, 2.1306357686218957, 4.964801726697615, 1.5637868837761344, 4.006935593818872, 4.171358572955847, 1.3512621724451441, 2.4716828621127456, 3.7955238939906515, 4.716366953769576, 2.119317134791647, 1.2928007649030433, 4.714777554691008, 2.9179355791366577, 4.889184891857873, 4.902435505949409, 4.837269373706558, 4.236867784043688, 1.298626518668054, 1.153949254551082, 1.8635455132601997, 1.8990597908198104, 1.5539262510709557, 1.2691980614114196, 2.4322494808076867, 3.4601668802187406, 0.2181004239118295, 0.9648634338935697, 0.06800384540063209, 1.4748904770959936, 0.3813975816451842, 3.737034360800284, 1.5625146258620681, 0.4660388537707577, 1.668040685724606, 1.8640615766962398, 2.595727758529878, 3.981759446245132, 0.19420131909334504, 3.6322204467487857, 0.8754521620042333, 3.096996870609438, 1.6666017359475864, 0.30132373851585015, 2.431376005954617, 4.902853912749824, 4.3985784471662575, 2.6503378353095677, 0.16657531977539997, 2.4917989119559265, 4.562022942274867, 1.806152763688471, 3.9333784959042717, 1.3209620960921276, 0.9857419210766827, 4.582091490237411, 4.237014697599536, 1.7856030628950887, 2.311144390334965, 0.4709905511540774, 4.027128821812243, 4.258017965718014, 3.2042150552567628, 2.181518427746071, 2.367304144960235, 2.3747513675594494, 0.8590687237969424, 1.1902241095014077, 1.1476881039405284, 3.1458302655109964, 4.484056079336396, 2.124604630052605, 3.2917994675385303, 2.1361862779048213, 0.172532708134584, 1.0472742672017192, 2.9702311476962686, 4.595817858057615, 1.7786256838518844, 4.479214528444253, 2.24760097982183, 4.136214880684406, 2.7073280604216747, 1.3823877983613753, 2.2467593904312504, 3.140232556761871, 2.8051439137422642, 3.2727078029379033, 0.6513580788821804, 2.4841491340261133, 0.40331316718354604, 4.513459911718395, 0.7048329730174718, 1.4023353829754122, 4.426567923148585, 2.412319117978241, 2.3774089219977084, 1.1342746256017127, 4.465550200082561, 2.1316294542001044, 3.5234498522135027, 1.6607920983666165, 4.0231864104677575, 4.652597467643777, 4.8629967150192845, 2.1944846755208354, 1.3516571603935708, 4.277566625286175, 1.2945854921535205, 2.379154960256707, 0.2021467673591104, 2.4767202335418865, 0.02685638518620803, 4.633115323449658, 4.122006786338525, 4.424110289481097, 3.849099563792777, 3.770207226917273, 3.214033447701132, 3.236935503839604, 2.7685376443609657, 3.9296225292565765, 0.30267204979489204, 3.5200131921779567, 4.743840958404758, 4.398872457680441, 1.1640126743299968, 4.581629166494323, 3.40322146532908, 4.335133551268374, 2.0610423262652064, 3.2907708702619503, 2.8230465923640056, 2.4017981449999812, 0.684138637934979, 4.341896914627613, 3.5367457140088088, 0.1286509927236379, 4.332208801446073, 4.191265661394549, 3.7422941967922445, 2.941528033341243, 3.7347276510527356, 2.1221304417576867, 2.6534132807195183, 1.9914024595122393, 0.34418287160973116, 1.6466804031775906, 0.9458012560754814, 2.5773375425970144, 2.8019072327232752, 2.393305754211823, 1.126002110871322, 1.8546628484007088, 0.6566118173735125, 3.461969809930948, 1.7646603258656057, 4.037021561660116, 4.696182638773696, 1.0495121308139872, 4.128539883564239, 3.725355029731448, 0.9929698831902989, 4.976442547752401, 1.7391937090233434, 1.4715889459900082, 2.7553414009047894, 0.5540017657937196, 3.551165001657827, 4.458785451232991, 4.532376810515785, 3.654001439304623, 2.4875346065558075, 0.00149995553350879, 2.4278328424857043, 4.620761264640879, 2.5767503650173373, 2.392875526929818, 0.9746097464680642, 1.1048182953875645, 2.873955091524402, 0.4050118392560409, 1.5899074326198237, 2.9678352813101943, 3.268866865902087, 3.891829663036039, 2.449004000554579, 1.708969504071579, 4.875525202147618, 0.5294462370487679, 2.214064209791686, 4.422722957483372, 4.806455900884964, 2.039454571120427, 2.2972619506171945, 2.1708043058859805, 1.43254756329097, 2.000349894071385, 4.69883507358189, 4.838301765411453, 2.9562458940554954, 4.329025503505991, 3.5387907474384575, 1.433255783639071, 4.766051458490893, 0.31999999567959125, 2.886957680816773, 4.467115812065458, 4.796528542775723, 1.3967699072854234, 4.178917422622247, 4.140065314075947, 4.290321458303151, 3.8342192774821338, 4.3150255839592475, 0.2402186241687304, 3.5369218527984043, 0.29746035477524246, 4.549802782720002, 2.5252103408146347, 4.712655101127881, 4.022890836687996, 0.3467578245773434, 3.9297072455036384, 2.8579001194759623, 2.3062693071167812, 2.5605042841867753, 1.0213608238606469, 3.371238662906993, 1.4946494867332278, 4.381480184480012, 4.246350768437629, 0.7481066474105724, 0.4833681020656233, 3.66808392359618, 0.2806883608726157, 0.3062789872501265, 0.12490119350652806, 2.509923415803352, 1.6418296759806257, 3.041440612621077, 1.466786517235949, 1.2993781725867009, 4.147711565981468, 3.101283083387289, 0.504707706528707, 4.076177943781344, 1.8433867930325958, 3.4770066525619896, 0.7656930416558833, 1.8575122100896557, 3.454585618707038, 2.216002897567381, 2.8915667196890587, 0.25084132304858064, 2.988935783904581, 1.907664483330362, 3.070275021924803, 1.7982580160928907, 1.5098873420899355, 3.9060043901498327, 2.1484513530098583, 4.335268129040465, 0.6023214337532051, 4.832225507345354, 4.854045862464248, 4.660298911993652, 0.5520036632701775, 0.5446798578949308, 4.743812853464565, 1.0144535339419942, 4.135580424289151, 0.6064791911611672, 1.7926567903482593, 0.12234035231514784, 3.625043013407807, 4.35413150806917, 4.349988956516815, 1.1558699464825346, 3.9923378757564616, 2.7253054690975014, 3.159052375141209, 4.979973177514604, 4.300822893928115, 1.427145413929702, 2.8261596842143937, 4.354727636780896, 3.0505857335535236, 3.3151434525586265, 0.5380451174539624, 1.185612987004363, 1.143430323714309, 3.1193030502818764, 1.1306765850604938, 0.38222529086479495, 1.4003052295411416, 4.548199754987689, 4.799456631534667, 4.433620878911405, 3.7440112869233957, 3.1213143272850177, 2.3131235816987443, 4.989483862369358, 2.4765562705642665, 1.326566943054572, 3.764653664937734, 1.8151098957999463, 4.905868845599677, 3.6861141496620475, 2.682174246465846, 2.1022882753743026, 0.6214562696450737, 1.3499698521081283, 3.4239407574723133, 1.6108608574036092, 2.020478979390457, 0.025594999925114825, 4.590815194134188, 0.4382390024546817, 3.92415796127904, 3.143055226142271, 4.067483617709122, 2.5957417638320064, 2.0613886715278125, 2.6139206974640254, 3.665609958815165, 3.2242956062502675, 2.5348465603314585, 0.9457748840074676, 1.1656380467963596, 2.44646594562939, 0.5109637265729222, 0.6487504671556726, 3.497377727376974, 3.275203482619349, 1.8946770693734716, 0.9345154082818002, 1.3083966834158671, 1.5368298698916427, 2.9603718044786156, 3.869640180246647, 4.749587690568262, 1.4775181146551852, 0.668135420398438, 2.2272270739316005, 1.320960154060851, 1.0618265718201447, 0.6972117476935674, 2.7577529131336416, 3.0576609768890335, 3.745769181008825, 0.5557690254312647, 0.19387181438416057, 4.611281295402677, 1.9554883819529667, 0.04499836105262667, 3.066728430089948, 4.109375157326895, 0.20077916157651032, 1.881109095034434, 2.7702275639699927, 2.711383944584544, 3.3902061878582135, 4.909896667464724, 4.173579398298875, 2.4696311130134347, 4.271433002254025, 3.8967765065778037, 4.900250943390018, 3.9768473703859946, 4.782842463677176, 1.2666328120352128, 4.199025187664592, 2.157745160840748, 0.2482111186458602, 2.0890092371203046, 1.209453878345173, 3.8268534362329087, 1.881527183592978, 0.5377145544037348, 0.16055517217895943, 3.296369658702136, 4.799251740804342, 4.6852049425003965, 0.27003635520619906, 4.4530968127714745, 2.59055563520459, 2.6459574847696676, 2.1474868021257363, 1.8747484245145052, 2.7360579744788565, 4.87767198481513, 1.8530120917037751, 3.400427196761011], "expected": [10.879651679628623, 9.166963594922228, 1.3763069720994228, 18.896551862975503, 0.27805288604295775, 11.757851526928134, 18.846583713685114, 11.339941360084705, 17.789265230080527, 2.520933842493908, 15.521353316283903, 10.289923879161082, 1.948847139368448, 16.32071564519078, 3.3332223483823173, 7.207242329475583, 3.7407239456570736, 18.77659116952414, 4.505334323782371, 8.975774122059399, 11.4049387796493, 2.8748206083915093, 4.910339250369112, 1.823929370160125, 13.627584133057082, 14.079790016659842, 6.765301058476123, 11.318229273468447, 1.4778573507469348, 7.219953478778434, 10.518414607152986, 3.893794202987089, 4.190780222876589, 17.35654283718392, 11.325463924672812, 6.94235124513184, 12.978234792912362, 6.981360051575671, 12.280326261026156, 6.857766892256304, 11.727318340436739, 5.985343113547132, 10.52181993007935, 5.917841252020288, 17.26584321887137, 5.8697026502479135, 16.450712750488176, 14.437665929586881, 1.6505026220179528, 12.53755745017677, 17.84009599165885, 18.091615311871504, 2.316986322367435, 4.156312120453801, 20.1098187778626, 2.4167885963034466, 19.427716312163042, 12.992401285486986, 15.060323695035107, 16.457835555134434, 11.326342447820897, 13.797802075344562, 4.151384534585141, 11.772851425278583, 9.27702521159305, 13.40197156266366, 8.585439170901484, 7.427103005394182, 5.182722769944632, 12.946400262783358, 10.64180177243669, 11.238561127202608, 9.954189959846389, 7.636750960875044, 14.94430719081201, 6.554367987470412, 19.880529981602596, 12.889674484404457, 8.32041024722534, 12.091523381460318, 0.19282332327675059, 11.999346865299502, 9.842002099757975, 13.865187562570556, 11.510485937685491, 14.722353683824736, 13.677419842067035, 9.271935540692063, 8.90031253077816, 0.12787070302965992, 12.281965671833161, 4.20392764953771, 19.625850727112294, 19.812764040267833, 10.550300029638016, 13.081287221434996, 1.6032694879301068, 4.974434676549761, 0.262328067973833, 1.163670337808931, 9.087765172175896, 1.2878261514838043, 8.115759518034984, 18.009679635454013, 5.615680988899787, 16.303023189129977, 12.500162811251766, 7.5372508725898015, 22.597500691392252, 7.08120259362312, 15.945016551903446, 16.272829546393098, 5.14175789284176, 7.447062097916555, 16.83185865712742, 20.42363367039506, 9.029506764894371, 1.1002837188632362, 20.607260336756895, 10.74691889246299, 22.55623463190777, 6.948183099028628, 15.562566740447512, 15.511877483132581, 5.8194370068667265, 4.319959082839274, 7.0146832413667015, 8.060088376780085, 7.0662068041920305, 5.089730763834399, 11.121173162123903, 12.43914866499278, 0.6516777415607524, 4.377952822405172, 0.2690637855326263, 6.038627314627476, 1.605778466506818, 15.338290004577805, 6.689839212254849, 1.4559543260642303, 7.671219314884355, 5.679428164396285, 11.44228843233666, 17.416276040815102, 0.8492344536857149, 8.678624683162917, 3.98410286247226, 11.3656017194603, 3.797181009716374, 1.3845298760801028, 9.801370212882809, 20.83094511135723, 15.961479455636079, 8.984587941414377, 0.5636075471593195, 9.52163674531464, 19.478499734125723, 6.629889094447374, 17.653397025917496, 5.741137091192509, 4.43400165951406, 16.760705905080357, 16.729658592445297, 7.333913611687186, 9.059500723569679, 2.163327751082391, 18.1985498226014, 11.452102788626247, 14.415800417633616, 9.93884577300545, 9.507286363550984, 7.173395322294665, 0.5529201860829659, 3.087779692498276, 5.082773139874812, 12.484248366097132, 11.806878617147028, 6.644307548188333, 14.147159803738507, 4.292377467501246, 0.2695234563489531, 4.1281678458750015, 12.81016474490801, 16.01092720094687, 7.695018819484975, 16.163312237637516, 4.450273049476371, 4.54697295374332, 11.615703033573915, 1.7151437524685724, 10.268400119466307, 13.569812384114623, 12.41681472554367, 9.255819781558722, 2.827839186773231, 6.801520835068827, 1.4829745278209203, 20.785412489672844, 2.913209691833892, 1.7478379437582205, 17.868561991711903, 8.979833128782072, 9.458528814559632, 3.211378371165131, 19.93658365194677, 7.729468047935697, 15.62562773839532, 7.506436484313158, 18.49535059759272, 19.956777402177842, 22.179021040865912, 8.635644137133754, 5.96205996297559, 13.658762206538357, 3.3388789345935956, 6.012468044575817, 0.6410711385691423, 8.87207928106748, 0.019242451762816422, 17.030084556482127, 17.868070502504146, 18.93666939576307, 17.483479400799872, 10.733361746893026, 14.117074943579434, 14.076040045769302, 5.860927275973928, 4.506271457331853, 1.3913482865664193, 15.418831009881929, 20.508943867960866, 17.341602186651173, 3.421158797842472, 8.859221361408457, 15.267173756412474, 8.171345602563191, 9.065672414369894, 12.954467207782997, 10.27220899946048, 11.011840726046827, 1.3275558719524603, 17.32567940417617, 7.262158189737342, 0.584103768546475, 11.806392244055598, 14.184355008472197, 15.04672952243763, 12.28673118132442, 14.44392920613942, 8.990417849162675, 7.942249361800184, 4.987874706993655, 1.4494874837762677, 6.754508587152911, 3.41228552321204, 10.82465369243748, 12.511597884718476, 7.056861066282193, 4.252141581672919, 5.834907838899884, 2.48502690914101, 15.405877057305878, 3.4608924870292515, 7.705576606416837, 21.35475941957272, 4.423838061095503, 8.166586219733066, 11.298549590303868, 3.909710748313418, 20.27158690795441, 3.3666461674914885, 0.7547642600051963, 11.57974398515783, 2.5554982145115566, 8.247990246053893, 14.35825009418195, 20.23713811275469, 15.925820742123923, 9.058683468380645, 0.005655713383939704, 10.86512656428216, 20.06028410386989, 10.013522589909229, 3.959587734616425, 2.589110207253965, 4.089489884851696, 3.9621660365549967, 1.7923944665727793, 4.264070391202867, 11.798688454615837, 13.538932946716988, 13.036599914164778, 8.861747260518635, 5.3044674656884565, 20.996558783084765, 2.1831930591141058, 9.36426071008038, 12.544181745482792, 12.340289267174143, 8.635068663097655, 8.19476939458833, 8.773978184552533, 5.628610201470668, 8.34079649045802, 18.895371435574877, 22.243430766801847, 11.443582851011794, 18.05583332666595, 12.18480988111121, 6.270106647915984, 19.8315080671534, 0.6983953831942096, 10.530422151901192, 18.04210019155409, 18.783137368184704, 6.396856428174301, 6.281386171417756, 10.546047364038278, 19.75744312735519, 11.408503107660698, 15.542955674895422, 0.8445767041589193, 14.186370394044905, 1.0978820177481008, 16.245219728520823, 9.62625082801351, 18.831312183666206, 17.136934814390283, 1.4584646560250807, 13.520259397196183, 11.640014573609541, 8.362649982995215, 8.641076563128786, 2.23258828367801, 10.983564427899653, 5.439814996729354, 16.280625452200276, 12.060175242430487, 3.413672264396832, 1.871007736616464, 12.009650160844815, 1.2698484540263053, 1.1891116352139384, 0.4002768073960892, 10.890010953330187, 4.112439848697065, 11.293623375451235, 5.98576427784483, 5.020407946464384, 15.066646690605356, 12.310723325625935, 2.0719541774003876, 17.589895134915025, 7.821190888134836, 10.203629835946325, 3.1280436305691475, 7.832125242881084, 13.850457829142533, 10.004759830590853, 10.515266779108911, 0.8580071928292936, 10.15491154481902, 8.766114555795983, 11.862348988542713, 6.487204124004248, 6.6748077161774075, 7.224820799201639, 7.299289623339999, 17.093096975762524, 0.42530036045294006, 17.251551531910838, 5.009937391498786, 6.36062408021415, 1.8448980198318283, 1.7854610428540765, 19.673095172519083, 3.376255978925867, 16.061405319063912, 2.774776384297658, 4.7255601634879785, 0.40408628849504813, 13.11605783451729, 19.997733389665523, 15.271653386873355, 5.161085720488909, 16.934665866398102, 12.32945335684067, 13.75558713710221, 22.547938785625018, 16.425806112793616, 5.64119644442427, 3.366471543160831, 17.28576441220589, 13.924509608383937, 8.415208125999992, 1.9724073740898989, 4.2897878587880385, 4.473884927003722, 13.434182197170715, 5.048438293328616, 1.4565645676267553, 4.64397458398665, 17.98258570673046, 16.251121050863553, 19.489851150930583, 10.95404830633464, 13.980889645021456, 9.679195883184626, 15.601687315621147, 8.646757635684619, 3.313644649491891, 13.437618971568442, 7.370578105642535, 21.650281259837225, 14.48602987103808, 11.482894946855478, 8.006993680169519, 2.8041836518671324, 3.9870437687894205, 12.780693140001674, 7.225690211909214, 9.119300473214505, 0.029604265451263663, 13.758277798863157, 1.868439954549297, 9.05753494086949, 10.20298314466704, 12.146042328022542, 11.116776990429019, 8.941270896562255, 11.597712672488898, 16.547612481591184, 10.955128607127339, 10.961126515713552, 4.076562526265934, 4.365542091155718, 9.448738545836964, 1.9791244029518216, 2.309166489034072, 11.37573358988501, 14.935880843423531, 7.316515336961615, 3.292187507365721, 1.3808527397440398, 6.983006244253356, 12.920653094750211, 17.84509570822974, 20.343070350754605, 4.967761936609265, 2.911673273150389, 5.336380334918143, 5.573301513111796, 4.583929046160669, 2.3670902840431682, 11.252200127044206, 2.442032572306457, 16.088977189605675, 1.938298487647546, 0.8773242606384406, 16.344272419805893, 7.491748396927194, 0.1450467733773651, 10.481569227786819, 17.645373809849247, 0.7052378389433529, 7.920648747987506, 2.9493004139866956, 9.603320945678401, 15.0504565461673, 20.91065347153009, 17.223827113269163, 10.543595666124096, 19.036150221637374, 17.446551933318258, 16.423123029539017, 17.966981235888067, 20.75187321302052, 5.683575275019482, 6.280798360406755, 9.28511685169906, 1.1377260714335602, 7.526331887797784, 4.800744744908557, 12.887675955757828, 8.498850183036037, 1.9192130716240674, 0.7324919813781674, 14.813490827362303, 20.097884250488992, 13.839524513643699, 1.225677763954938, 13.42257410852676, 7.958366266648356, 8.952526465796783, 8.506848868194135, 7.911184642226542, 9.14818197753956, 21.277920369090687, 6.687212548346534, 7.218713486955914]} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/small_small.json b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/small_small.json new file mode 100644 index 000000000000..70ee77e32993 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/fixtures/python/small_small.json @@ -0,0 +1 @@ +{"y": [3.7397568430416372, 0.2726816702353352, 4.688608923257615, 2.337057773550541, 0.18754638088619546, 3.244609618436715, 3.1596584332614572, 1.7430496029454257, 1.352000523033385, 0.9334481963433272, 4.070644612838465, 2.0071295718290747, 2.9986294940880436, 1.6600656254988477, 3.2077278675122436, 2.5955234698458756, 0.13483862596064988, 2.726367610118574, 3.0284298789144577, 2.2224156880037653, 2.716138618822312, 1.2142922328184196, 3.7323420341932008, 4.991197179163337, 3.702841519630656, 3.4561205694281423, 2.2866670021423054, 3.9455501607398897, 1.8455165766547248, 1.2570066739925396, 4.454132988532208, 0.22953241788640166, 0.2889526647640839, 2.6535846916452743, 1.573684639922559, 2.6325138631909466, 4.460244979279728, 0.9578911325868511, 1.097096314183078, 3.609240383197708, 3.4979024800855103, 3.7786368709987386, 0.2810470171604629, 4.291712107728429, 2.5394217758491564, 3.1407594035765314, 0.173438711336521, 3.1424041703279477, 1.8873578633840093, 2.304532178979689, 3.371882942701361, 4.8629471501535875, 0.49768228890704147, 2.356647498111102, 4.351511356972774, 4.353358907294345, 0.20304415655499897, 2.0103151197404543, 0.564430491273713, 2.53875540356928, 1.3113241198591203, 0.6931327751859079, 0.7142272190062826, 0.9792602171772741, 3.5721065752673624, 2.403770786629846, 0.7797672829104946, 2.415317389485728, 0.6002928696106741, 0.35933906953846906, 2.032945503651376, 4.204179939948602, 1.6230219800263423, 0.6756516441487048, 1.8387730975777146, 3.188524595555765, 0.39757429395626487, 0.3074436495934463, 3.5404663871869904, 4.0691384612169825, 0.1738381321089133, 3.166800858550948, 3.6482612049645247, 4.591850407963597, 2.9809762393574726, 0.9036029991868549, 4.5851649544372854, 0.11297900834095431, 1.3296582032820075, 1.2135542554737326, 3.066060034496836, 1.3554437380465472, 2.7578394801750217, 3.2300422256166534, 3.3168691608195555, 2.609372594784716, 2.7619726163008282, 0.3836602762272834, 2.833293353551783, 3.0276400525596148, 3.206841809789234, 4.071726156253018, 2.4260696960951544, 3.5407066561441054, 4.5222176017023825, 4.974146733227162, 4.4069647199731214, 1.5670845270811873, 1.3732370066576145, 4.596447811235875, 0.7510650713665301, 3.410185723267507, 4.16132531598227, 3.1107180504188454, 4.249531879154348, 4.273157777328156, 4.1040108264592545, 4.103462466399616, 3.6989514313650087, 1.5348930356800334, 2.2883034823976227, 0.10416351706326155, 0.8459591797445004, 1.439913216035869, 0.1606499665141553, 3.1161184770786594, 0.8936381244230468, 0.4942661763444661, 1.8356427196944125, 0.022643428842349378, 3.3483834334765654, 0.559118575846278, 3.0833256418152195, 1.4954128541650187, 0.03749799018325839, 0.4940764244799356, 4.598832923332134, 2.3885912352989718, 1.0637498945161776, 3.695245304980448, 1.5070684764448938, 4.785748915618614, 0.49963452152440746, 0.08815134049211415, 4.8811331580327115, 0.8147817068707397, 1.011538927400114, 2.4590729070328354, 1.644729748687019, 4.047043390124298, 3.5168569999878447, 1.2375966624461259, 3.5493073106401503, 3.3941457700297626, 0.014746587489906648, 1.2138425377833144, 0.6496449689331069, 4.961232031420693, 1.2125249898760053, 3.8740981069554454, 2.7927590650784504, 0.5486192254540961, 0.06662838857547759, 4.246583176269963, 1.991596331758834, 2.5822544982117304, 0.9935296775378843, 1.3802302294731388, 1.7410587436123963, 3.7056941470864513, 2.436788287075333, 1.5270221979410952, 4.425974101762144, 1.178800853014748, 4.074750601985487, 2.8483648908146697, 3.7737169089659672, 0.7608599016069667, 2.780213031039629, 2.760190922606247, 1.683727775455125, 0.6676553849853872, 2.64936649202414, 0.24773803442387277, 0.6428364340053866, 0.3318524918070731, 1.4896267154770753, 4.988926351491353, 3.3930222958876612, 0.7959479713399781, 0.3666907650526602, 2.942913026119643, 4.779340250630612, 0.7157447392467109, 3.3969178320881355, 3.1020638514955206, 0.5503392668973511, 4.097477067923532, 1.3040650151083166, 1.631420725225012, 4.044207096270309, 1.430953816173064, 2.8551791558568924, 0.04976282669871657, 1.2740064763369112, 4.7009779248759545, 1.5588905208412907, 2.6968441452209913, 0.7907939897964456, 1.0081917908228644, 2.934828007620376, 2.5971604001532604, 4.87044711665216, 1.569391796347675, 1.4580212519064117, 4.846083597170333, 1.8670106200319203, 1.562947716098078, 1.9516909651155863, 2.937632046704665, 0.7453967552540869, 4.742160821378361, 1.7662738891738494, 3.1227044854519703, 2.510173945615057, 2.330592761103639, 4.900027977071184, 4.247145076465712, 1.0849160508292843, 4.709920772277333, 1.7462787603917762, 4.71593951942591, 2.659862964521169, 0.9526742943330324, 4.357365148092212, 4.520844916106171, 2.483627189204914, 2.838730067530296, 2.5874975522105332, 0.9230403242461216, 2.811136440923059, 1.527871216215908, 1.902559669828423, 1.8278826769572194, 0.7337821103341902, 2.517391775537578, 2.9366152842923423, 4.268835559219283, 1.0652870512941348, 1.3231944368232784, 2.3729914762396613, 0.8248785213312154, 2.1305874610684734, 2.9032840867937457, 4.854969863966343, 0.14951219427069729, 0.5185187392482465, 4.624085395060286, 2.2548720703047174, 1.881042539339584, 0.25877558070290296, 2.0805087864991045, 0.415204732243441, 4.933010468307174, 3.7814116583996387, 3.9983096899012867, 1.076532832109105, 4.464247137126821, 0.006573987933284897, 1.535470248235022, 2.69115112713213, 4.813090637470635, 4.987306559589614, 1.719998058526198, 3.654806106092944, 3.7544811839851224, 3.3657034527357736, 1.9146410462642838, 3.803833902972977, 0.8462498982421168, 4.2333445182467875, 1.2004665402439247, 0.9379095786128855, 3.3665892255750713, 2.795932055059775, 2.2360340670712278, 1.9276337159846486, 4.582721107852137, 0.48153088321529813, 2.6869418889543084, 1.8719696585063117, 1.3267539421893981, 2.984462585181191, 1.221917400231873, 0.43132956103820563, 2.045679347812542, 4.549965980570893, 1.7769859191703312, 0.5065545204193145, 0.5629231628230036, 0.9945290626309206, 1.662045650235127, 2.6251061840345784, 0.16386675037785792, 0.14469350694218897, 3.2756742041315263, 3.208589865805331, 3.551168607456885, 3.286276700186959, 0.26577531949579014, 0.5737823486375943, 0.09732853559543342, 3.483766842328136, 4.67663797169245, 1.9131264765034088, 2.7614031474342466, 2.8084026163249276, 3.0746613856601535, 3.004764950244951, 1.5168729897576094, 0.9200884530843573, 4.294233058464881, 4.654932621808294, 0.17151696400982963, 2.9989360630985837, 4.924663538132324, 3.804218978077346, 3.005250484260312, 0.573831120422868, 2.62194541350392, 1.207059912548215, 4.187608713692995, 0.8996903322700023, 1.423300384053947, 1.6408869745832078, 3.9083254076908727, 3.025112536789641, 1.2124652278280639, 2.945658979134259, 4.920741545222357, 4.8052755730156935, 4.920768499920322, 4.674768423784816, 1.3536377029516755, 1.3956082048053897, 3.3793153127922966, 4.164875724712277, 0.873272431238673, 2.2267674916609668, 2.100324463282472, 1.8473665117466609, 2.761306693449957, 0.5074354960218619, 3.567328064144096, 0.24634197933729507, 2.632040343858582, 4.522700996479506, 1.6312691725203432, 0.0384021783070132, 1.649572048623188, 2.7591532142025406, 1.3960324359975322, 0.13749719707748964, 4.001033038065939, 1.7363964287191047, 1.9156562813122306, 2.2292351938890405, 2.8597455924716786, 2.605274462622008, 4.399991358984693, 2.478214844330599, 2.672914018552564, 1.0971578378241198, 4.6729721734875955, 0.6789409541534364, 0.18040066030648283, 1.5627594903346576, 0.9747698018365131, 3.728248705382728, 1.496746285240997, 0.7869562430758076, 3.772991918022694, 0.4340863278290835, 2.9884266362164196, 2.5258230410002747, 2.1292587747431293, 2.5574812520406502, 4.503334620197755, 4.57956713705838, 1.655748401772739, 0.6653698269816655, 3.5955516835203367, 1.7494686619163968, 1.409218619481738, 4.316076648319883, 0.9241102601329737, 2.8739747038078143, 4.821467582914167, 1.9015803765523775, 3.1912387424089865, 3.864605273486825, 3.8044420080930914, 3.4147329026336233, 0.32155832459386635, 2.9064169776327864, 2.8325009361342195, 0.22127815809753537, 0.7358911104238169, 4.978803685211045, 1.887447740036261, 4.626847509737016, 1.7966783644270596, 4.505731139647909, 2.174398449501383, 2.303346597154769, 0.8165926004822238, 3.024374939290069, 2.6209978363091713, 3.156664709265139, 1.750641933640868, 1.7395004990316103, 0.5077892745792256, 1.982626636932419, 1.6097097072045852, 2.7273983953455994, 4.771837756107412, 0.9002647633194522, 4.444949401922579, 2.4455132511051647, 0.5047339785256449, 1.8568716645322914, 2.2871640536026123, 2.2451876291181856, 4.591154717046273, 3.9796688908419275, 3.238212703995673, 0.05238768247043335, 4.311776264839999, 3.5383461523090047, 3.077638214096644, 2.536453411485207, 4.253596099455688, 0.17017644451706837, 3.1201827028124054, 3.8617018146311377, 1.2454098043895667, 3.228787553506878, 3.631629138516556, 4.351489590144392, 3.172065243501836, 2.267041863150412, 2.882161776867984, 1.253012154482822, 4.988451872040166, 1.8369704168528977, 2.901539803134647, 3.6406675380613933, 0.8669691200930796, 0.17467280788449557, 2.2343511078770195, 2.752663526377315, 4.691315906011695, 0.8937127584515958, 4.158980524096294, 2.4704993253147767, 1.9974587035961893, 2.1955976754397035, 2.7715894817222946, 3.010027356805858, 4.457158364237338, 1.7855825127096103, 4.760893333169905, 2.503301053907552, 2.4406597925753353, 3.880099571112254, 1.549200287939501, 2.743148547893518, 4.080847188087857, 0.743326365273313, 2.1611145598271135, 4.956050933608757, 0.8526707162214059, 0.4699420139988847, 2.0648255931817774, 4.97348263310872, 3.5143108620276546, 4.556635836284663, 3.4432291613269794, 0.03215579113809652, 3.117873651589526, 4.3975316241236415, 2.072309278052678, 2.374965735928151, 2.4184348680703502, 3.053724726577564, 4.28481026132431, 3.576480167048421, 0.373602528006875, 4.56269054655258, 2.110368292937194], "x": [3.9547046067032237, 4.4458690231180045, 1.7622284098885395, 3.5410664810344312, 3.946017830232807, 3.4525812484090985, 1.1608510166019896, 2.488310205602409, 2.4206881354824046, 2.827447547452176, 1.5241251024052649, 4.441363141333619, 0.47509419821130605, 4.815132921688251, 4.128894778160845, 2.0638468639831826, 1.8842298522916856, 0.13462707643797756, 4.450478055581743, 4.390750616638031, 0.15303582097949686, 1.418329301586021, 3.923377885295287, 1.143904061196424, 4.3180874465545225, 2.3553221579403005, 3.4503857322873417, 4.602540040154794, 2.2434008100276426, 4.622637501149517, 2.778258819676747, 2.4480896401925656, 0.14498189115919824, 2.2180157976634223, 1.38217305585554, 2.371736350548982, 4.469351617922651, 4.214324056304316, 3.280170036927437, 4.812821410922481, 1.635972899948464, 2.6009647200857855, 3.7299325138614585, 3.071930167171134, 1.2541684735681224, 1.5792345587068408, 1.7468530390459964, 0.16703267780785347, 1.9035608835200208, 1.9882246338147813, 0.11530362594818377, 0.14565674118417304, 3.62179471173971, 2.5864373831967553, 2.9732824862830642, 0.6725048353841989, 2.509155702993989, 1.644753150648051, 1.155599665784246, 1.0427873278706916, 2.0544764277093917, 1.5638991646429652, 3.9848432715145483, 2.9626398040386808, 2.7579913738375335, 4.745213874415192, 3.974508748478481, 3.5881542031778935, 1.792288532472706, 0.6795841026796617, 2.987895084303735, 4.895366979033587, 0.5381106320552742, 3.16406532769132, 4.682163970697287, 2.7610428783097336, 2.155986097364537, 2.2910506555456216, 1.9558499868194645, 1.4913383721075246, 3.4315206343337294, 0.4572136038577712, 4.221867410707959, 2.0771940968776392, 1.6615225003165401, 2.0278714542409597, 0.6887261845180398, 0.416667398155372, 3.5010182640011864, 4.909367137239263, 4.07357059661728, 0.8750152987490539, 2.6043281612586773, 0.6933736933178819, 3.9881885142468003, 2.2727829181345975, 4.8679016511234705, 2.3776392989361272, 3.7255770013957497, 3.3432898478873394, 0.5399957551888906, 2.465422318867459, 4.098247418545417, 2.694981900781803, 3.0558270776971357, 3.001679129756506, 3.884766466724323, 2.4604803821717844, 2.016325135625279, 2.953383433834297, 2.781557967550809, 0.24819665476400354, 4.315678573186566, 0.5150768727266836, 4.400668902981451, 4.834177358650806, 0.2811298052360883, 0.09964018161101762, 2.094231621715373, 3.898029468806807, 0.301124952290337, 0.813282256907919, 2.2911423583094397, 2.055618240043677, 3.0731281093755696, 3.72696472317943, 2.3834211687978795, 3.157623228601346, 0.5414692092771228, 4.7308904731559185, 3.4308992799519937, 3.3068868418753445, 2.67803864481436, 3.88735668796875, 2.345395780628727, 2.9699076687416266, 4.89529007263831, 1.0966901438060328, 2.936517510521068, 2.790118323346889, 3.4289506699789203, 4.679886762116868, 3.692503908963514, 2.8273397532339573, 0.2083277403902728, 0.06289096198242694, 4.465058481580334, 4.584636678278418, 1.6482763627367851, 2.910030195387316, 3.2845634533880257, 0.7927083146946667, 1.0929519949991695, 3.4924260816742922, 2.48482561189188, 0.06694030713500054, 0.4507460269886665, 3.673980417231733, 0.9656817832095005, 0.7030946679650851, 3.4380901343546917, 3.659513982391085, 0.17743177873974114, 2.9986329231419315, 3.404556861246719, 1.494456725124174, 2.434374072802129, 2.9997491481744203, 4.084139077856587, 1.0307790916711679, 3.467700319710395, 1.453781252547366, 1.3167159339078056, 4.098614174211202, 2.722219909057265, 3.5932145171643732, 3.5162481348183667, 4.589955120395068, 2.690926816906472, 1.3330834084197951, 1.2905310778603702, 0.19627767544855623, 1.192072499799655, 4.478438550555587, 0.289471008520098, 2.076738135006517, 2.3858213962667376, 1.0248638292676189, 1.4468652460564146, 1.8188401851836637, 3.6342198370387258, 1.1343191130571157, 2.690166472782494, 3.002893684157943, 4.6927074101606285, 4.2923490251573355, 3.453325389637615, 0.5264113607290949, 1.3363070153747119, 2.2405009770587188, 1.5312307678059134, 3.7350270714481097, 1.833521383918733, 1.2097261851701413, 2.1393894882900155, 0.3602139140960642, 3.1718518014611474, 2.172024482882212, 0.07095477807682715, 2.013155084223757, 0.12252658230434144, 0.8345730467056034, 4.030715033739628, 4.465337068183047, 1.9603110756788285, 4.415192475869617, 4.363760818958698, 0.7791808583199228, 0.005126966418870782, 0.6748691919199823, 4.311166928303145, 1.6834445101303752, 0.5786637979561982, 2.2131426986231344, 3.0332587180920974, 0.8354872400913466, 0.7717619333578529, 1.413183832585065, 4.559440615297286, 1.9958941580660228, 4.855971109677498, 2.470372000230739, 1.5331748425659724, 4.315135955361454, 4.755036785867425, 0.5577586073670848, 0.6627490781269335, 4.802721554732502, 3.3769753973959067, 2.191877381121169, 2.7849016910665942, 1.5939722583296994, 0.23396352361629513, 1.8092915323603727, 3.3637284349312417, 1.5477334184201108, 0.5803330929724088, 2.1313813742003394, 1.075296437629694, 1.010479606943833, 1.9367375527129105, 1.0471365972037332, 0.8796232228386069, 2.637917549336529, 4.810279172835984, 4.81634258998802, 2.8282657622146705, 2.611324721257031, 1.446294635521494, 1.84668883783583, 4.494937049640186, 2.6771292435444134, 1.1119902194945386, 0.5703605565643849, 4.816589436725249, 2.8993975835194603, 4.147327240948496, 1.3991140614311388, 1.247632385609635, 2.2336544603270827, 0.1941299189276674, 2.6183744276337935, 2.157837213072496, 2.8831556494873793, 2.945314106881738, 1.2986998727711097, 4.503897050435838, 2.3752149944754968, 0.4908320611893552, 0.9403273395978995, 4.344047499810278, 3.260878476834784, 1.8024409076446002, 2.666893734528572, 3.3388779348411246, 4.622142286896781, 2.7897988274483443, 1.7149415754447972, 2.851939784414511, 1.518888108148953, 1.2329868570527376, 2.0207315926181546, 3.3808355424475973, 3.6282522601284017, 3.7092915071511436, 0.9574223266657156, 1.6888875119293056, 1.980528784033082, 2.0058762085267685, 3.989977562025371, 3.630052551086853, 4.959768124879662, 1.0986158574730454, 1.6079676185376464, 2.385850966266814, 4.791060394565857, 1.8281302946864435, 1.367473699201402, 0.24291403399820943, 1.5126106289936836, 1.8406407963204163, 3.34373773091916, 4.124015404416794, 1.0813785912499378, 1.1748917272092907, 4.892838177329258, 2.9423131138803953, 1.4553055526733756, 4.164207927310611, 0.0992443044445196, 0.7876220878532059, 4.421123879078323, 4.979161842724852, 4.393687932042624, 1.4108285747559397, 4.612618877534888, 1.2041961622677015, 4.118809452631015, 3.136936583037831, 3.279154600226084, 2.800553705467813, 2.4183164314952004, 1.8280872137073496, 3.5190289672664936, 2.5838657977289343, 3.3742564996563926, 4.996031874849512, 4.579070629151099, 1.100312840244821, 4.116513815716475, 4.113329795837951, 2.171245080597755, 3.7299848972933565, 2.0273195887059154, 4.030452646772287, 0.5698796468825601, 2.090089553354966, 2.251360505896172, 3.5575479115312474, 4.16647262003066, 4.540712880246244, 0.08631952826411493, 0.5468861232891581, 4.564374572295447, 1.1078832789261361, 3.9081218188269813, 0.8952888831377898, 3.882314555209043, 0.7324463980409412, 4.599131637412068, 4.642447624390142, 1.7711278788579272, 1.9677452388137313, 4.79857810412452, 1.8295694186495677, 3.702112571111939, 4.841546710497173, 3.8989791564228993, 2.2900024987382834, 2.5254025507236504, 0.9174916451065551, 1.045236343442118, 3.7648804948848715, 1.214894542451466, 3.5890066022186295, 0.40533000432786903, 2.0346014944638515, 0.8416143185839925, 0.4933471690789848, 0.684306421971479, 1.3121802755060004, 3.4749168980043392, 1.8800750212768802, 3.6744189978553137, 2.335530841248095, 4.277512039048951, 3.6162933354656324, 4.258820657601054, 3.711308254389519, 4.958185104744919, 0.9525072725541056, 4.99268566818886, 2.8441377369399308, 1.459480063981617, 1.1091624749816704, 3.8536524290138203, 3.437138803801916, 2.90241115035573, 2.0280707739436976, 3.998659017708102, 4.710702439506366, 1.9326482032502346, 0.4691987424162569, 0.9942371694366714, 2.677125916385876, 2.9601266423811627, 4.13933221734515, 4.031915829890117, 3.514431454447446, 1.3372996203787169, 1.6911262295371376, 1.584588652003216, 4.358077504938669, 1.286513430762517, 1.9569169750398636, 2.9811857681494898, 1.2007041974171866, 3.3765202962830236, 3.739277801973366, 2.1446948043205016, 1.0740298948194416, 2.1506104624869806, 3.9926376344534837, 3.9808025532345543, 3.798424999721446, 4.955255053966851, 2.945821743657378, 2.032272822448682, 3.8054267482112585, 3.2508901073576664, 1.3441383471135655, 4.782070542375862, 3.472038722755446, 0.06927979941335871, 0.7025668769801885, 1.5112861114422476, 2.969197803713739, 4.280623875374087, 1.6531668912410136, 1.2914845814648697, 1.4574478961694797, 4.100597494377285, 1.9070918107760821, 3.077260000338522, 0.762460569613922, 3.739484216404241, 3.0676952267413817, 3.338968256208132, 2.5520510544402164, 1.4652267130951446, 0.8284540196680562, 0.8282319416087586, 0.38905651675273767, 3.5663801371374304, 1.254024245081267, 0.33120791737114685, 1.1862158420473827, 1.7765638681171065, 4.231474540224629, 3.3088134017890036, 3.52687554596056, 3.6427332072212333, 2.9369338873888924, 3.0476429474000883, 1.267418931644101, 4.178106924042352, 0.2703539074204814, 0.5540358693124392, 3.8797647192496814, 3.395199198194581, 0.969189485678304, 1.922100986322743, 1.8839018608350433, 4.0244235508136965, 2.0621648553937986, 2.898673059929499, 4.895067128461862, 0.6416141869649372, 4.750428559370307, 3.1139825277752116, 2.4312622823354433, 4.218181420890847, 1.9150803675474997, 3.4343883232248436, 4.404674628891094, 3.9265387036332626, 3.756384542181558, 2.675035891064929, 1.4964775053935115, 4.585357205576538, 3.835931864982478, 1.717664503131831, 4.772415744436187, 0.9884472178496068, 0.05578246544462595, 0.18435960529286866, 3.84182493691277, 2.0180594168295163, 2.3066075057256743, 4.341361070300102], "expected": [6.153464351438007, 1.0720156172590454, 3.0635737180374205, 4.267302079856358, 0.678278296893083, 4.991223573741594, 1.6547153047921723, 2.5108799138589797, 2.070332869898269, 1.864150415603262, 2.4743682587351796, 4.889878609075441, 0.658457600236548, 4.710889115846487, 5.932903058241541, 2.6410833494640498, 0.2383371027490499, 0.17709302398833993, 6.20119239015643, 5.137754691687792, 0.2008878455610368, 1.127476509581575, 6.0985779336902315, 2.0479214374595456, 6.685120076256028, 3.519507402573914, 4.105524210775262, 7.357106012561611, 2.346024337937551, 3.7630093114063867, 4.712965104019939, 0.5058584299811364, 0.03680075355391511, 2.8739025719181517, 1.3066215196802853, 3.059361852808712, 7.586696021210057, 2.831469227376419, 2.4291419931035456, 7.35429464875655, 2.45986713039097, 4.068312836312861, 0.9238212021336916, 5.118271391406893, 1.585223014974906, 2.243901539279995, 0.27938906824901183, 0.23739959243339176, 2.0184252685037514, 2.3765147923064465, 0.17009519361382694, 0.2576161454266747, 1.4629108739177519, 3.132027487467312, 4.987321656018646, 1.128277634952001, 0.4638303329858461, 1.8125915981138336, 0.5171561054032292, 1.3178486433056236, 1.7212826165854866, 0.8235188448176172, 2.1476806051909323, 2.0226627710391543, 4.192075335144277, 5.812335943801446, 2.2912351999178133, 4.407223700748369, 0.8427101516740524, 0.2086313703758827, 3.3151719635355703, 8.07472248005991, 0.5189146548376028, 1.633297264470244, 4.885238556707033, 3.954775754282738, 0.7216906611359679, 0.6141706969284242, 2.9592591877116194, 2.4206970094942384, 0.5500001283495198, 0.652511736894692, 6.48687063224684, 3.57549549745315, 2.2954383207219946, 1.3054390158303866, 1.1846875296669706, 0.044600166500846784, 2.9608866381357735, 3.9009805943074363, 5.713893518756042, 0.7496510987121003, 3.4477246944993065, 0.9999918439467725, 5.832846975797985, 2.917194060910762, 6.449694416786354, 0.7720964253142287, 5.006148412147317, 4.657806588123748, 0.7758184906349673, 4.003059929367492, 5.046638193330051, 4.0777303590312135, 5.221734724133877, 5.36532519023978, 6.556273303881249, 2.31966913135944, 1.7426187753215374, 5.086116347243742, 1.5582961288914523, 0.36830318637615006, 7.08286315068758, 0.72811149362175, 7.2969203237700775, 8.037445313515539, 0.4582490794828619, 0.16240544752573005, 3.240487067741313, 3.6257577280749134, 0.3584506433324627, 0.08058655307417482, 1.4044680272473318, 1.8335343257967383, 0.45783513022064254, 5.273321900390423, 1.5218142072948393, 1.268212745540603, 0.5643563657272155, 0.10592876210309383, 5.042750005199173, 1.4686567207829864, 3.767764075667085, 3.5548096040511994, 0.08633879378897279, 1.192442400066791, 8.432421906566173, 1.338416301502623, 2.1275793659865703, 4.315058495817359, 3.151597021800087, 8.215062975396496, 1.4962816998812982, 0.23885433660955233, 0.369104560975903, 0.037480824030855085, 3.1206296614160545, 5.689536901633191, 1.6030623054006825, 4.7107644595604645, 4.9525186352519945, 0.6384491564256934, 1.655794928899925, 5.169744550785283, 0.036375148000162, 0.05319945091764182, 0.22562547382729028, 6.559073385408319, 0.766881116446061, 1.1136563117052412, 4.583296434805308, 1.6005386180839871, 0.011444817222978442, 4.9704650882615065, 3.730737700592558, 1.906915349125265, 1.6794911654199818, 2.6013741162274937, 4.118218149410067, 1.5964431313314764, 4.281005729032558, 1.347715716835879, 2.226826618260122, 3.191896851934564, 4.421640225082143, 4.842389631073676, 5.496336166245088, 2.597007027198898, 3.578341646015684, 1.76562862655183, 1.2740210415094102, 0.10038006946864847, 1.5432017326079555, 0.9912232821457082, 0.14370043723047668, 0.5951325587872197, 2.176185916539448, 1.8344162261588157, 2.1413857979308215, 1.064990950648232, 1.1353023584764437, 1.5561948471581053, 4.71933088436876, 1.6211038573408802, 6.949448248934339, 6.058608693321233, 1.5141926677237958, 0.8573902532555193, 1.1153820056726467, 2.1677382433665318, 2.477899605341184, 3.3177636564723514, 2.4741858046232283, 0.05874945616315667, 1.7576009789294744, 0.6270019282670068, 2.9801887684744135, 2.8398775325885466, 0.04134244651220088, 1.403641602594762, 0.1678451428644975, 1.0683743096380636, 7.134086687167746, 4.213801129335712, 1.7630188159419267, 7.796223100500032, 4.596217882684294, 0.7333323354062622, 0.005549316758998323, 0.9249619061227746, 2.401241932795228, 2.942384227265294, 0.5887911367592619, 3.1349373841636994, 3.8087586082044456, 1.0052167189573156, 1.3698443175487365, 2.3426124173263987, 3.3499513792486972, 3.4772570776719554, 4.905729358291966, 4.306497429971931, 1.9891804515021962, 2.887688403149964, 7.981197422956507, 0.9529478227274731, 0.8271599238990616, 6.460340558033116, 4.313933764445561, 1.4332849179504963, 3.7259963431710648, 1.4782140590611064, 0.24930989125654368, 1.8808096801848477, 1.85107729358589, 1.946614875847605, 0.7952427921283647, 3.541949563485891, 0.7798794135809786, 0.8517768639261568, 2.3546855727928415, 0.6298667170109559, 1.003844207395196, 3.592364319579725, 8.501162367987417, 0.671097971223569, 1.1814665769243493, 4.509910134212387, 1.7068489130340794, 1.9540778961207654, 1.0344625073771598, 3.0120241206048255, 0.38616552247499475, 1.0155450808776092, 7.536690064881322, 4.665420052215391, 3.0304503362765383, 2.376012367624842, 0.008175078161284275, 2.078145475878474, 0.25352170949968605, 4.608633247647638, 3.861755360877768, 2.88497540083561, 4.5295993220225075, 2.0247868423986106, 6.637750394783183, 2.540878335629393, 0.770318869906733, 0.5765678201646969, 7.189618251260953, 2.5717550771107307, 1.1925126681252771, 3.9309539120698007, 4.453829381849765, 5.428005984657539, 2.9967865322076883, 2.9491444024971307, 1.1210288936832498, 1.981841190706156, 1.3007987749235934, 1.7064555705579179, 4.673675315695911, 2.8966896324111557, 1.3301659380552175, 1.066304203245282, 2.8944015658793933, 2.0228450349364913, 0.8220587568519472, 1.781755961919246, 2.506217189716351, 4.856083520885211, 1.4148893235947322, 0.2440056565368655, 0.32241655509022676, 6.961131906511933, 2.6272565812191986, 2.0722478144994887, 0.35354156782642926, 0.35649938684593035, 0.8346972142932537, 0.3105617526368234, 6.187934613174505, 1.8776616127152017, 1.2562258334333516, 6.481993194110498, 3.9344900494691974, 2.0443952640199474, 5.77777557679836, 0.09160420535533975, 0.5138220093619047, 7.368325194024936, 8.626538278482803, 0.6955184246330776, 1.9554483896301826, 8.206420480135774, 1.8899792362915064, 5.715285209561318, 1.422641053141546, 4.220308987331001, 2.2170899129955366, 3.981208665001344, 1.173066910930111, 3.114799538903752, 2.5092304102837777, 5.368215429107213, 6.957238525586, 3.6362737872043853, 1.5103069896687824, 7.321062167288433, 7.234389057500247, 3.8614861064103563, 6.475364771703801, 1.7353087122584052, 3.5211531488261096, 0.8416509142031424, 3.4316784121452266, 1.413149417242057, 4.167599285283016, 4.714391983204989, 4.751377148046082, 0.11435321259705758, 0.22444745729241625, 6.932958007454772, 0.2439701281764057, 5.040674295224874, 1.5299296740327446, 3.7560085171508812, 0.027600898265050373, 4.481385294121737, 6.147500003804717, 1.5476367219518934, 0.2535054214295294, 7.724004846919298, 1.84172120430624, 3.961611906885905, 5.675480507411421, 5.265966210578058, 2.93669439930318, 4.25883217776181, 1.1436709389890685, 1.3598371779572518, 2.7882065573615895, 2.1087084614468354, 1.8596911824592977, 0.06722557152138776, 1.9147321414273506, 0.5726780078869208, 0.7664419027384736, 0.6261324369875997, 0.7617386919245781, 5.4312024868105135, 0.6778195765026619, 5.083179580393025, 2.9430348671706055, 4.879769322729033, 4.5892671142353825, 7.2627977086785505, 6.380151584473671, 4.842790778151353, 0.4858236836100103, 7.61428904591371, 2.8765827477346155, 1.2833244261221002, 1.8531171878454407, 2.5220754667514935, 4.654851897437925, 5.112749304385452, 2.160413639601537, 5.730063708573738, 7.452263313881048, 3.0333704164136512, 0.6967354219116892, 0.2772048452852473, 3.6479068685519125, 3.9769821713014175, 0.8274441524931104, 2.2236858063442653, 6.2845783562017115, 1.418036379595782, 2.9215040022673966, 1.6296423334534134, 7.4339631753906605, 1.4860750136679675, 2.3383906891565984, 1.7796562545982746, 1.671824028148771, 4.344736252882234, 5.327397695521057, 2.1700757978977823, 1.0823811261352903, 0.8831364042551892, 4.363171711352224, 3.8185410279407948, 4.997627690397176, 8.686515191931266, 1.8911976031934452, 3.4440693074280255, 4.707590218378311, 1.3283661156166717, 1.4109785869960776, 5.690784469213682, 4.087190827810198, 0.11924340934505624, 1.1278751510893592, 2.18251121602771, 0.15161188928731115, 7.148326357659184, 2.5005185138341806, 1.8152047636090511, 1.8409379465988138, 6.802533726193257, 0.2997081452597259, 4.357084765088918, 1.2057464102203357, 3.0248240788597305, 4.423356749422934, 5.118333395401423, 4.28074651039644, 2.0929462115375994, 0.9807942427353739, 1.1234073101612365, 0.3160181806282496, 6.383224598373286, 1.3076171383445472, 0.4508969518928078, 1.8206731380574668, 1.109137824505077, 0.6812235943975752, 3.8839788863494706, 4.664172507496398, 6.3344999031500615, 1.8753477807837367, 5.000386602632303, 1.5770474519318618, 4.586578840852786, 0.31409017726177396, 0.7354806916780703, 5.388209728701861, 5.761409291763556, 0.9928929648173025, 3.3657767275815393, 2.3618584677497996, 4.972832296897223, 3.2688728389113457, 2.712519398913906, 6.46113183254581, 1.0429297563033484, 2.640264405173473, 3.583959326299422, 4.33836305570649, 2.601049736834594, 0.7377329158617156, 3.846482862186457, 7.872607601956696, 5.918285443193599, 6.442172668204373, 3.9894987740993533, 0.04736293850478394, 6.489825372644156, 6.46715765225821, 1.9279572865169583, 5.805095745938541, 1.2149823242359392, 0.0780751548400442, 0.3069286400821877, 5.843147493529484, 0.6406064668184284, 3.9583273966672965, 4.926321015907828]} diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/test.js b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/test.js new file mode 100644 index 000000000000..d4a6746f992e --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/test.js @@ -0,0 +1,184 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var xlog1pyf = require( './../lib' ); + + +// FIXTURES // + +var smallSmall = require( './fixtures/python/small_small.json' ); +var smallLarge = require( './fixtures/python/small_large.json' ); +var largeSmall = require( './fixtures/python/large_small.json' ); +var largeLarge = require( './fixtures/python/large_large.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof xlog1pyf, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function returns `NaN` when provided `NaN` for any parameter', function test( t ) { + var out = xlog1pyf( NaN, 2.0 ); + t.strictEqual( isnan( out ), true, 'returns expected value' ); + + out = xlog1pyf( 0.0, NaN ); + t.strictEqual( isnan( out ), true, 'returns expected value' ); + + out = xlog1pyf( 3.4, NaN ); + t.strictEqual( isnan( out ), true, 'returns expected value' ); + + out = xlog1pyf( NaN, NaN ); + t.strictEqual( isnan( out ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `0` when `x = 0` and `y` is a number', function test( t ) { + var out = xlog1pyf( 0.0, 2.0 ); + t.strictEqual( out, 0.0, 'returns expected value' ); + + out = xlog1pyf( 0.0, 0.0 ); + t.strictEqual( out, 0.0, 'returns expected value' ); + + out = xlog1pyf( 0.0, -1.0 ); + t.strictEqual( out, 0.0, 'returns expected value' ); + + out = xlog1pyf( 0.0, -3.0 ); + t.strictEqual( out, 0.0, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function evaluates `x * ln(y+1)` for small `x` and `y`', function test( t ) { + var expected; + var delta; + var out; + var tol; + var x; + var y; + var i; + var e; + + expected = smallSmall.expected; + x = smallSmall.x; + y = smallSmall.y; + for ( i = 0; i < x.length; i++ ) { + e = f32( expected[i] ); + out = xlog1pyf( x[i], y[i] ); + if ( out === e ) { + t.strictEqual( out, e, 'x: '+x[i]+', out: '+out+', expected: '+e ); + } else { + delta = abs( out - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. v: '+out+'. E: '+e+' Δ: '+delta+'. tol: '+tol ); + } + } + t.end(); +}); + +tape( 'the function evaluates `x * ln(y+1)` for small `x` and large `y`', function test( t ) { + var expected; + var delta; + var out; + var tol; + var x; + var y; + var i; + var e; + + expected = smallLarge.expected; + x = smallLarge.x; + y = smallLarge.y; + for ( i = 0; i < x.length; i++ ) { + e = f32( expected[i] ); + out = xlog1pyf( x[i], y[i] ); + if ( out === e ) { + t.strictEqual( out, e, 'x: '+x[i]+', out: '+out+', expected: '+e ); + } else { + delta = abs( out - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. v: '+out+'. E: '+e+' Δ: '+delta+'. tol: '+tol ); + } + } + t.end(); +}); + +tape( 'the function evaluates `x * ln(y+1)` for large `x` and small `y`', function test( t ) { + var expected; + var delta; + var out; + var tol; + var x; + var y; + var i; + var e; + + expected = largeSmall.expected; + x = largeSmall.x; + y = largeSmall.y; + for ( i = 0; i < x.length; i++ ) { + e = f32( expected[i] ); + out = xlog1pyf( x[i], y[i] ); + if ( out === e ) { + t.strictEqual( out, e, 'x: '+x[i]+', out: '+out+', expected: '+e ); + } else { + delta = abs( out - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. v: '+out+'. E: '+e+' Δ: '+delta+'. tol: '+tol ); + } + } + t.end(); +}); + +tape( 'the function evaluates `x * ln(y+1)` for large `x` and `y`', function test( t ) { + var expected; + var delta; + var out; + var tol; + var x; + var y; + var i; + var e; + + expected = largeLarge.expected; + x = largeLarge.x; + y = largeLarge.y; + for ( i = 0; i < x.length; i++ ) { + e = f32( expected[i] ); + out = xlog1pyf( x[i], y[i] ); + if ( out === e ) { + t.strictEqual( out, e, 'x: '+x[i]+', out: '+out+', expected: '+e ); + } else { + delta = abs( out - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. v: '+out+'. E: '+e+' Δ: '+delta+'. tol: '+tol ); + } + } + t.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/test.native.js new file mode 100644 index 000000000000..349ea454fa06 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/xlog1pyf/test/test.native.js @@ -0,0 +1,193 @@ +/** +* @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 isnan = require( '@stdlib/math/base/assert/is-nan' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var tryRequire = require( '@stdlib/utils/try-require' ); + + +// FIXTURES // + +var smallSmall = require( './fixtures/python/small_small.json' ); +var smallLarge = require( './fixtures/python/small_large.json' ); +var largeSmall = require( './fixtures/python/large_small.json' ); +var largeLarge = require( './fixtures/python/large_large.json' ); + + +// VARIABLES // + +var xlog1pyf = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( xlog1pyf instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof xlog1pyf, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function returns `NaN` when provided `NaN` for any parameter', opts, function test( t ) { + var out = xlog1pyf( NaN, 2.0 ); + t.strictEqual( isnan( out ), true, 'returns expected value' ); + + out = xlog1pyf( 0.0, NaN ); + t.strictEqual( isnan( out ), true, 'returns expected value' ); + + out = xlog1pyf( 3.4, NaN ); + t.strictEqual( isnan( out ), true, 'returns expected value' ); + + out = xlog1pyf( NaN, NaN ); + t.strictEqual( isnan( out ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `0` when `x = 0` and `y` is a number', opts, function test( t ) { + var out = xlog1pyf( 0.0, 2.0 ); + t.strictEqual( out, 0.0, 'returns expected value' ); + + out = xlog1pyf( 0.0, 0.0 ); + t.strictEqual( out, 0.0, 'returns expected value' ); + + out = xlog1pyf( 0.0, -1.0 ); + t.strictEqual( out, 0.0, 'returns expected value' ); + + out = xlog1pyf( 0.0, -3.0 ); + t.strictEqual( out, 0.0, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function evaluates `x * ln(y+1)` for small `x` and `y`', opts, function test( t ) { + var expected; + var delta; + var out; + var tol; + var x; + var y; + var i; + var e; + + expected = smallSmall.expected; + x = smallSmall.x; + y = smallSmall.y; + for ( i = 0; i < x.length; i++ ) { + e = f32( expected[i] ); + out = xlog1pyf( x[i], y[i] ); + if ( out === e ) { + t.strictEqual( out, e, 'x: '+x[i]+', out: '+out+', expected: '+e ); + } else { + delta = abs( out - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. v: '+out+'. E: '+e+' Δ: '+delta+'. tol: '+tol ); + } + } + t.end(); +}); + +tape( 'the function evaluates `x * ln(y+1)` for small `x` and large `y`', opts, function test( t ) { + var expected; + var delta; + var out; + var tol; + var x; + var y; + var i; + var e; + + expected = smallLarge.expected; + x = smallLarge.x; + y = smallLarge.y; + for ( i = 0; i < x.length; i++ ) { + e = f32( expected[i] ); + out = xlog1pyf( x[i], y[i] ); + if ( out === e ) { + t.strictEqual( out, e, 'x: '+x[i]+', out: '+out+', expected: '+e ); + } else { + delta = abs( out - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. v: '+out+'. E: '+e+' Δ: '+delta+'. tol: '+tol ); + } + } + t.end(); +}); + +tape( 'the function evaluates `x * ln(y+1)` for large `x` and small `y`', opts, function test( t ) { + var expected; + var delta; + var out; + var tol; + var x; + var y; + var i; + var e; + + expected = largeSmall.expected; + x = largeSmall.x; + y = largeSmall.y; + for ( i = 0; i < x.length; i++ ) { + e = f32( expected[i] ); + out = xlog1pyf( x[i], y[i] ); + if ( out === e ) { + t.strictEqual( out, e, 'x: '+x[i]+', out: '+out+', expected: '+e ); + } else { + delta = abs( out - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. v: '+out+'. E: '+e+' Δ: '+delta+'. tol: '+tol ); + } + } + t.end(); +}); + +tape( 'the function evaluates `x * ln(y+1)` for large `x` and `y`', opts, function test( t ) { + var expected; + var delta; + var out; + var tol; + var x; + var y; + var i; + var e; + + expected = largeLarge.expected; + x = largeLarge.x; + y = largeLarge.y; + for ( i = 0; i < x.length; i++ ) { + e = f32( expected[i] ); + out = xlog1pyf( x[i], y[i] ); + if ( out === e ) { + t.strictEqual( out, e, 'x: '+x[i]+', out: '+out+', expected: '+e ); + } else { + delta = abs( out - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. v: '+out+'. E: '+e+' Δ: '+delta+'. tol: '+tol ); + } + } + t.end(); +});