diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/LICENSE b/lib/node_modules/@stdlib/math/base/special/log10f/LICENSE new file mode 100644 index 000000000000..a7566ad6f2c3 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/LICENSE @@ -0,0 +1,192 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +DEPENDENCIES & ATTRIBUTION + +The library links against the following external libraries or contains +implementations from the following external libraries, which have their own +licenses: + +* FreeBSD + +Copyright (C) 1993-2004 by Sun Microsystems, Inc. All rights reserved. + +Developed at SunPro, a Sun Microsystems, Inc. business. +Permission to use, copy, modify, and distribute this +software is freely granted, provided that this notice +is preserved. diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/README.md b/lib/node_modules/@stdlib/math/base/special/log10f/README.md new file mode 100644 index 000000000000..d8be37ae9b50 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/README.md @@ -0,0 +1,233 @@ + + +# Common Logarithm + +> Evaluate the [common logarithm][common-logarithm]. + +
+ +The [common logarithm][common-logarithm] (logarithm with base 10) is defined for any single-precision floating-point number as + + + +```math +\quad \log_{10} \left( x \right) = y \quad \text{such that} \quad 10^y = x +``` + + + + + +
+ + + +
+ +## Usage + +```javascript +var log10f = require( '@stdlib/math/base/special/log10f' ); +``` + +#### log10f( x ) + +Evaluates the [common logarithm][common-logarithm]. + +```javascript +var v = log10f( 100.0 ); +// returns 2.0 + +v = log10f( 8.0 ); +// returns ~0.903 + +v = log10f( 0.0 ); +// returns -Infinity + +v = log10f( Infinity ); +// returns Infinity + +v = log10f( NaN ); +// returns NaN +``` + +For negative numbers, the [common logarithm][common-logarithm] is **not** defined. + +```javascript +var v = log10f( -4.0 ); +// returns NaN +``` + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var log10f = require( '@stdlib/math/base/special/log10f' ); + +var opts = { + 'dtype': 'float32' +}; +var x = discreteUniform( 100, 0, 100, opts ); + +logEachMap( 'logf10(%f) = %0.4f', x, log10f ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/log10f.h" +``` + +#### stdlib_base_log10f( x ) + +Evaluates the [common logarithm][common-logarithm]. + +```c +float out = stdlib_base_log10f( 100.0 ); +// returns 2.0 + +out = stdlib_base_log10f( 8.0 ); +// returns ~0.903 +``` + +The function accepts the following arguments: + +- **x**: `[in] float` input value. + +```c +float stdlib_base_log10f( const float x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/log10f.h" +#include +#include + +int main( void ) { + double x; + double v; + int i; + + for ( i = 0; i < 100; i++ ) { + x = ( (double)rand() / (double)RAND_MAX ) * 100.0; + v = stdlib_base_log10f( x ); + printf( "log10f(%lf) = %lf\n", x, v ); + } +} +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/benchmark.js new file mode 100644 index 000000000000..48c05b7370e6 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/benchmark.js @@ -0,0 +1,82 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var log10f = require( './../lib' ); + + +// VARIABLES // + +var opts = { + 'skip': ( typeof Math.log10 !== 'function' ) // eslint-disable-line stdlib/no-builtin-math +}; + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var x; + var y; + var i; + + x = uniform( 100, 0.0, 1000.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = log10f( x[ i%x.length ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); + +bench( format( '%s::built-in', pkg ), opts, function benchmark( b ) { + var x; + var y; + var i; + + x = uniform( 100, 0.0, 1000.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = Math.log10( x[ i%x.length ] ); // eslint-disable-line stdlib/no-builtin-math + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/benchmark.native.js new file mode 100644 index 000000000000..13f750505bcd --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/benchmark.native.js @@ -0,0 +1,62 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var log10f = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( log10f instanceof Error ) +}; + + +// MAIN // + +bench( format( '%s::native', pkg ), opts, function benchmark( b ) { + var x; + var y; + var i; + + x = uniform( 100, 0.0, 1000.0 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = log10f( x[ i%x.length ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/c/native/Makefile b/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/c/native/Makefile new file mode 100644 index 000000000000..a4bd7b38fd74 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/c/native/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2025 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/log10f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/c/native/benchmark.c new file mode 100644 index 000000000000..5619c1767c62 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/benchmark/c/native/benchmark.c @@ -0,0 +1,136 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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/log10f.h" +#include +#include +#include +#include +#include + +#define NAME "log10f" +#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_float( void ) { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + double elapsed; + double t; + float x[ 100 ]; + float y; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 10000.0f * rand_float() ) - 0.0f; + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_log10f( x[ i%100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y != y ) { + printf( "should not return NaN\n" ); + } + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::native::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/binding.gyp b/lib/node_modules/@stdlib/math/base/special/log10f/binding.gyp new file mode 100644 index 000000000000..68a1ca11d160 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/binding.gyp @@ -0,0 +1,170 @@ +# @license Apache-2.0 +# +# Copyright (c) 2025 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/log10f/docs/image/equation_common_logarithm.svg b/lib/node_modules/@stdlib/math/base/special/log10f/docs/image/equation_common_logarithm.svg new file mode 100644 index 000000000000..a072ded164ac --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/docs/image/equation_common_logarithm.svg @@ -0,0 +1,56 @@ + +log Subscript 10 Baseline left-parenthesis x right-parenthesis equals y such that 10 Superscript y Baseline equals x + + + \ No newline at end of file diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/log10f/docs/repl.txt new file mode 100644 index 000000000000..392a333cd303 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/docs/repl.txt @@ -0,0 +1,34 @@ + +{{alias}}( x ) + Evaluates the common logarithm (base 10) for floating number. + + For negative numbers, the common logarithm is not defined. + + Parameters + ---------- + x: number + Input value. + + Returns + ------- + y: number + Function value. + + Examples + -------- + > var y = {{alias}}( 100.0 ) + 2.0 + > y = {{alias}}( 8.0 ) + ~0.9 + > y = {{alias}}( 0.0 ) + -Infinity + > y = {{alias}}( {{alias:@stdlib/constants/float32/pinf}} ) + Infinity + > y = {{alias}}( NaN ) + NaN + > y = {{alias}}( -4.0 ) + NaN + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/log10f/docs/types/index.d.ts new file mode 100644 index 000000000000..bece6afd9d0c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/docs/types/index.d.ts @@ -0,0 +1,60 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 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 + +/** +* Evaluates the common logarithm (base ten). +* +* ## Notes +* +* - For negative numbers, the common logarithm is not defined. +* +* @param x - input value +* @returns function value +* +* @example +* var v = log10f( 4.0 ); +* // returns ~0.602 +* +* @example +* var v = log10f( 8.0 ); +* // returns ~0.903 +* +* @example +* var v = log10f( 0.0 ); +* // returns -Infinity +* +* @example +* var v = log10f( Infinity ); +* // returns Infinity +* +* @example +* var v = log10f( NaN ); +* // returns NaN +* +* @example +* var v = log10f( -4.0 ); +* // returns NaN +*/ +declare function log10f( x: number ): number; + + +// EXPORTS // + +export = log10f; diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/log10f/docs/types/test.ts new file mode 100644 index 000000000000..82b7ce9f7457 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/docs/types/test.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 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 log10f = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + log10f( 8 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + log10f( true ); // $ExpectError + log10f( false ); // $ExpectError + log10f( null ); // $ExpectError + log10f( undefined ); // $ExpectError + log10f( '5' ); // $ExpectError + log10f( [] ); // $ExpectError + log10f( {} ); // $ExpectError + log10f( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + log10f(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/examples/c/Makefile b/lib/node_modules/@stdlib/math/base/special/log10f/examples/c/Makefile new file mode 100644 index 000000000000..25ced822f96a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/examples/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2025 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/log10f/examples/c/example.c b/lib/node_modules/@stdlib/math/base/special/log10f/examples/c/example.c new file mode 100644 index 000000000000..345e33b665b8 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/examples/c/example.c @@ -0,0 +1,33 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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/log10f.h" +#include +#include + +int main( void ) { + float out; + float x; + int i; + + for ( i = 0; i < 100; i++ ) { + x = ( (float)rand() / (float)RAND_MAX ) * 100.0f; + out = stdlib_base_log10f( x ); + printf( "log10f(%f) = %f\n", x, out ); + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/examples/index.js b/lib/node_modules/@stdlib/math/base/special/log10f/examples/index.js new file mode 100644 index 000000000000..44c7d5a55133 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/examples/index.js @@ -0,0 +1,30 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var log10f = require( './../lib' ); + +var opts = { + 'dtype': 'float32' +}; +var x = discreteUniform( 100, 0, 100, opts ); + +logEachMap( 'log10f(%0.4f) = %0.4f', x, log10f ); diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/include.gypi b/lib/node_modules/@stdlib/math/base/special/log10f/include.gypi new file mode 100644 index 000000000000..ecfaf82a3279 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2025 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': [ + '= HIGH_MAX_NORMAL_EXP ) { + return f32( x + x ); + } + if ( hx === HIGH_BIASED_EXP_0 ) { + return 0; + } + k = f32( k + f32( ( ( hx >> 23 ) - FLOAT32_EXPONENT_BIAS ) | 0 ) ); + hx &= FLOAT32_SIGNIFICAND_MASK; + i = f32( ( ( hx + 0x4afb0d ) & HIGH_MAX_NORMAL_EXP ) | 0 ); + + // Normalize x or x/2.... + x = fromWordf( hx | ( i ^ HIGH_BIASED_EXP_0 ) ); + k = f32( k + ( ( i >> 23 ) | 0 ) ); + y = f32( k ); + f = f32( x - 1.0 ); + hfsq = f32( 0.5 * f32( f * f ) ); + r = kernelLog1pf( f ); + hi = f32( f - hfsq ); + hx = toWordf( hi ) | 0; + hi = fromWordf( hx & 0xfffff000 ); + lo = f32( f32( f - hi ) - f32( hfsq ) + f32( r ) ); + return f32( f32( f32( y * LOG10_2LO ) + f32( f32( lo + hi ) * IVLN10LO ) + f32( lo * IVLN10HI ) + f32( hi * IVLN10HI ) + f32( y * LOG10_2HI ) ) ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = log10f; diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/lib/native.js b/lib/node_modules/@stdlib/math/base/special/log10f/lib/native.js new file mode 100644 index 000000000000..33354b9b26fb --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/lib/native.js @@ -0,0 +1,66 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var addon = require( './../src/addon.node' ); + + +// MAIN // + +/** +* Evaluates the common logarithm (base ten) for a single precision floating point. +* +* @private +* @param {NonNegativeNumber} x - input value +* @returns {number} function value +* +* @example +* var v = log10f( 4.0 ); +* // returns ~0.602 +* +* @example +* var v = log10f( 8.0 ); +* // returns ~0.903 +* +* @example +* var v = log10f( 0.0 ); +* // returns -Infinity +* +* @example +* var v = log10f( Infinity ); +* // returns Infinity +* +* @example +* var v = log10f( NaN ); +* // returns NaN +* +* @example +* var v = log10f( -4.0 ); +* // returns NaN +*/ +function log10f( x ) { + return addon( x ); +} + + +// EXPORTS // + +module.exports = log10f; diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/manifest.json b/lib/node_modules/@stdlib/math/base/special/log10f/manifest.json new file mode 100644 index 000000000000..cdb41464bb1b --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/manifest.json @@ -0,0 +1,98 @@ +{ + "options": { + "task": "build" + }, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": true + }, + { + "field": "include", + "resolve": true, + "relative": true + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "task": "build", + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/math/base/napi/unary", + "@stdlib/number/float32/base/to-word", + "@stdlib/number/float32/base/from-word", + "@stdlib/constants/float32/ninf", + "@stdlib/constants/float32/exponent-bias", + "@stdlib/constants/float32/exponent-mask", + "@stdlib/constants/float32/abs-mask", + "@stdlib/constants/float32/significand-mask", + "@stdlib/math/base/special/kernel-log1pf", + "@stdlib/math/base/assert/is-nanf" + ] + }, + { + "task": "benchmark", + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/number/float32/base/to-word", + "@stdlib/number/float32/base/from-word", + "@stdlib/constants/float32/ninf", + "@stdlib/constants/float32/exponent-bias", + "@stdlib/constants/float32/exponent-mask", + "@stdlib/constants/float32/abs-mask", + "@stdlib/constants/float32/significand-mask", + "@stdlib/math/base/special/kernel-log1pf", + "@stdlib/math/base/assert/is-nanf" + ] + }, + { + "task": "examples", + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/number/float32/base/to-word", + "@stdlib/number/float32/base/from-word", + "@stdlib/constants/float32/ninf", + "@stdlib/constants/float32/exponent-bias", + "@stdlib/constants/float32/exponent-mask", + "@stdlib/constants/float32/abs-mask", + "@stdlib/constants/float32/significand-mask", + "@stdlib/constants/float32/significand-mask", + "@stdlib/math/base/special/kernel-log1pf", + "@stdlib/math/base/assert/is-nanf" + ] + } + ] +} + diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/package.json b/lib/node_modules/@stdlib/math/base/special/log10f/package.json new file mode 100644 index 000000000000..a832cc9a2e96 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/package.json @@ -0,0 +1,143 @@ +{ + "name": "@stdlib/math/base/special/log10f", + "version": "0.0.0", + "description": "Evaluate the Common logarithm of a single-precision floating-point number.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "gypfile": true, + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "include": "./include", + "lib": "./lib", + "scripts": "./scripts", + "src": "./src", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "math.log", + "log10f", + "natural", + "logarithm", + "log" + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "log10f", + "alias": "log10f", + "pkg_desc": "evaluate the Common logarithm of a single-precision floating-point number", + "desc": "evaluates the Common logarithm of a single-precision floating-point number", + "short_desc": "Common logarithm", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": 0, + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + 0, + 100 + ] + }, + "example_values": [ + 0, + 0.01, + 0.25, + 0.5, + 1, + 2, + 3, + 4, + 9, + 16, + 25, + 36, + 49, + 64, + 81, + 100, + 0.1, + 10, + 50, + 99.99 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "comoon logarithm", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "log10f", + "common", + "base 10", + "logarithm", + "log" + ], + "extra_keywords": [ + "math.log10" + ] + } + } +} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/scripts/evalpoly.js b/lib/node_modules/@stdlib/math/base/special/log10f/scripts/evalpoly.js new file mode 100644 index 000000000000..8693b51230d2 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/scripts/evalpoly.js @@ -0,0 +1,115 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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. +*/ + +/* +* This script compiles modules for evaluating polynomial functions. If any polynomial coefficients change, this script should be rerun to update the compiled files. +*/ +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var readFileSync = require( '@stdlib/fs/read-file' ).sync; +var writeFileSync = require( '@stdlib/fs/write-file' ).sync; +var substringBefore = require( '@stdlib/string/substring-before' ); +var substringAfter = require( '@stdlib/string/substring-after' ); +var format = require( '@stdlib/string/format' ); +var compileC = require( '@stdlib/math/base/tools/evalpoly-compile-c' ); + + +// VARIABLES // + +// Polynomial coefficients ordered in ascending degree... +var P = [ + 3.999999999940941908e-01, // 3FD99999 9997FA04 + 2.222219843214978396e-01, // 3FCC71C5 1D8E78AF + 1.531383769920937332e-01 // 3FC39A09 D078C69F +]; +var Q = [ + 6.666666666666735130e-01, // 3FE55555 55555593 + 2.857142874366239149e-01, // 3FD24924 94229359 + 1.818357216161805012e-01, // 3FC74664 96CB03DE + 1.479819860511658591e-01 // 3FC2F112 DF3E5244 +]; + + +// FUNCTIONS // + +/** +* Inserts a compiled function into file content. +* +* @private +* @param {string} text - source content +* @param {string} id - function identifier +* @param {string} str - function string +* @returns {string} updated content +*/ +function insert( text, id, str ) { + var before; + var after; + var begin; + var end; + + begin = '// BEGIN: '+id; + end = '// END: '+id; + + before = substringBefore( text, begin ); + after = substringAfter( text, end ); + + return format( '%s// BEGIN: %s\n\n%s\n%s%s', before, id, str, end, after ); +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var fpath; + var copts; + var opts; + var file; + var str; + + opts = { + 'encoding': 'utf8' + }; + + copts = { + 'dtype': 'float', + 'name': '' + }; + + fpath = resolve( __dirname, '..', 'src', 'main.c' ); + file = readFileSync( fpath, opts ); + + copts.name = 'polyval_p'; + str = compileC( P, copts ); + file = insert( file, copts.name, str ); + + copts.name = 'polyval_q'; + str = compileC( Q, copts ); + file = insert( file, copts.name, str ); + + writeFileSync( fpath, file, opts ); +} + +main(); diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/src/Makefile b/lib/node_modules/@stdlib/math/base/special/log10f/src/Makefile new file mode 100644 index 000000000000..7733b6180cb4 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/src/Makefile @@ -0,0 +1,70 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2025 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/log10f/src/addon.c b/lib/node_modules/@stdlib/math/base/special/log10f/src/addon.c new file mode 100644 index 000000000000..7bb138b8d94d --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/src/addon.c @@ -0,0 +1,22 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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/log10f.h" +#include "stdlib/math/base/napi/unary.h" + +STDLIB_MATH_BASE_NAPI_MODULE_F_F( stdlib_base_log10f ) diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/src/main.c b/lib/node_modules/@stdlib/math/base/special/log10f/src/main.c new file mode 100644 index 000000000000..d3765edf3e2f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/src/main.c @@ -0,0 +1,122 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +* +* ## Notice +* +* The following copyright and license were part of the original implementation available as part of [FreeBSD]{@link https://svnweb.freebsd.org/base/release/12.2.0/lib/msun/src/e_log10f.c}. The implementation follows the original, but has been modified for JavaScript. +* +* ```text +* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. +* +* Developed at SunPro, a Sun Microsystems, Inc. business. +* Permission to use, copy, modify, and distribute this +* software is freely granted, provided that this notice +* is preserved. +* ``` +*/ + +#include "stdlib/math/base/special/log10f.h" +#include "stdlib/math/base/assert/is_nanf.h" +#include "stdlib/number/float32/base/to_word.h" +#include "stdlib/constants/float32/abs_mask.h" +#include "stdlib/constants/float32/ninf.h" +#include "stdlib/constants/float32/exponent_bias.h" +#include "stdlib/constants/float32/significand_mask.h" +#include "stdlib/number/float32/base/from_word.h" +#include "stdlib/math/base/special/kernel_log1pf.h" +#include + +static const float TWO25 = 3.3554432000e+07; // 0x4c000000 +static const float IVLN10HI = 4.3432617188e-01; // 0x3ede6000 +static const float IVLN10LO = -3.1689971365e-05; // 0xb804ead9 +static const float LOG10_2HI = 3.0102920532e-01; // 0x3e9a2080 +static const float LOG10_2LO = 7.9034151668e-07; // 0x355427db +static const int32_t HIGH_MAX_NORMAL_EXP = 0x7f800000; +static const int32_t HIGH_MIN_NORMAL_EXP = 0x00800000; +static const int32_t HIGH_BIASED_EXP_0 = 0x3f800000; + +/** +* Evaluates the common logarithm (base ten) of a single-precision floating-point number. +* +* @param x input value +* @return output value +* +* @example +* float out = stdlib_base_log10f( 4.0 ); +* // returns ~0.602 +*/ +float stdlib_base_log10f( float x ){ + int32_t i; + int32_t k; + uint32_t hx; + float xc; + int32_t ihx; + float y; + float hfsq; + float r; + uint32_t hi; + float lo; + float f; + float hii; + + if ( stdlib_base_is_nanf( x ) || x < 0.0 ) { + return 0.0 / 0.0; // NaN + } + xc = x; + stdlib_base_float32_to_word( xc, &hx ); + ihx = (int32_t)hx; + k=0; + if ( ihx < HIGH_MIN_NORMAL_EXP ) { + // Case: x < 2**-126 + if ( ( ihx & STDLIB_CONSTANT_FLOAT32_ABS_MASK ) == 0 ) { + return STDLIB_CONSTANT_FLOAT32_NINF; + } + k -= 25; + + // Subnormal number, scale up x: + xc *= TWO25; + stdlib_base_float32_to_word( xc, &hx ); + ihx = (int32_t)hx; + } + if ( ihx >= HIGH_MAX_NORMAL_EXP ) { + return xc + xc ; + } + // Case: log(1) = +0 + if ( ihx == HIGH_BIASED_EXP_0 ) { + return 0; + } + k += ( ( ihx>> 23 ) - STDLIB_CONSTANT_FLOAT32_EXPONENT_BIAS ); + ihx &= STDLIB_CONSTANT_FLOAT32_SIGNIFICAND_MASK; + i = ( ihx + 0x4afb0d ) & HIGH_MIN_NORMAL_EXP; + // Normalize x or x/2... + stdlib_base_float32_from_word( (uint32_t)( ihx | ( i ^ HIGH_BIASED_EXP_0 ) ), &xc ); + k += ( i >> 23 ); + y = (float)k; + f = xc - (float)1.0; + hfsq = (float)0.5*f*f; + r = stdlib_base_kernel_log1pf( f ); + if ( sizeof( float_t ) > sizeof( float ) ) { + return ( r - hfsq + f )*( (float_t)IVLN10LO + IVLN10HI ) + y*( (float_t)LOG10_2LO + LOG10_2HI ); + } + hi = f - hfsq; + stdlib_base_float32_to_word( ihx, &hi ); + hii= (float)hi; + stdlib_base_float32_from_word( (uint32_t)( ihx & 0xfffff000 ) , &hii ); + lo = ( f - hii ) - hfsq + r ; + return y * LOG10_2LO + ( lo + hii ) * IVLN10LO + lo * IVLN10HI + hii * IVLN10HI + y * LOG10_2HI; +} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000000..308c3be89c85 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/REQUIRE @@ -0,0 +1,2 @@ +julia 1.5 +JSON 0.21 diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/large_positive.json b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/large_positive.json new file mode 100644 index 000000000000..0aa25a3e5331 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/large_positive.json @@ -0,0 +1 @@ +{"expected":[1.30103,1.3023335,1.3036332,1.3049289,1.3062208,1.307509,1.3087932,1.3100736,1.3113503,1.3126233,1.3138926,1.3151581,1.31642,1.3176782,1.3189328,1.3201838,1.3214312,1.322675,1.3239152,1.3251519,1.3263851,1.3276148,1.3288411,1.3300638,1.3312832,1.3324991,1.3337117,1.3349209,1.3361267,1.3373291,1.3385284,1.3397242,1.3409168,1.3421061,1.3432921,1.3444749,1.3456546,1.346831,1.3480042,1.3491744,1.3503412,1.351505,1.3526658,1.3538234,1.3549778,1.3561294,1.3572778,1.3584232,1.3595656,1.3607049,1.3618413,1.3629748,1.3641052,1.3652328,1.3663574,1.3674792,1.368598,1.369714,1.3708271,1.3719373,1.3730447,1.3741493,1.3752512,1.3763502,1.3774464,1.3785399,1.3796307,1.3807186,1.3818039,1.3828865,1.3839664,1.3850436,1.3861182,1.38719,1.3882593,1.3893259,1.3903899,1.3914514,1.3925102,1.3935664,1.3946201,1.3956712,1.3967198,1.3977659,1.3988094,1.3998505,1.400889,1.4019252,1.4029588,1.40399,1.4050187,1.406045,1.4070688,1.4080904,1.4091095,1.4101261,1.4111404,1.4121524,1.413162,1.4141692,1.4151741,1.4161768,1.4171771,1.4181751,1.4191707,1.4201642,1.4211553,1.4221443,1.4231309,1.4241153,1.4250976,1.4260775,1.4270552,1.4280308,1.4290043,1.4299755,1.4309446,1.4319113,1.4328761,1.4338387,1.4347992,1.4357576,1.4367138,1.437668,1.43862,1.43957,1.4405179,1.4414637,1.4424075,1.4433492,1.444289,1.4452266,1.4461622,1.4470959,1.4480275,1.4489571,1.4498848,1.4508104,1.4517342,1.4526559,1.4535757,1.4544935,1.4554094,1.4563234,1.4572355,1.4581456,1.4590539,1.4599602,1.4608647,1.4617673,1.4626681,1.4635669,1.4644638,1.465359,1.4662523,1.4671438,1.4680334,1.4689213,1.4698073,1.4706914,1.4715738,1.4724545,1.4733334,1.4742104,1.4750857,1.4759593,1.4768311,1.4777011,1.4785694,1.4794359,1.4803008,1.4811639,1.4820254,1.482885,1.4837431,1.4845994,1.485454,1.4863069,1.4871582,1.4880078,1.4888558,1.4897021,1.4905467,1.4913898,1.4922311,1.493071,1.493909,1.4947456,1.4955804,1.4964138,1.4972456,1.4980756,1.4989042,1.4997312,1.5005566,1.5013803,1.5022026,1.5030234,1.5038425,1.5046601,1.5054762,1.5062908,1.5071038,1.5079154,1.5087253,1.5095338,1.5103408,1.5111463,1.5119503,1.5127528,1.5135539,1.5143534,1.5151515,1.5159482,1.5167433,1.517537,1.5183293,1.5191201,1.5199095,1.5206975,1.521484,1.5222691,1.5230528,1.5238351,1.5246159,1.5253954,1.5261735,1.5269501,1.5277255,1.5284994,1.5292718,1.530043,1.5308129,1.5315813,1.5323484,1.5331141,1.5338784,1.5346415,1.5354033,1.5361636,1.5369226,1.5376803,1.5384368,1.5391918,1.5399456,1.540698,1.5414492,1.542199,1.5429476,1.5436949,1.5444409,1.5451856,1.5459291,1.5466713,1.5474122,1.5481517,1.5488901,1.5496273,1.5503632,1.5510979,1.5518312,1.5525634,1.5532943,1.554024,1.5547525,1.5554798,1.5562057,1.5569307,1.5576543,1.5583767,1.5590979,1.5598179,1.5605367,1.5612544,1.5619708,1.5626861,1.5634003,1.5641131,1.5648249,1.5655355,1.566245,1.5669533,1.5676603,1.5683664,1.5690712,1.5697749,1.5704775,1.5711788,1.5718791,1.5725783,1.5732763,1.5739733,1.574669,1.5753638,1.5760573,1.5767498,1.5774411,1.5781314,1.5788206,1.5795087,1.5801957,1.5808816,1.5815665,1.5822501,1.5829328,1.5836145,1.5842949,1.5849744,1.5856528,1.5863302,1.5870064,1.5876818,1.5883559,1.5890291,1.5897012,1.5903722,1.5910423,1.5917113,1.5923792,1.5930462,1.5937121,1.594377,1.5950409,1.5957038,1.5963657,1.5970266,1.5976864,1.5983453,1.5990031,1.5996599,1.6003158,1.6009707,1.6016246,1.6022775,1.6029295,1.6035804,1.6042304,1.6048794,1.6055274,1.6061745,1.6068206,1.6074657,1.60811,1.6087532,1.6093955,1.6100368,1.6106772,1.6113167,1.6119552,1.6125928,1.6132294,1.6138651,1.6144999,1.6151338,1.6157666,1.6163987,1.6170298,1.6176599,1.6182892,1.6189176,1.619545,1.6201715,1.6207972,1.6214219,1.6220458,1.6226686,1.6232908,1.6239119,1.6245322,1.6251515,1.6257701,1.6263877,1.6270044,1.6276203,1.6282353,1.6288495,1.6294627,1.6300751,1.6306866,1.6312973,1.6319071,1.6325161,1.6331242,1.6337315,1.6343379,1.6349435,1.6355482,1.6361521,1.6367551,1.6373574,1.6379588,1.6385592,1.639159,1.6397579,1.640356,1.6409532,1.6415496,1.6421452,1.64274,1.643334,1.6439271,1.6445194,1.6451111,1.6457018,1.6462917,1.6468809,1.6474692,1.6480567,1.6486435,1.6492295,1.6498146,1.650399,1.6509826,1.6515654,1.6521475,1.6527287,1.6533092,1.653889,1.6544678,1.655046,1.6556234,1.6562,1.6567758,1.657351,1.6579254,1.6584989,1.6590717,1.6596438,1.6602151,1.6607857,1.6613555,1.6619246,1.6624929,1.6630604,1.6636273,1.6641934,1.6647588,1.6653234,1.6658872,1.6664505,1.6670129,1.6675746,1.6681355,1.6686958,1.6692554,1.6698142,1.6703722,1.6709297,1.6714864,1.6720423,1.6725975,1.6731521,1.6737059,1.6742591,1.6748115,1.6753632,1.6759142,1.6764646,1.6770141,1.6775631,1.6781113,1.6786588,1.6792057,1.6797519,1.6802974,1.6808422,1.6813862,1.6819297,1.6824725,1.6830145,1.683556,1.6840967,1.6846367,1.6851761,1.6857148,1.6862528,1.6867902,1.687327,1.687863,1.6883984,1.6889331,1.6894672,1.6900007,1.6905334,1.6910655,1.691597,1.6921278,1.692658,1.6931875,1.6937164,1.6942446,1.6947722,1.6952991,1.6958255,1.6963512,1.6968762,1.6974006,1.6979244,1.6984475,1.69897],"x":[20.0,20.060120240480963,20.120240480961925,20.180360721442884,20.240480961923847,20.30060120240481,20.360721442885772,20.420841683366735,20.480961923847694,20.541082164328657,20.60120240480962,20.661322645290582,20.721442885771545,20.781563126252504,20.841683366733466,20.90180360721443,20.96192384769539,21.022044088176354,21.082164328657313,21.142284569138276,21.20240480961924,21.2625250501002,21.322645290581164,21.382765531062123,21.442885771543086,21.50300601202405,21.56312625250501,21.62324649298597,21.683366733466933,21.743486973947896,21.803607214428858,21.86372745490982,21.92384769539078,21.983967935871743,22.044088176352705,22.104208416833668,22.16432865731463,22.22444889779559,22.284569138276552,22.344689378757515,22.404809619238478,22.46492985971944,22.5250501002004,22.585170340681362,22.645290581162325,22.705410821643287,22.76553106212425,22.82565130260521,22.88577154308617,22.945891783567134,23.006012024048097,23.06613226452906,23.12625250501002,23.18637274549098,23.246492985971944,23.306613226452907,23.36673346693387,23.42685370741483,23.48697394789579,23.547094188376754,23.607214428857716,23.66733466933868,23.727454909819638,23.7875751503006,23.847695390781563,23.907815631262526,23.96793587174349,24.028056112224448,24.08817635270541,24.148296593186373,24.208416833667336,24.268537074148295,24.328657314629258,24.38877755511022,24.448897795591183,24.509018036072145,24.569138276553105,24.629258517034067,24.68937875751503,24.749498997995993,24.809619238476955,24.869739478957914,24.929859719438877,24.98997995991984,25.050100200400802,25.110220440881765,25.170340681362724,25.230460921843687,25.29058116232465,25.350701402805612,25.410821643286575,25.470941883767534,25.531062124248496,25.59118236472946,25.65130260521042,25.711422845691384,25.771543086172343,25.831663326653306,25.89178356713427,25.95190380761523,26.012024048096194,26.072144288577153,26.132264529058116,26.19238476953908,26.25250501002004,26.312625250501004,26.372745490981963,26.432865731462925,26.492985971943888,26.55310621242485,26.613226452905813,26.673346693386772,26.733466933867735,26.793587174348698,26.85370741482966,26.91382765531062,26.973947895791582,27.034068136272545,27.094188376753507,27.15430861723447,27.21442885771543,27.274549098196392,27.334669338677354,27.394789579158317,27.45490981963928,27.51503006012024,27.5751503006012,27.635270541082164,27.695390781563127,27.75551102204409,27.81563126252505,27.87575150300601,27.935871743486974,27.995991983967937,28.0561122244489,28.11623246492986,28.17635270541082,28.236472945891784,28.296593186372746,28.35671342685371,28.416833667334668,28.47695390781563,28.537074148296593,28.597194388777556,28.65731462925852,28.717434869739478,28.77755511022044,28.837675350701403,28.897795591182366,28.95791583166333,29.018036072144287,29.07815631262525,29.138276553106213,29.198396793587175,29.258517034068138,29.318637274549097,29.37875751503006,29.438877755511022,29.498997995991985,29.559118236472944,29.619238476953907,29.67935871743487,29.739478957915832,29.799599198396795,29.859719438877754,29.919839679358716,29.97995991983968,30.04008016032064,30.100200400801604,30.160320641282564,30.220440881763526,30.28056112224449,30.34068136272545,30.400801603206414,30.460921843687373,30.521042084168336,30.5811623246493,30.64128256513026,30.701402805611224,30.761523046092183,30.821643286573146,30.881763527054108,30.94188376753507,31.002004008016034,31.062124248496993,31.122244488977955,31.182364729458918,31.24248496993988,31.302605210420843,31.362725450901802,31.422845691382765,31.482965931863728,31.54308617234469,31.603206412825653,31.663326653306612,31.723446893787575,31.783567134268537,31.8436873747495,31.903807615230463,31.96392785571142,32.02404809619239,32.08416833667334,32.144288577154306,32.20440881763527,32.26452905811623,32.324649298597194,32.38476953907816,32.44488977955912,32.50501002004008,32.565130260521045,32.62525050100201,32.68537074148296,32.745490981963925,32.80561122244489,32.86573146292585,32.92585170340681,32.985971943887776,33.04609218436874,33.1062124248497,33.166332665330664,33.22645290581163,33.28657314629258,33.346693386773545,33.40681362725451,33.46693386773547,33.52705410821643,33.587174348697395,33.64729458917836,33.70741482965932,33.76753507014028,33.82765531062124,33.8877755511022,33.947895791583164,34.00801603206413,34.06813627254509,34.12825651302605,34.188376753507015,34.24849699398798,34.30861723446894,34.3687374749499,34.42885771543086,34.48897795591182,34.549098196392784,34.609218436873746,34.66933867735471,34.72945891783567,34.789579158316634,34.8496993987976,34.90981963927856,34.96993987975952,35.03006012024048,35.09018036072144,35.1503006012024,35.210420841683366,35.27054108216433,35.33066132264529,35.390781563126254,35.450901803607216,35.51102204408818,35.57114228456914,35.6312625250501,35.69138276553106,35.75150300601202,35.811623246492985,35.87174348697395,35.93186372745491,35.99198396793587,36.052104208416836,36.1122244488978,36.17234468937876,36.23246492985972,36.29258517034068,36.35270541082164,36.412825651302605,36.47294589178357,36.53306613226453,36.59318637274549,36.653306613226455,36.71342685370742,36.77354709418837,36.833667334669336,36.8937875751503,36.95390781563126,37.014028056112224,37.07414829659319,37.13426853707415,37.19438877755511,37.254509018036075,37.31462925851704,37.37474949899799,37.434869739478955,37.49498997995992,37.55511022044088,37.61523046092184,37.675350701402806,37.73547094188377,37.79559118236473,37.855711422845694,37.91583166332666,37.97595190380761,38.036072144288575,38.09619238476954,38.1563126252505,38.21643286573146,38.276553106212425,38.33667334669339,38.39679358717435,38.45691382765531,38.517034068136276,38.57715430861723,38.637274549098194,38.69739478957916,38.75751503006012,38.81763527054108,38.877755511022045,38.93787575150301,38.99799599198397,39.05811623246493,39.11823647294589,39.17835671342685,39.23847695390781,39.298597194388776,39.35871743486974,39.4188376753507,39.478957915831664,39.53907815631263,39.59919839679359,39.65931863727455,39.71943887775551,39.77955911823647,39.83967935871743,39.899799599198396,39.95991983967936,40.02004008016032,40.08016032064128,40.140280561122246,40.20040080160321,40.26052104208417,40.32064128256513,40.38076152304609,40.44088176352705,40.501002004008015,40.56112224448898,40.62124248496994,40.6813627254509,40.741482965931866,40.80160320641283,40.86172344689379,40.921843687374746,40.98196392785571,41.04208416833667,41.102204408817634,41.1623246492986,41.22244488977956,41.28256513026052,41.342685370741485,41.40280561122245,41.46292585170341,41.523046092184366,41.58316633266533,41.64328657314629,41.703406813627254,41.763527054108216,41.82364729458918,41.88376753507014,41.943887775551104,42.00400801603207,42.06412825651302,42.124248496993985,42.18436873747495,42.24448897795591,42.30460921843687,42.364729458917836,42.4248496993988,42.48496993987976,42.545090180360724,42.605210420841686,42.66533066132264,42.725450901803605,42.78557114228457,42.84569138276553,42.90581162324649,42.965931863727455,43.02605210420842,43.08617234468938,43.14629258517034,43.206412825651306,43.26653306613226,43.326653306613224,43.38677354709419,43.44689378757515,43.50701402805611,43.567134268537075,43.62725450901804,43.687374749499,43.74749498997996,43.807615230460925,43.86773547094188,43.92785571142284,43.987975951903806,44.04809619238477,44.10821643286573,44.168336673346694,44.22845691382766,44.28857715430862,44.34869739478958,44.408817635270545,44.4689378757515,44.52905811623246,44.589178356713425,44.64929859719439,44.70941883767535,44.76953907815631,44.829659318637276,44.88977955911824,44.9498997995992,45.01002004008016,45.07014028056112,45.13026052104208,45.190380761523045,45.25050100200401,45.31062124248497,45.37074148296593,45.430861723446895,45.49098196392786,45.55110220440882,45.611222444889776,45.67134268537074,45.7314629258517,45.791583166332664,45.85170340681363,45.91182364729459,45.97194388777555,46.032064128256515,46.09218436873748,46.15230460921844,46.212424849699396,46.27254509018036,46.33266533066132,46.392785571142284,46.452905811623246,46.51302605210421,46.57314629258517,46.633266533066134,46.6933867735471,46.75350701402806,46.813627254509015,46.87374749498998,46.93386773547094,46.9939879759519,47.054108216432866,47.11422845691383,47.17434869739479,47.234468937875754,47.294589178356716,47.35470941883767,47.414829659318634,47.4749498997996,47.53507014028056,47.59519038076152,47.655310621242485,47.71543086172345,47.77555110220441,47.83567134268537,47.895791583166336,47.95591182364729,48.016032064128254,48.07615230460922,48.13627254509018,48.19639278557114,48.256513026052104,48.31663326653307,48.37675350701403,48.43687374749499,48.496993987975955,48.55711422845691,48.61723446893787,48.677354709418836,48.7374749498998,48.79759519038076,48.857715430861724,48.91783567134269,48.97795591182365,49.03807615230461,49.098196392785574,49.15831663326653,49.21843687374749,49.278557114228455,49.33867735470942,49.39879759519038,49.45891783567134,49.519038076152306,49.57915831663327,49.63927855711423,49.699398797595194,49.75951903807615,49.81963927855711,49.879759519038075,49.93987975951904,50.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/medium_positive.json b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/medium_positive.json new file mode 100644 index 000000000000..43eb6ff7058a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/medium_positive.json @@ -0,0 +1 @@ +{"expected":[0.47712126,0.48202533,0.48687464,0.4916704,0.4964138,0.5011059,0.5057479,0.5103408,0.51488566,0.5193834,0.52383506,0.5282415,0.53260374,0.53692263,0.5411989,0.5454336,0.5496273,0.5537809,0.5578952,0.56197083,0.5660086,0.5700092,0.57397324,0.5779014,0.58179444,0.5856528,0.58947724,0.5932683,0.5970265,0.60075253,0.6044468,0.60810995,0.61174244,0.6153448,0.6189176,0.62246114,0.625976,0.6294627,0.63292164,0.6363532,0.6397579,0.6431361,0.6464882,0.64981467,0.6531158,0.65639204,0.65964377,0.66287136,0.6660751,0.6692554,0.6724125,0.67554694,0.67865884,0.6817486,0.6848166,0.68786305,0.6908882,0.69389254,0.69687617,0.6998395,0.7027827,0.70570606,0.70860994,0.71149445,0.71436,0.7172068,0.72003496,0.72284484,0.7256367,0.7284107,0.73116714,0.73390615,0.736628,0.7393329,0.7420211,0.7446927,0.74734795,0.7499871,0.7526103,0.7552178,0.7578097,0.7603862,0.76294756,0.76549387,0.76802534,0.77054214,0.7730444,0.77553236,0.7780062,0.78046596,0.7829119,0.7853441,0.78776276,0.79016805,0.7925601,0.79493904,0.797305,0.7996582,0.8019987,0.8043266,0.8066421,0.8089453,0.81123644,0.8135155,0.81578267,0.81803805,0.82028174,0.822514,0.82473475,0.82694423,0.8291426,0.8313298,0.8335061,0.8356715,0.8378262,0.83997023,0.8421038,0.84422684,0.8463396,0.84844214,0.8505345,0.8526169,0.8546893,0.85675186,0.8588047,0.8608479,0.8628815,0.86490566,0.8669204,0.8689258,0.870922,0.8729091,0.87488717,0.8768562,0.8788164,0.88076776,0.8827104,0.88464445,0.88656986,0.88848674,0.8903953,0.8922954,0.8941873,0.89607096,0.8979465,0.89981395,0.9016734,0.90352494,0.9053686,0.9072045,0.90903264,0.91085315,0.912666,0.9144714,0.9162693,0.91805977,0.9198429,0.9216187,0.92338735,0.9251487,0.92690307,0.9286503,0.93039054,0.93212384,0.9338503,0.9355699,0.9372827,0.93898875,0.94068813,0.9423809,0.94406706,0.9457468,0.94741994,0.9490867,0.9507472,0.9524012,0.95404905,0.9556906,0.95732605,0.9589553,0.9605785,0.96219563,0.96380675,0.9654119,0.9670112,0.96860456,0.9701922,0.971774,0.97335,0.97492033,0.9764851,0.97804415,0.9795976,0.9811456,0.98268807,0.9842251,0.98575664,0.9872829,0.98880374,0.99031925,0.9918296,0.9933346,0.9948345,0.9963291,0.9978187,0.99930316,1.0007826,1.002257,1.0037264,1.0051908,1.0066503,1.008105,1.0095547,1.0109997,1.0124398,1.0138754,1.015306,1.016732,1.0181533,1.01957,1.020982,1.0223895,1.0237925,1.025191,1.0265849,1.0279744,1.0293593,1.03074,1.0321163,1.0334883,1.0348558,1.0362191,1.0375782,1.038933,1.0402836,1.04163,1.0429722,1.0443103,1.0456443,1.0469743,1.0483001,1.0496219,1.0509397,1.0522535,1.0535634,1.0548693,1.0561713,1.0574695,1.0587636,1.0600541,1.0613407,1.0626234,1.0639024,1.0651777,1.0664492,1.067717,1.068981,1.0702416,1.0714983,1.0727515,1.0740011,1.075247,1.0764894,1.0777283,1.0789636,1.0801954,1.0814238,1.0826486,1.0838702,1.0850881,1.0863028,1.0875139,1.0887219,1.0899264,1.0911275,1.0923253,1.0935199,1.0947112,1.0958992,1.097084,1.0982656,1.0994439,1.1006192,1.1017911,1.10296,1.1041257,1.1052883,1.1064478,1.1076041,1.1087575,1.1099077,1.111055,1.1121992,1.1133404,1.1144786,1.1156138,1.1167461,1.1178755,1.1190019,1.1201253,1.121246,1.1223637,1.1234785,1.1245905,1.1256996,1.1268059,1.1279094,1.1290102,1.1301081,1.1312032,1.1322956,1.1333853,1.1344723,1.1355565,1.1366379,1.1377168,1.138793,1.1398665,1.1409373,1.1420056,1.1430712,1.1441342,1.1451945,1.1462524,1.1473076,1.1483603,1.1494104,1.150458,1.1515031,1.1525457,1.1535858,1.1546234,1.1556585,1.1566912,1.1577214,1.1587491,1.1597744,1.1607974,1.1618179,1.1628361,1.1638519,1.1648653,1.1658763,1.1668849,1.1678913,1.1688952,1.169897,1.1708964,1.1718935,1.1728883,1.1738808,1.1748711,1.1758591,1.1768448,1.1778284,1.1788098,1.1797888,1.1807657,1.1817405,1.182713,1.1836834,1.1846516,1.1856177,1.1865816,1.1875433,1.188503,1.1894605,1.1904159,1.1913693,1.1923205,1.1932696,1.1942167,1.1951617,1.1961048,1.1970457,1.1979846,1.1989214,1.1998563,1.2007891,1.20172,1.2026488,1.2035757,1.2045006,1.2054235,1.2063445,1.2072635,1.2081807,1.2090957,1.210009,1.2109203,1.2118297,1.2127372,1.2136428,1.2145466,1.2154484,1.2163484,1.2172465,1.2181427,1.2190372,1.2199298,1.2208205,1.2217095,1.2225966,1.2234819,1.2243654,1.2252471,1.226127,1.2270051,1.2278816,1.2287562,1.229629,1.2305001,1.2313695,1.2322371,1.233103,1.2339672,1.2348295,1.2356904,1.2365494,1.2374067,1.2382624,1.2391163,1.2399687,1.2408192,1.2416682,1.2425156,1.2433612,1.2442052,1.2450476,1.2458884,1.2467275,1.2475649,1.2484008,1.2492352,1.2500678,1.250899,1.2517284,1.2525563,1.2533827,1.2542075,1.2550306,1.2558523,1.2566725,1.257491,1.258308,1.2591236,1.2599375,1.2607499,1.2615608,1.2623702,1.2631781,1.2639846,1.2647895,1.2655928,1.2663947,1.2671952,1.2679943,1.2687918,1.2695878,1.2703824,1.2711755,1.2719673,1.2727575,1.2735463,1.2743337,1.2751197,1.2759043,1.2766874,1.2774692,1.2782494,1.2790283,1.2798059,1.2805821,1.2813568,1.2821301,1.2829021,1.2836728,1.2844421,1.2852099,1.2859765,1.2867417,1.2875055,1.2882681,1.2890292,1.2897891,1.2905476,1.2913048,1.2920606,1.2928152,1.2935685,1.2943205,1.295071,1.2958204,1.2965685,1.2973152,1.2980608,1.298805,1.2995479,1.3002896,1.30103],"x":[3.0,3.0340681362725452,3.06813627254509,3.1022044088176353,3.1362725450901805,3.1703406813627253,3.2044088176352705,3.2384769539078158,3.2725450901803605,3.306613226452906,3.340681362725451,3.374749498997996,3.408817635270541,3.4428857715430863,3.476953907815631,3.5110220440881763,3.5450901803607215,3.5791583166332663,3.6132264529058116,3.647294589178357,3.6813627254509016,3.715430861723447,3.749498997995992,3.783567134268537,3.817635270541082,3.8517034068136273,3.8857715430861726,3.9198396793587174,3.9539078156312626,3.987975951903808,4.022044088176353,4.056112224448897,4.090180360721443,4.124248496993988,4.158316633266533,4.192384769539078,4.226452905811623,4.260521042084168,4.294589178356714,4.328657314629258,4.362725450901803,4.396793587174349,4.430861723446894,4.4649298597194385,4.498997995991984,4.533066132264529,4.567134268537074,4.601202404809619,4.635270541082164,4.669338677354709,4.703406813627255,4.7374749498997994,4.771543086172345,4.80561122244489,4.839679358717435,4.87374749498998,4.907815631262525,4.94188376753507,4.975951903807616,5.01002004008016,5.044088176352705,5.078156312625251,5.112224448897796,5.1462925851703405,5.180360721442886,5.214428857715431,5.248496993987976,5.282565130260521,5.316633266533066,5.350701402805611,5.384769539078157,5.4188376753507015,5.452905811623246,5.486973947895792,5.521042084168337,5.5551102204408815,5.589178356713427,5.623246492985972,5.657314629258517,5.6913827655310625,5.725450901803607,5.759519038076152,5.793587174348698,5.8276553106212425,5.861723446893787,5.895791583166333,5.929859719438878,5.963927855711423,5.997995991983968,6.032064128256513,6.066132264529058,6.1002004008016035,6.134268537074148,6.168336673346693,6.202404809619239,6.236472945891784,6.270541082164328,6.304609218436874,6.338677354709419,6.372745490981964,6.406813627254509,6.440881763527054,6.474949899799599,6.509018036072145,6.543086172344689,6.577154308617234,6.61122244488978,6.645290581162325,6.679358717434869,6.713426853707415,6.74749498997996,6.781563126252505,6.81563126252505,6.849699398797595,6.88376753507014,6.917835671342686,6.95190380761523,6.985971943887775,7.020040080160321,7.054108216432866,7.0881763527054105,7.122244488977956,7.156312625250501,7.190380761523046,7.224448897795591,7.258517034068136,7.292585170340681,7.326653306613227,7.3607214428857715,7.394789579158316,7.428857715430862,7.462925851703407,7.4969939879759515,7.531062124248497,7.565130260521042,7.599198396793587,7.6332665330661325,7.667334669338677,7.701402805611222,7.735470941883768,7.7695390781563125,7.803607214428857,7.837675350701403,7.871743486973948,7.905811623246493,7.939879759519038,7.973947895791583,8.008016032064129,8.042084168336673,8.076152304609218,8.110220440881763,8.144288577154308,8.178356713426854,8.2124248496994,8.246492985971944,8.280561122244489,8.314629258517034,8.348697394789578,8.382765531062125,8.41683366733467,8.450901803607215,8.48496993987976,8.519038076152304,8.553106212424849,8.587174348697395,8.62124248496994,8.655310621242485,8.68937875751503,8.723446893787575,8.75751503006012,8.791583166332666,8.82565130260521,8.859719438877756,8.8937875751503,8.927855711422845,8.96192384769539,8.995991983967937,9.030060120240481,9.064128256513026,9.098196392785571,9.132264529058116,9.16633266533066,9.200400801603207,9.234468937875752,9.268537074148297,9.302605210420841,9.336673346693386,9.370741482965931,9.404809619238478,9.438877755511022,9.472945891783567,9.507014028056112,9.541082164328657,9.575150300601202,9.609218436873748,9.643286573146293,9.677354709418838,9.711422845691382,9.745490981963927,9.779559118236472,9.813627254509019,9.847695390781563,9.881763527054108,9.915831663326653,9.949899799599198,9.983967935871744,10.01803607214429,10.052104208416834,10.086172344689379,10.120240480961924,10.154308617234468,10.188376753507015,10.22244488977956,10.256513026052104,10.29058116232465,10.324649298597194,10.358717434869739,10.392785571142285,10.42685370741483,10.460921843687375,10.49498997995992,10.529058116232465,10.56312625250501,10.597194388777556,10.6312625250501,10.665330661322646,10.69939879759519,10.733466933867735,10.76753507014028,10.801603206412826,10.835671342685371,10.869739478957916,10.90380761523046,10.937875751503006,10.97194388777555,11.006012024048097,11.040080160320642,11.074148296593187,11.108216432865731,11.142284569138276,11.176352705410821,11.210420841683367,11.244488977955912,11.278557114228457,11.312625250501002,11.346693386773547,11.380761523046091,11.414829659318638,11.448897795591183,11.482965931863728,11.517034068136272,11.551102204408817,11.585170340681362,11.619238476953909,11.653306613226453,11.687374749498998,11.721442885771543,11.755511022044088,11.789579158316633,11.823647294589179,11.857715430861724,11.891783567134269,11.925851703406813,11.959919839679358,11.993987975951903,12.02805611222445,12.062124248496994,12.09619238476954,12.130260521042084,12.164328657314629,12.198396793587174,12.23246492985972,12.266533066132265,12.30060120240481,12.334669338677354,12.3687374749499,12.402805611222444,12.43687374749499,12.470941883767535,12.50501002004008,12.539078156312625,12.57314629258517,12.607214428857715,12.641282565130261,12.675350701402806,12.70941883767535,12.743486973947896,12.77755511022044,12.811623246492985,12.845691382765532,12.879759519038076,12.913827655310621,12.947895791583166,12.98196392785571,13.016032064128256,13.050100200400802,13.084168336673347,13.118236472945892,13.152304609218437,13.186372745490981,13.220440881763528,13.254509018036073,13.288577154308618,13.322645290581162,13.356713426853707,13.390781563126252,13.424849699398798,13.458917835671343,13.492985971943888,13.527054108216433,13.561122244488978,13.595190380761522,13.629258517034069,13.663326653306614,13.697394789579159,13.731462925851703,13.765531062124248,13.799599198396793,13.83366733466934,13.867735470941884,13.901803607214429,13.935871743486974,13.969939879759519,14.004008016032063,14.03807615230461,14.072144288577155,14.1062124248497,14.140280561122244,14.17434869739479,14.208416833667334,14.24248496993988,14.276553106212425,14.31062124248497,14.344689378757515,14.37875751503006,14.412825651302605,14.446893787575151,14.480961923847696,14.51503006012024,14.549098196392785,14.58316633266533,14.617234468937875,14.651302605210422,14.685370741482966,14.719438877755511,14.753507014028056,14.7875751503006,14.821643286573146,14.855711422845692,14.889779559118237,14.923847695390782,14.957915831663327,14.991983967935871,15.026052104208416,15.060120240480963,15.094188376753507,15.128256513026052,15.162324649298597,15.196392785571142,15.230460921843687,15.264529058116233,15.298597194388778,15.332665330661323,15.366733466933868,15.400801603206412,15.434869739478957,15.468937875751504,15.503006012024048,15.537074148296593,15.571142284569138,15.605210420841683,15.639278557114228,15.673346693386774,15.707414829659319,15.741482965931864,15.775551102204409,15.809619238476953,15.843687374749498,15.877755511022045,15.91182364729459,15.945891783567134,15.97995991983968,16.014028056112224,16.04809619238477,16.082164328657313,16.11623246492986,16.150300601202403,16.18436873747495,16.218436873747496,16.25250501002004,16.286573146292586,16.32064128256513,16.354709418837675,16.38877755511022,16.422845691382765,16.45691382765531,16.490981963927855,16.5250501002004,16.559118236472944,16.593186372745492,16.627254509018037,16.661322645290582,16.695390781563127,16.72945891783567,16.763527054108216,16.79759519038076,16.831663326653306,16.86573146292585,16.899799599198396,16.93386773547094,16.96793587174349,17.002004008016034,17.03607214428858,17.070140280561123,17.104208416833668,17.138276553106213,17.172344689378757,17.206412825651302,17.240480961923847,17.274549098196392,17.308617234468937,17.34268537074148,17.37675350701403,17.410821643286575,17.44488977955912,17.478957915831664,17.51302605210421,17.547094188376754,17.5811623246493,17.615230460921843,17.649298597194388,17.683366733466933,17.717434869739478,17.751503006012022,17.78557114228457,17.819639278557116,17.85370741482966,17.887775551102205,17.92184368737475,17.955911823647295,17.98997995991984,18.024048096192384,18.05811623246493,18.092184368737474,18.12625250501002,18.160320641282564,18.194388777555112,18.228456913827657,18.2625250501002,18.296593186372746,18.33066132264529,18.364729458917836,18.39879759519038,18.432865731462925,18.46693386773547,18.501002004008015,18.53507014028056,18.569138276553105,18.603206412825653,18.637274549098198,18.671342685370742,18.705410821643287,18.739478957915832,18.773547094188377,18.80761523046092,18.841683366733466,18.87575150300601,18.909819639278556,18.9438877755511,18.977955911823646,19.012024048096194,19.04609218436874,19.080160320641284,19.11422845691383,19.148296593186373,19.182364729458918,19.216432865731463,19.250501002004007,19.284569138276552,19.318637274549097,19.352705410821642,19.386773547094187,19.420841683366735,19.45490981963928,19.488977955911825,19.52304609218437,19.557114228456914,19.59118236472946,19.625250501002004,19.65931863727455,19.693386773547093,19.727454909819638,19.761523046092183,19.795591182364728,19.829659318637276,19.86372745490982,19.897795591182366,19.93186372745491,19.965931863727455,20.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/runner.jl new file mode 100644 index 000000000000..87d237ab1c0a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/runner.jl @@ -0,0 +1,94 @@ +#!/usr/bin/env julia +# +# @license Apache-2.0 +# +# Copyright (c) 2025 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import JSON + +""" + gen( x, filepath ) + +Generate fixture data and write to file. + +# Arguments + +* `x`: domain +* `filepath::AbstractString`: filepath of the output file + +# Examples + +``` julia +julia> x = range( 0.0, stop = 1000.0, length = 2001 ); +julia> gen( x, \"./data.json\" ); +``` +""" +function gen( x, filepath ) + y = Array{Float32}( undef, length(x) ); + for i in eachindex(x) + y[i] = log10( x[i] ); + end + + data = Dict([ + ("x", x), + ("expected", y) + ]); + + outfile = open( filepath, "w" ); + write( outfile, JSON.json(data) ); + write( outfile, "\n" ); + close( outfile ); +end + +# Get the filename: +file = @__FILE__; + +# Extract the directory in which this file resides: +dir = dirname( file ); + +# Subnormal values: +x = range( 1.0e-39, stop = 1.40129846e-45, length = 500 ); +out = joinpath( dir, "subnormal.json" ); +gen( x, out ); + +# Positive tiny values: +x = range( 1.0e-30, stop = 1.0e-38, length = 500 ); +out = joinpath( dir, "tiny_positive.json" ); +gen( x, out ); + +# Small(er) values: +x = range( 1.0e-30, stop = 0.8, length = 500 ); +out = joinpath( dir, "smaller.json" ); +gen( x, out ); + +# Positive small values: +x = range( 0.8, stop = 3.0, length = 500 ); +out = joinpath( dir, "small_positive.json" ); +gen( x, out ); + +# Positive medium values: +x = range( 3.0, stop = 20.0, length = 500 ); +out = joinpath( dir, "medium_positive.json" ); +gen( x, out ); + +# Large positive values: +x = range( 20.0, stop = 50.0, length = 500 ); +out = joinpath( dir, "large_positive.json" ); +gen( x, out ); + +# Very large positive values: +x = range( 50.0, stop = 500.0, length = 500 ); +out = joinpath( dir, "very_large_positive.json" ); +gen( x, out ); diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/small_positive.json b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/small_positive.json new file mode 100644 index 000000000000..45bf948d9943 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/small_positive.json @@ -0,0 +1 @@ +{"expected":[-0.096910015,-0.09452318,-0.09214939,-0.089788504,-0.08744038,-0.08510489,-0.08278189,-0.08047125,-0.07817283,-0.075886525,-0.07361218,-0.071349695,-0.06909893,-0.06685977,-0.06463209,-0.062415782,-0.06021073,-0.058016814,-0.05583393,-0.053661957,-0.051500794,-0.049350332,-0.047210466,-0.045081094,-0.04296211,-0.040853415,-0.03875491,-0.036666494,-0.034588076,-0.032519553,-0.03046084,-0.028411837,-0.026372457,-0.02434261,-0.022322204,-0.020311154,-0.018309375,-0.016316779,-0.014333284,-0.012358807,-0.010393266,-0.00843658,-0.0064886715,-0.00454946,-0.002618869,-0.0006968224,0.0012167554,0.0031219386,0.0050188005,0.0069074137,0.008787849,0.010660178,0.01252447,0.014380792,0.016229214,0.018069802,0.019902622,0.02172774,0.02354522,0.025355127,0.02715752,0.028952466,0.030740023,0.032520253,0.034293216,0.036058966,0.03781757,0.03956908,0.04131356,0.043051053,0.044781625,0.04650533,0.048222218,0.04993235,0.05163577,0.053332537,0.055022698,0.05670631,0.05838342,0.060054075,0.061718334,0.06337623,0.06502783,0.066673175,0.0683123,0.06994527,0.07157212,0.073192894,0.07480765,0.07641642,0.078019254,0.0796162,0.08120728,0.082792565,0.08437208,0.08594587,0.087513976,0.089076445,0.09063331,0.09218462,0.093730405,0.0952707,0.09680556,0.09833501,0.099859096,0.10137785,0.10289132,0.104399525,0.10590251,0.10740031,0.10889297,0.11038051,0.11186297,0.1133404,0.11481281,0.11628025,0.11774275,0.119200334,0.12065305,0.12210091,0.12354397,0.12498225,0.12641579,0.1278446,0.12926872,0.1306882,0.13210306,0.13351332,0.134919,0.13632016,0.13771681,0.13910899,0.1404967,0.14188,0.14325893,0.14463347,0.14600368,0.1473696,0.1487312,0.15008858,0.15144171,0.15279064,0.15413539,0.155476,0.15681247,0.15814486,0.15947317,0.16079742,0.16211765,0.16343386,0.16474612,0.16605441,0.16735877,0.16865924,0.16995582,0.17124854,0.17253742,0.17382249,0.17510377,0.17638128,0.17765503,0.17892507,0.1801914,0.18145406,0.18271305,0.1839684,0.18522014,0.18646827,0.18771283,0.18895383,0.1901913,0.19142525,0.19265571,0.19388269,0.19510621,0.19632629,0.19754297,0.19875623,0.19996612,0.20117263,0.20237583,0.20357569,0.20477223,0.2059655,0.2071555,0.20834225,0.20952576,0.21070606,0.21188314,0.21305706,0.21422781,0.21539542,0.21655989,0.21772124,0.2188795,0.22003467,0.2211868,0.22233586,0.2234819,0.22462492,0.22576493,0.22690196,0.22803603,0.22916713,0.2302953,0.23142056,0.2325429,0.23366234,0.23477891,0.23589262,0.23700348,0.2381115,0.2392167,0.2403191,0.2414187,0.24251553,0.2436096,0.24470092,0.2457895,0.24687536,0.24795851,0.24903898,0.25011674,0.25119185,0.25226432,0.2533341,0.2544013,0.25546587,0.25652784,0.2575872,0.25864398,0.25969824,0.2607499,0.26179904,0.26284564,0.26388973,0.26493132,0.26597044,0.26700705,0.2680412,0.2690729,0.2701021,0.27112892,0.27215332,0.2731753,0.2741949,0.27521208,0.27622688,0.27723935,0.27824944,0.27925718,0.2802626,0.2812657,0.28226647,0.28326496,0.28426117,0.28525507,0.28624672,0.2872361,0.28822324,0.2892081,0.2901908,0.29117125,0.29214948,0.29312554,0.2940994,0.29507107,0.29604056,0.29700792,0.2979731,0.29893616,0.2998971,0.3008559,0.3018126,0.3027672,0.30371967,0.3046701,0.3056184,0.3065647,0.3075089,0.30845106,0.3093912,0.3103293,0.31126535,0.3121994,0.31313145,0.31406152,0.3149896,0.31591567,0.3168398,0.31776196,0.31868216,0.31960043,0.32051674,0.32143113,0.32234362,0.32325417,0.3241628,0.32506958,0.32597443,0.32687742,0.32777855,0.32867777,0.32957518,0.3304707,0.3313644,0.33225626,0.3331463,0.3340345,0.3349209,0.3358055,0.33668828,0.3375693,0.3384485,0.33932596,0.34020162,0.34107554,0.3419477,0.3428181,0.34368676,0.3445537,0.3454189,0.3462824,0.3471442,0.34800425,0.34886262,0.3497193,0.35057425,0.35142758,0.35227922,0.35312918,0.35397747,0.35482413,0.35566914,0.35651252,0.35735425,0.35819435,0.3590328,0.3598697,0.36070493,0.3615386,0.36237064,0.3632011,0.36403,0.3648573,0.36568302,0.36650717,0.36732978,0.36815083,0.3689703,0.36978826,0.37060466,0.37141955,0.3722329,0.37304476,0.37385505,0.3746639,0.37547117,0.376277,0.3770813,0.37788415,0.37868547,0.37948537,0.38028377,0.3810807,0.38187617,0.3826702,0.3834628,0.38425392,0.3850436,0.38583186,0.38661867,0.38740408,0.3881881,0.38897067,0.38975182,0.3905316,0.39130998,0.39208695,0.39286253,0.39363673,0.39440957,0.39518103,0.39595112,0.39671984,0.3974872,0.3982532,0.39901787,0.3997812,0.40054318,0.40130383,0.40206313,0.40282112,0.4035778,0.40433317,0.4050872,0.40583995,0.4065914,0.4073415,0.40809035,0.4088379,0.40958416,0.41032916,0.41107288,0.41181532,0.4125565,0.4132964,0.41403505,0.41477245,0.4155086,0.41624352,0.41697717,0.4177096,0.4184408,0.41917074,0.4198995,0.420627,0.4213533,0.4220784,0.42280227,0.42352495,0.42424643,0.4249667,0.4256858,0.42640367,0.4271204,0.4278359,0.42855027,0.42926344,0.42997548,0.43068632,0.431396,0.43210453,0.4328119,0.4335181,0.4342232,0.43492714,0.43562993,0.43633157,0.4370321,0.4377315,0.43842977,0.43912694,0.43982297,0.4405179,0.4412117,0.4419044,0.44259602,0.4432865,0.44397593,0.44466424,0.44535145,0.4460376,0.44672266,0.44740662,0.44808954,0.44877136,0.44945213,0.4501318,0.45081046,0.45148802,0.45216453,0.45284,0.45351443,0.4541878,0.45486012,0.45553142,0.45620167,0.45687088,0.45753908,0.45820627,0.4588724,0.4595375,0.46020162,0.46086472,0.46152678,0.46218786,0.46284795,0.463507,0.46416506,0.46482214,0.4654782,0.4661333,0.4667874,0.46744055,0.46809268,0.46874383,0.46939403,0.47004324,0.47069147,0.47133875,0.47198507,0.4726304,0.47327483,0.47391826,0.47456077,0.4752023,0.4758429,0.47648254,0.47712126],"x":[0.8,0.8044088176352705,0.8088176352705411,0.8132264529058116,0.8176352705410822,0.8220440881763527,0.8264529058116232,0.8308617234468938,0.8352705410821644,0.8396793587174348,0.8440881763527054,0.848496993987976,0.8529058116232465,0.857314629258517,0.8617234468937875,0.8661322645290581,0.8705410821643287,0.8749498997995993,0.8793587174348697,0.8837675350701403,0.8881763527054108,0.8925851703406814,0.8969939879759519,0.9014028056112224,0.905811623246493,0.9102204408817636,0.914629258517034,0.9190380761523046,0.9234468937875752,0.9278557114228457,0.9322645290581162,0.9366733466933868,0.9410821643286573,0.9454909819639279,0.9498997995991983,0.9543086172344689,0.9587174348697395,0.96312625250501,0.9675350701402805,0.9719438877755511,0.9763527054108216,0.9807615230460922,0.9851703406813628,0.9895791583166332,0.9939879759519038,0.9983967935871744,1.0028056112224448,1.0072144288577154,1.011623246492986,1.0160320641282565,1.020440881763527,1.0248496993987977,1.0292585170340682,1.0336673346693386,1.0380761523046091,1.0424849699398797,1.0468937875751503,1.0513026052104208,1.0557114228456914,1.060120240480962,1.0645290581162326,1.068937875751503,1.0733466933867735,1.077755511022044,1.0821643286573146,1.0865731462925852,1.0909819639278557,1.0953907815631263,1.0997995991983969,1.1042084168336674,1.1086172344689378,1.1130260521042084,1.117434869739479,1.1218436873747495,1.12625250501002,1.1306613226452906,1.1350701402805612,1.1394789579158318,1.143887775551102,1.1482965931863727,1.1527054108216432,1.1571142284569138,1.1615230460921844,1.165931863727455,1.1703406813627255,1.174749498997996,1.1791583166332664,1.183567134268537,1.1879759519038076,1.1923847695390781,1.1967935871743487,1.2012024048096193,1.2056112224448898,1.2100200400801604,1.214428857715431,1.2188376753507013,1.2232464929859719,1.2276553106212424,1.232064128256513,1.2364729458917836,1.2408817635270541,1.2452905811623247,1.2496993987975953,1.2541082164328656,1.2585170340681362,1.2629258517034068,1.2673346693386773,1.271743486973948,1.2761523046092185,1.280561122244489,1.2849699398797596,1.28937875751503,1.2937875751503005,1.298196392785571,1.3026052104208417,1.3070140280561122,1.3114228456913828,1.3158316633266534,1.320240480961924,1.3246492985971945,1.3290581162324648,1.3334669338677354,1.337875751503006,1.3422845691382765,1.346693386773547,1.3511022044088177,1.3555110220440882,1.3599198396793588,1.3643286573146292,1.3687374749498997,1.3731462925851703,1.3775551102204409,1.3819639278557114,1.386372745490982,1.3907815631262526,1.3951903807615231,1.3995991983967937,1.404008016032064,1.4084168336673346,1.4128256513026052,1.4172344689378757,1.4216432865731463,1.4260521042084169,1.4304609218436874,1.434869739478958,1.4392785571142284,1.443687374749499,1.4480961923847695,1.45250501002004,1.4569138276553106,1.4613226452905812,1.4657314629258518,1.4701402805611223,1.4745490981963927,1.4789579158316633,1.4833667334669338,1.4877755511022044,1.492184368737475,1.4965931863727455,1.501002004008016,1.5054108216432867,1.5098196392785572,1.5142284569138276,1.5186372745490981,1.5230460921843687,1.5274549098196393,1.5318637274549098,1.5362725450901804,1.540681362725451,1.5450901803607215,1.549498997995992,1.5539078156312625,1.558316633266533,1.5627254509018036,1.5671342685370742,1.5715430861723447,1.5759519038076153,1.5803607214428859,1.5847695390781562,1.5891783567134268,1.5935871743486973,1.597995991983968,1.6024048096192385,1.606813627254509,1.6112224448897796,1.6156312625250502,1.6200400801603208,1.624448897795591,1.6288577154308617,1.6332665330661322,1.6376753507014028,1.6420841683366734,1.646492985971944,1.6509018036072145,1.655310621242485,1.6597194388777554,1.664128256513026,1.6685370741482966,1.6729458917835671,1.6773547094188377,1.6817635270541083,1.6861723446893788,1.6905811623246494,1.6949899799599197,1.6993987975951903,1.7038076152304609,1.7082164328657314,1.712625250501002,1.7170340681362726,1.7214428857715431,1.7258517034068137,1.7302605210420843,1.7346693386773546,1.7390781563126252,1.7434869739478958,1.7478957915831663,1.752304609218437,1.7567134268537075,1.761122244488978,1.7655310621242486,1.769939879759519,1.7743486973947895,1.77875751503006,1.7831663326653306,1.7875751503006012,1.7919839679358718,1.7963927855711423,1.800801603206413,1.8052104208416833,1.8096192384769538,1.8140280561122244,1.818436873747495,1.8228456913827655,1.827254509018036,1.8316633266533067,1.8360721442885772,1.8404809619238478,1.8448897795591181,1.8492985971943887,1.8537074148296593,1.8581162324649299,1.8625250501002004,1.866933867735471,1.8713426853707416,1.8757515030060121,1.8801603206412825,1.884569138276553,1.8889779559118236,1.8933867735470942,1.8977955911823647,1.9022044088176353,1.9066132264529059,1.9110220440881764,1.9154308617234468,1.9198396793587174,1.924248496993988,1.9286573146292585,1.933066132264529,1.9374749498997996,1.9418837675350702,1.9462925851703408,1.9507014028056113,1.9551102204408817,1.9595190380761522,1.9639278557114228,1.9683366733466934,1.972745490981964,1.9771543086172345,1.981563126252505,1.9859719438877756,1.990380761523046,1.9947895791583166,1.9991983967935871,2.003607214428858,2.0080160320641283,2.0124248496993986,2.0168336673346694,2.0212424849699397,2.0256513026052105,2.030060120240481,2.0344689378757517,2.038877755511022,2.043286573146293,2.047695390781563,2.0521042084168335,2.0565130260521043,2.0609218436873746,2.0653306613226454,2.0697394789579158,2.0741482965931866,2.078557114228457,2.0829659318637272,2.087374749498998,2.0917835671342684,2.096192384769539,2.1006012024048095,2.1050100200400803,2.1094188376753507,2.1138276553106214,2.118236472945892,2.122645290581162,2.127054108216433,2.1314629258517033,2.135871743486974,2.1402805611222444,2.144689378757515,2.1490981963927855,2.1535070140280563,2.1579158316633267,2.162324649298597,2.166733466933868,2.171142284569138,2.175551102204409,2.1799599198396793,2.18436873747495,2.1887775551102204,2.1931863727454908,2.1975951903807616,2.202004008016032,2.2064128256513027,2.210821643286573,2.215230460921844,2.219639278557114,2.224048096192385,2.2284569138276553,2.2328657314629257,2.2372745490981965,2.241683366733467,2.2460921843687376,2.250501002004008,2.2549098196392787,2.259318637274549,2.26372745490982,2.26813627254509,2.2725450901803605,2.2769539078156313,2.2813627254509017,2.2857715430861725,2.290180360721443,2.2945891783567136,2.298997995991984,2.3034068136272543,2.307815631262525,2.3122244488977954,2.3166332665330662,2.3210420841683366,2.3254509018036074,2.3298597194388777,2.3342685370741485,2.338677354709419,2.343086172344689,2.34749498997996,2.3519038076152303,2.356312625250501,2.3607214428857715,2.3651302605210422,2.3695390781563126,2.3739478957915834,2.3783567134268537,2.382765531062124,2.387174348697395,2.391583166332665,2.395991983967936,2.4004008016032063,2.404809619238477,2.4092184368737475,2.413627254509018,2.4180360721442886,2.422444889779559,2.4268537074148298,2.4312625250501,2.435671342685371,2.4400801603206412,2.444488977955912,2.4488977955911824,2.4533066132264527,2.4577154308617235,2.462124248496994,2.4665330661322646,2.470941883767535,2.4753507014028058,2.479759519038076,2.484168336673347,2.4885771543086173,2.4929859719438876,2.4973947895791584,2.5018036072144287,2.5062124248496995,2.51062124248497,2.5150300601202407,2.519438877755511,2.5238476953907814,2.528256513026052,2.5326653306613225,2.5370741482965933,2.5414829659318636,2.5458917835671344,2.5503006012024048,2.5547094188376755,2.559118236472946,2.5635270541082162,2.567935871743487,2.5723446893787574,2.576753507014028,2.5811623246492985,2.5855711422845693,2.5899799599198396,2.5943887775551104,2.598797595190381,2.603206412825651,2.607615230460922,2.6120240480961923,2.616432865731463,2.6208416833667334,2.625250501002004,2.6296593186372745,2.634068136272545,2.6384769539078157,2.642885771543086,2.647294589178357,2.651703406813627,2.656112224448898,2.6605210420841683,2.664929859719439,2.6693386773547094,2.6737474949899798,2.6781563126252506,2.682565130260521,2.6869739478957917,2.691382765531062,2.695791583166333,2.700200400801603,2.704609218436874,2.7090180360721443,2.7134268537074147,2.7178356713426854,2.722244488977956,2.7266533066132266,2.731062124248497,2.7354709418837677,2.739879759519038,2.7442885771543084,2.748697394789579,2.7531062124248495,2.7575150300601203,2.7619238476953907,2.7663326653306615,2.770741482965932,2.7751503006012026,2.779559118236473,2.7839679358717433,2.788376753507014,2.7927855711422844,2.797194388777555,2.8016032064128256,2.8060120240480964,2.8104208416833667,2.8148296593186375,2.819238476953908,2.823647294589178,2.828056112224449,2.8324649298597193,2.83687374749499,2.8412825651302605,2.8456913827655312,2.8501002004008016,2.854509018036072,2.8589178356713427,2.863326653306613,2.867735470941884,2.872144288577154,2.876553106212425,2.8809619238476953,2.885370741482966,2.8897795591182365,2.894188376753507,2.8985971943887776,2.903006012024048,2.9074148296593187,2.911823647294589,2.91623246492986,2.9206412825651302,2.925050100200401,2.9294589178356714,2.9338677354709417,2.9382765531062125,2.942685370741483,2.9470941883767536,2.951503006012024,2.9559118236472948,2.960320641282565,2.9647294589178355,2.9691382765531062,2.9735470941883766,2.9779559118236474,2.9823647294589177,2.9867735470941885,2.991182364729459,2.9955911823647297,3.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/smaller.json b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/smaller.json new file mode 100644 index 000000000000..147fe69ff00c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/smaller.json @@ -0,0 +1 @@ +{"expected":[-30.0,-2.7950106,-2.4939806,-2.3178892,-2.1929505,-2.0960405,-2.0168593,-1.9499125,-1.8919206,-1.8407681,-1.7950106,-1.7536179,-1.7158293,-1.6810672,-1.6488825,-1.6189193,-1.5908905,-1.5645616,-1.539738,-1.5162569,-1.4939805,-1.4727913,-1.4525878,-1.4332827,-1.4147993,-1.3970705,-1.3800372,-1.3636467,-1.3478525,-1.3326125,-1.3178893,-1.3036488,-1.2898606,-1.2764966,-1.2635317,-1.2509425,-1.238708,-1.2268088,-1.215227,-1.203946,-1.1929506,-1.1822267,-1.1717613,-1.161542,-1.1515579,-1.141798,-1.1322527,-1.1229126,-1.1137693,-1.1048145,-1.0960406,-1.0874404,-1.0790073,-1.0707347,-1.0626168,-1.0546479,-1.0468225,-1.0391357,-1.0315826,-1.0241586,-1.0168593,-1.0096807,-1.0026189,-0.99567,-0.98883057,-0.9820972,-0.9754666,-0.9689357,-0.96250165,-0.95616144,-0.94991255,-0.9437522,-0.93767804,-0.9316877,-0.92577887,-0.9199493,-0.91419697,-0.9085198,-0.90291595,-0.89738345,-0.89192057,-0.8865255,-0.8811967,-0.87593246,-0.8707313,-0.86559165,-0.8605121,-0.8554913,-0.8505279,-0.8456206,-0.84076804,-0.83596915,-0.8312227,-0.8265276,-0.8218827,-0.81728697,-0.8127393,-0.8082388,-0.8037845,-0.79937536,-0.79501057,-0.7906892,-0.7864104,-0.78217334,-0.7779772,-0.77382123,-0.7697047,-0.7656268,-0.7615868,-0.75758404,-0.7536179,-0.74968755,-0.7457925,-0.7419321,-0.7381057,-0.7343127,-0.73055255,-0.7268247,-0.72312856,-0.7194636,-0.7158293,-0.7122252,-0.7086507,-0.7051054,-0.70158887,-0.69810057,-0.69464004,-0.6912068,-0.6878006,-0.6844208,-0.6810672,-0.67773926,-0.6744366,-0.6711589,-0.66790575,-0.6646768,-0.66147166,-0.65828997,-0.65513146,-0.6519958,-0.6488825,-0.6457915,-0.6427222,-0.63967454,-0.63664806,-0.63364255,-0.63065773,-0.62769324,-0.6247488,-0.62182426,-0.6189193,-0.6160336,-0.613167,-0.61031914,-0.6074898,-0.60467887,-0.601886,-0.5991109,-0.5963535,-0.59361345,-0.5908906,-0.58818465,-0.58549553,-0.582823,-0.5801667,-0.5775266,-0.5749025,-0.5722941,-0.56970125,-0.56712383,-0.56456167,-0.56201446,-0.5594821,-0.55696446,-0.5544613,-0.5519725,-0.5494979,-0.5470373,-0.54459053,-0.54215753,-0.53973806,-0.537332,-0.53493917,-0.53255945,-0.53019273,-0.5278388,-0.5254976,-0.523169,-0.5208527,-0.5185487,-0.5162569,-0.51397717,-0.51170933,-0.50945324,-0.5072088,-0.504976,-0.5027545,-0.5005443,-0.49834538,-0.49615747,-0.49398056,-0.4918145,-0.4896592,-0.48751453,-0.48538038,-0.4832567,-0.48114333,-0.4790402,-0.47694722,-0.47486427,-0.47279125,-0.4707281,-0.4686747,-0.46663097,-0.46459678,-0.4625721,-0.4605568,-0.4585508,-0.45655406,-0.45456645,-0.45258787,-0.4506183,-0.44865757,-0.4467057,-0.44476253,-0.44282803,-0.4409021,-0.4389847,-0.4370757,-0.4351751,-0.43328273,-0.43139857,-0.42952257,-0.42765462,-0.4257947,-0.4239427,-0.42209855,-0.42026222,-0.4184336,-0.41661265,-0.4147993,-0.41299352,-0.4111952,-0.40940428,-0.40762073,-0.40584448,-0.40407544,-0.40231362,-0.4005589,-0.39881122,-0.39707056,-0.39533684,-0.39361003,-0.39189005,-0.39017683,-0.38847038,-0.3867706,-0.38507745,-0.38339084,-0.3817108,-0.38003722,-0.37837005,-0.37670925,-0.3750548,-0.37340662,-0.3717647,-0.37012893,-0.3684993,-0.36687577,-0.36525828,-0.3636468,-0.36204126,-0.36044165,-0.35884792,-0.35726,-0.35567787,-0.35410148,-0.35253078,-0.35096577,-0.34940636,-0.34785253,-0.34630424,-0.34476146,-0.3432241,-0.3416922,-0.3401657,-0.33864453,-0.33712867,-0.33561808,-0.3341127,-0.33261257,-0.33111757,-0.3296277,-0.32814294,-0.32666323,-0.32518855,-0.32371885,-0.32225412,-0.32079428,-0.31933936,-0.3178893,-0.31644407,-0.3150036,-0.31356794,-0.31213698,-0.31071073,-0.30928913,-0.30787218,-0.30645984,-0.30505207,-0.30364886,-0.30225018,-0.30085596,-0.29946622,-0.29808092,-0.2967,-0.29532346,-0.2939513,-0.29258344,-0.2912199,-0.28986058,-0.28850552,-0.28715467,-0.28580803,-0.28446555,-0.2831272,-0.28179297,-0.2804628,-0.27913672,-0.27781466,-0.27649662,-0.27518257,-0.27387246,-0.27256632,-0.2712641,-0.26996574,-0.26867127,-0.26738065,-0.26609385,-0.26481086,-0.26353166,-0.26225618,-0.26098445,-0.25971645,-0.25845212,-0.25719145,-0.25593445,-0.25468108,-0.25343132,-0.25218514,-0.25094253,-0.24970344,-0.24846789,-0.24723585,-0.2460073,-0.24478221,-0.24356057,-0.24234234,-0.24112754,-0.23991612,-0.23870806,-0.23750335,-0.23630199,-0.23510394,-0.23390917,-0.2327177,-0.23152947,-0.23034449,-0.22916274,-0.22798419,-0.22680883,-0.22563665,-0.22446762,-0.22330172,-0.22213896,-0.22097929,-0.21982272,-0.2186692,-0.21751876,-0.21637134,-0.21522696,-0.21408558,-0.21294719,-0.21181178,-0.21067934,-0.20954983,-0.20842326,-0.20729959,-0.20617883,-0.20506096,-0.20394595,-0.2028338,-0.20172448,-0.20061801,-0.19951433,-0.19841346,-0.19731538,-0.19622006,-0.19512749,-0.19403766,-0.19295056,-0.19186619,-0.1907845,-0.1897055,-0.1886292,-0.18755554,-0.18648453,-0.18541615,-0.1843504,-0.18328725,-0.1822267,-0.18116874,-0.18011335,-0.1790605,-0.17801021,-0.17696247,-0.17591722,-0.1748745,-0.17383428,-0.17279653,-0.17176127,-0.17072846,-0.1696981,-0.16867019,-0.16764471,-0.16662163,-0.16560096,-0.16458268,-0.16356678,-0.16255327,-0.1615421,-0.1605333,-0.15952681,-0.15852267,-0.15752083,-0.1565213,-0.15552408,-0.15452912,-0.15353645,-0.15254603,-0.15155788,-0.15057197,-0.14958829,-0.14860684,-0.14762759,-0.14665055,-0.1456757,-0.14470303,-0.14373255,-0.14276421,-0.14179805,-0.14083402,-0.13987212,-0.13891235,-0.13795471,-0.13699916,-0.13604571,-0.13509436,-0.13414508,-0.13319787,-0.13225272,-0.13130963,-0.13036859,-0.12942956,-0.12849258,-0.1275576,-0.12662464,-0.12569368,-0.1247647,-0.12383772,-0.1229127,-0.12198965,-0.12106856,-0.12014942,-0.119232215,-0.11831695,-0.117403604,-0.11649218,-0.11558266,-0.114675045,-0.11376932,-0.112865485,-0.11196352,-0.11106343,-0.11016519,-0.10926882,-0.10837429,-0.1074816,-0.10659073,-0.1057017,-0.10481448,-0.103929065,-0.103045456,-0.10216364,-0.10128361,-0.10040536,-0.09952888,-0.09865417,-0.09778122,-0.096910015],"x":[1.0e-30,0.0016032064128256513,0.0032064128256513026,0.0048096192384769546,0.006412825651302605,0.008016032064128258,0.009619238476953909,0.011222444889779559,0.01282565130260521,0.014428857715430862,0.016032064128256515,0.017635270541082167,0.019238476953907818,0.02084168336673347,0.022444889779559118,0.02404809619238477,0.02565130260521042,0.027254509018036072,0.028857715430861724,0.030460921843687375,0.03206412825651303,0.03366733466933868,0.03527054108216433,0.036873747494989985,0.038476953907815636,0.04008016032064129,0.04168336673346694,0.04328657314629259,0.044889779559118236,0.04649298597194389,0.04809619238476954,0.04969939879759519,0.05130260521042084,0.05290581162324649,0.054509018036072145,0.056112224448897796,0.05771543086172345,0.0593186372745491,0.06092184368737475,0.0625250501002004,0.06412825651302606,0.0657314629258517,0.06733466933867736,0.06893787575150301,0.07054108216432867,0.07214428857715431,0.07374749498997997,0.07535070140280561,0.07695390781563127,0.07855711422845692,0.08016032064128258,0.08176352705410822,0.08336673346693388,0.08496993987975952,0.08657314629258518,0.08817635270541083,0.08977955911823647,0.09138276553106213,0.09298597194388777,0.09458917835671343,0.09619238476953908,0.09779559118236474,0.09939879759519038,0.10100200400801604,0.10260521042084168,0.10420841683366734,0.10581162324649299,0.10741482965931864,0.10901803607214429,0.11062124248496995,0.11222444889779559,0.11382765531062125,0.1154308617234469,0.11703406813627255,0.1186372745490982,0.12024048096192386,0.1218436873747495,0.12344689378757516,0.1250501002004008,0.12665330661322646,0.12825651302605212,0.12985971943887775,0.1314629258517034,0.13306613226452907,0.13466933867735473,0.13627254509018036,0.13787575150300602,0.13947895791583168,0.14108216432865733,0.14268537074148296,0.14428857715430862,0.14589178356713428,0.14749498997995994,0.14909819639278557,0.15070140280561123,0.1523046092184369,0.15390781563126255,0.15551102204408818,0.15711422845691383,0.1587174348697395,0.16032064128256515,0.16192384769539078,0.16352705410821644,0.1651302605210421,0.16673346693386776,0.1683366733466934,0.16993987975951905,0.1715430861723447,0.17314629258517036,0.174749498997996,0.17635270541082165,0.1779559118236473,0.17955911823647294,0.1811623246492986,0.18276553106212426,0.18436873747494992,0.18597194388777555,0.1875751503006012,0.18917835671342687,0.19078156312625252,0.19238476953907815,0.1939879759519038,0.19559118236472947,0.19719438877755513,0.19879759519038076,0.20040080160320642,0.20200400801603208,0.20360721442885774,0.20521042084168337,0.20681362725450902,0.20841683366733468,0.21002004008016034,0.21162324649298597,0.21322645290581163,0.2148296593186373,0.21643286573146295,0.21803607214428858,0.21963927855711424,0.2212424849699399,0.22284569138276555,0.22444889779559118,0.22605210420841684,0.2276553106212425,0.22925851703406816,0.2308617234468938,0.23246492985971945,0.2340681362725451,0.23567134268537077,0.2372745490981964,0.23887775551102206,0.2404809619238477,0.24208416833667337,0.243687374749499,0.24529058116232466,0.24689378757515032,0.24849699398797598,0.2501002004008016,0.2517034068136273,0.2533066132264529,0.25490981963927856,0.25651302605210424,0.2581162324649299,0.2597194388777555,0.2613226452905812,0.2629258517034068,0.2645290581162325,0.26613226452905814,0.26773547094188377,0.26933867735470945,0.2709418837675351,0.2725450901803607,0.2741482965931864,0.27575150300601203,0.27735470941883766,0.27895791583166335,0.280561122244489,0.28216432865731467,0.2837675350701403,0.28537074148296593,0.2869739478957916,0.28857715430861725,0.2901803607214429,0.29178356713426856,0.2933867735470942,0.2949899799599199,0.2965931863727455,0.29819639278557114,0.2997995991983968,0.30140280561122246,0.3030060120240481,0.3046092184368738,0.3062124248496994,0.3078156312625251,0.3094188376753507,0.31102204408817635,0.31262525050100204,0.31422845691382767,0.3158316633266533,0.317434869739479,0.3190380761523046,0.3206412825651303,0.32224448897795593,0.32384769539078156,0.32545090180360725,0.3270541082164329,0.3286573146292585,0.3302605210420842,0.33186372745490983,0.3334669338677355,0.33507014028056115,0.3366733466933868,0.33827655310621246,0.3398797595190381,0.3414829659318637,0.3430861723446894,0.34468937875751504,0.3462925851703407,0.34789579158316636,0.349498997995992,0.3511022044088177,0.3527054108216433,0.35430861723446894,0.3559118236472946,0.35751503006012025,0.3591182364729459,0.36072144288577157,0.3623246492985972,0.3639278557114229,0.3655310621242485,0.36713426853707415,0.36873747494989983,0.37034068136272547,0.3719438877755511,0.3735470941883768,0.3751503006012024,0.3767535070140281,0.37835671342685373,0.37995991983967936,0.38156312625250505,0.3831663326653307,0.3847695390781563,0.386372745490982,0.3879759519038076,0.3895791583166333,0.39118236472945894,0.3927855711422846,0.39438877755511026,0.3959919839679359,0.3975951903807615,0.3991983967935872,0.40080160320641284,0.4024048096192385,0.40400801603206415,0.4056112224448898,0.40721442885771547,0.4088176352705411,0.41042084168336673,0.4120240480961924,0.41362725450901805,0.41523046092184374,0.41683366733466937,0.418436873747495,0.4200400801603207,0.4216432865731463,0.42324649298597194,0.42484969939879763,0.42645290581162326,0.42805611222444895,0.4296593186372746,0.4312625250501002,0.4328657314629259,0.4344689378757515,0.43607214428857716,0.43767535070140284,0.4392785571142285,0.44088176352705416,0.4424849699398798,0.4440881763527054,0.4456913827655311,0.44729458917835674,0.44889779559118237,0.45050100200400806,0.4521042084168337,0.4537074148296593,0.455310621242485,0.45691382765531063,0.4585170340681363,0.46012024048096195,0.4617234468937876,0.46332665330661327,0.4649298597194389,0.46653306613226453,0.4681362725450902,0.46973947895791585,0.47134268537074153,0.47294589178356716,0.4745490981963928,0.4761523046092185,0.4777555110220441,0.47935871743486974,0.4809619238476954,0.48256513026052106,0.48416833667334674,0.4857715430861724,0.487374749498998,0.4889779559118237,0.4905811623246493,0.49218436873747495,0.49378757515030064,0.49539078156312627,0.49699398797595196,0.4985971943887776,0.5002004008016032,0.5018036072144288,0.5034068136272546,0.5050100200400802,0.5066132264529059,0.5082164328657315,0.5098196392785571,0.5114228456913827,0.5130260521042085,0.5146292585170341,0.5162324649298597,0.5178356713426854,0.519438877755511,0.5210420841683367,0.5226452905811624,0.524248496993988,0.5258517034068136,0.5274549098196393,0.529058116232465,0.5306613226452906,0.5322645290581163,0.5338677354709419,0.5354709418837675,0.5370741482965932,0.5386773547094189,0.5402805611222445,0.5418837675350702,0.5434869739478958,0.5450901803607214,0.5466933867735472,0.5482965931863728,0.5498997995991984,0.5515030060120241,0.5531062124248497,0.5547094188376753,0.5563126252505011,0.5579158316633267,0.5595190380761523,0.561122244488978,0.5627254509018036,0.5643286573146293,0.565931863727455,0.5675350701402806,0.5691382765531062,0.5707414829659319,0.5723446893787576,0.5739478957915832,0.5755511022044089,0.5771543086172345,0.5787575150300601,0.5803607214428858,0.5819639278557115,0.5835671342685371,0.5851703406813628,0.5867735470941884,0.588376753507014,0.5899799599198398,0.5915831663326654,0.593186372745491,0.5947895791583167,0.5963927855711423,0.597995991983968,0.5995991983967937,0.6012024048096193,0.6028056112224449,0.6044088176352705,0.6060120240480962,0.6076152304609219,0.6092184368737475,0.6108216432865732,0.6124248496993988,0.6140280561122244,0.6156312625250502,0.6172344689378758,0.6188376753507014,0.6204408817635271,0.6220440881763527,0.6236472945891783,0.6252505010020041,0.6268537074148297,0.6284569138276553,0.630060120240481,0.6316633266533066,0.6332665330661323,0.634869739478958,0.6364729458917836,0.6380761523046092,0.6396793587174349,0.6412825651302606,0.6428857715430862,0.6444889779559119,0.6460921843687375,0.6476953907815631,0.6492985971943888,0.6509018036072145,0.6525050100200401,0.6541082164328658,0.6557114228456914,0.657314629258517,0.6589178356713428,0.6605210420841684,0.662124248496994,0.6637274549098197,0.6653306613226453,0.666933867735471,0.6685370741482967,0.6701402805611223,0.6717434869739479,0.6733466933867736,0.6749498997995992,0.6765531062124249,0.6781563126252506,0.6797595190380762,0.6813627254509018,0.6829659318637274,0.6845691382765532,0.6861723446893788,0.6877755511022045,0.6893787575150301,0.6909819639278557,0.6925851703406815,0.6941883767535071,0.6957915831663327,0.6973947895791583,0.698997995991984,0.7006012024048096,0.7022044088176354,0.703807615230461,0.7054108216432866,0.7070140280561122,0.7086172344689379,0.7102204408817636,0.7118236472945892,0.7134268537074149,0.7150300601202405,0.7166332665330661,0.7182364729458918,0.7198396793587175,0.7214428857715431,0.7230460921843688,0.7246492985971944,0.72625250501002,0.7278557114228458,0.7294589178356714,0.731062124248497,0.7326653306613227,0.7342685370741483,0.735871743486974,0.7374749498997997,0.7390781563126253,0.7406813627254509,0.7422845691382766,0.7438877755511022,0.7454909819639279,0.7470941883767536,0.7486973947895792,0.7503006012024048,0.7519038076152305,0.7535070140280562,0.7551102204408818,0.7567134268537075,0.7583166332665331,0.7599198396793587,0.7615230460921845,0.7631262525050101,0.7647294589178357,0.7663326653306614,0.767935871743487,0.7695390781563126,0.7711422845691384,0.772745490981964,0.7743486973947896,0.7759519038076153,0.7775551102204409,0.7791583166332666,0.7807615230460923,0.7823647294589179,0.7839679358717435,0.7855711422845691,0.7871743486973949,0.7887775551102205,0.7903807615230461,0.7919839679358718,0.7935871743486974,0.795190380761523,0.7967935871743488,0.7983967935871744,0.8]} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/subnormal.json b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/subnormal.json new file mode 100644 index 000000000000..6ea3c560fe9b --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/subnormal.json @@ -0,0 +1 @@ +{"expected":[-39.0,-39.00087,-39.001743,-39.00262,-39.003494,-39.004375,-39.005253,-39.006134,-39.00702,-39.007904,-39.008793,-39.00968,-39.01057,-39.011463,-39.01236,-39.013256,-39.014153,-39.015053,-39.015957,-39.01686,-39.017765,-39.018673,-39.01958,-39.020493,-39.021408,-39.022324,-39.02324,-39.02416,-39.025078,-39.026,-39.026928,-39.027855,-39.02878,-39.029716,-39.030647,-39.03158,-39.03252,-39.03346,-39.0344,-39.035343,-39.03629,-39.037235,-39.038185,-39.039135,-39.04009,-39.041046,-39.042004,-39.04296,-39.043922,-39.044888,-39.045853,-39.04682,-39.047794,-39.048767,-39.04974,-39.050716,-39.051697,-39.052677,-39.05366,-39.05465,-39.055637,-39.056625,-39.057617,-39.058613,-39.059612,-39.06061,-39.06161,-39.06262,-39.06362,-39.064632,-39.065643,-39.066658,-39.067673,-39.06869,-39.06971,-39.070736,-39.07176,-39.07279,-39.07382,-39.074852,-39.075886,-39.076923,-39.077965,-39.079006,-39.08005,-39.0811,-39.08215,-39.083202,-39.08426,-39.085316,-39.086376,-39.08744,-39.088505,-39.089573,-39.090645,-39.09172,-39.092796,-39.093876,-39.094955,-39.09604,-39.097126,-39.098217,-39.099308,-39.100407,-39.1015,-39.102604,-39.103706,-39.104813,-39.105923,-39.107037,-39.10815,-39.10927,-39.11039,-39.11151,-39.11264,-39.11377,-39.114902,-39.116035,-39.117176,-39.118317,-39.11946,-39.12061,-39.121758,-39.122913,-39.12407,-39.12523,-39.126392,-39.127556,-39.128727,-39.129898,-39.131073,-39.13225,-39.133434,-39.13462,-39.135807,-39.136997,-39.138195,-39.139393,-39.140594,-39.141796,-39.143005,-39.14422,-39.14543,-39.14665,-39.147873,-39.149097,-39.150326,-39.151558,-39.152794,-39.154034,-39.155273,-39.15652,-39.157772,-39.159023,-39.160282,-39.16154,-39.162807,-39.164074,-39.165344,-39.166622,-39.1679,-39.16918,-39.17047,-39.17176,-39.173054,-39.174355,-39.175655,-39.176964,-39.178272,-39.179585,-39.180904,-39.182228,-39.18355,-39.184883,-39.18622,-39.187553,-39.188896,-39.190243,-39.191597,-39.19295,-39.19431,-39.195675,-39.19704,-39.198414,-39.19979,-39.20117,-39.202557,-39.203945,-39.20534,-39.206738,-39.20814,-39.20955,-39.21096,-39.21238,-39.2138,-39.215225,-39.216656,-39.218094,-39.219532,-39.220978,-39.222427,-39.223885,-39.22534,-39.226807,-39.22828,-39.22975,-39.23123,-39.232716,-39.234207,-39.235703,-39.2372,-39.23871,-39.24022,-39.241734,-39.243256,-39.24478,-39.246315,-39.247852,-39.249393,-39.250942,-39.252495,-39.254055,-39.25562,-39.25719,-39.258766,-39.26035,-39.261936,-39.26353,-39.26513,-39.266735,-39.26835,-39.269966,-39.271587,-39.27322,-39.274853,-39.276497,-39.278145,-39.2798,-39.28146,-39.283127,-39.2848,-39.28648,-39.288166,-39.28986,-39.29156,-39.293266,-39.29498,-39.2967,-39.298428,-39.30016,-39.3019,-39.30365,-39.305405,-39.307163,-39.308933,-39.31071,-39.312492,-39.314285,-39.316082,-39.31789,-39.319702,-39.32152,-39.323353,-39.325188,-39.32703,-39.328884,-39.330746,-39.33261,-39.334488,-39.336372,-39.338264,-39.340164,-39.342075,-39.34399,-39.345917,-39.34785,-39.349796,-39.351746,-39.353706,-39.35568,-39.357655,-39.359642,-39.36164,-39.363647,-39.36566,-39.367687,-39.36972,-39.371765,-39.373817,-39.37588,-39.377953,-39.380035,-39.38213,-39.38423,-39.386345,-39.38847,-39.390602,-39.39275,-39.394905,-39.397068,-39.399246,-39.401436,-39.403633,-39.40584,-39.408066,-39.410297,-39.41254,-39.4148,-39.417065,-39.419346,-39.42164,-39.423943,-39.426258,-39.428585,-39.430927,-39.43328,-39.43565,-39.438026,-39.440422,-39.442825,-39.445248,-39.447678,-39.450127,-39.452587,-39.455063,-39.45755,-39.460052,-39.46257,-39.465103,-39.46765,-39.47021,-39.47279,-39.475384,-39.477993,-39.480614,-39.483257,-39.485912,-39.488583,-39.491272,-39.49398,-39.4967,-39.499443,-39.5022,-39.504974,-39.507767,-39.51058,-39.51341,-39.516254,-39.519123,-39.522007,-39.524914,-39.527836,-39.53078,-39.533745,-39.53673,-39.539738,-39.542763,-39.54581,-39.54888,-39.55197,-39.555084,-39.55822,-39.56138,-39.56456,-39.567764,-39.570995,-39.574245,-39.577526,-39.580826,-39.584156,-39.58751,-39.59089,-39.594296,-39.59773,-39.60119,-39.604675,-39.608192,-39.61174,-39.615314,-39.618916,-39.62255,-39.626217,-39.629913,-39.63364,-39.6374,-39.641193,-39.64502,-39.64888,-39.652775,-39.656704,-39.66067,-39.664673,-39.668716,-39.67279,-39.67691,-39.681065,-39.68526,-39.6895,-39.693775,-39.698097,-39.70246,-39.70687,-39.711327,-39.715828,-39.720375,-39.72497,-39.729614,-39.73431,-39.739056,-39.743855,-39.748707,-39.753616,-39.75858,-39.7636,-39.768677,-39.77382,-39.77902,-39.784283,-39.78961,-39.795006,-39.80047,-39.806004,-39.811607,-39.817284,-39.823036,-39.828865,-39.834774,-39.840763,-39.84684,-39.853,-39.85925,-39.86559,-39.87202,-39.87855,-39.88518,-39.89192,-39.898754,-39.905704,-39.912766,-39.919945,-39.927242,-39.93467,-39.942223,-39.94991,-39.957733,-39.965702,-39.97382,-39.982094,-39.990524,-39.999126,-40.0079,-40.016853,-40.025997,-40.035336,-40.044884,-40.05464,-40.064625,-40.074844,-40.085308,-40.096035,-40.10703,-40.11831,-40.12989,-40.14179,-40.154026,-40.166615,-40.179577,-40.192944,-40.20673,-40.22097,-40.23569,-40.25093,-40.266727,-40.283115,-40.300148,-40.31788,-40.33636,-40.355663,-40.375866,-40.397057,-40.41933,-40.44281,-40.467636,-40.49396,-40.521988,-40.551952,-40.584133,-40.618896,-40.65668,-40.69807,-40.743824,-40.79497,-40.85296,-40.9199,-40.99907,-41.095966,-41.22088,-41.39692,-41.697796,-44.85347],"x":[1.0e-39,9.979959947921812e-40,9.959919895843624e-40,9.939879843765438e-40,9.919839791687251e-40,9.899799739609064e-40,9.879759687530876e-40,9.859719635452689e-40,9.839679583374501e-40,9.819639531296315e-40,9.799599479218128e-40,9.77955942713994e-40,9.759519375061753e-40,9.739479322983565e-40,9.71943927090538e-40,9.699399218827192e-40,9.679359166749005e-40,9.659319114670817e-40,9.63927906259263e-40,9.619239010514444e-40,9.599198958436256e-40,9.579158906358069e-40,9.559118854279881e-40,9.539078802201694e-40,9.519038750123506e-40,9.49899869804532e-40,9.478958645967133e-40,9.458918593888946e-40,9.438878541810758e-40,9.41883848973257e-40,9.398798437654385e-40,9.378758385576197e-40,9.35871833349801e-40,9.338678281419822e-40,9.318638229341635e-40,9.298598177263449e-40,9.278558125185261e-40,9.258518073107074e-40,9.238478021028887e-40,9.218437968950699e-40,9.198397916872512e-40,9.178357864794326e-40,9.158317812716138e-40,9.13827776063795e-40,9.118237708559763e-40,9.098197656481576e-40,9.07815760440339e-40,9.058117552325202e-40,9.038077500247015e-40,9.018037448168828e-40,8.99799739609064e-40,8.977957344012454e-40,8.957917291934267e-40,8.93787723985608e-40,8.917837187777892e-40,8.897797135699704e-40,8.877757083621517e-40,8.857717031543331e-40,8.837676979465143e-40,8.817636927386956e-40,8.797596875308769e-40,8.777556823230581e-40,8.757516771152395e-40,8.737476719074208e-40,8.71743666699602e-40,8.697396614917833e-40,8.677356562839645e-40,8.65731651076146e-40,8.637276458683272e-40,8.617236406605084e-40,8.597196354526897e-40,8.57715630244871e-40,8.557116250370522e-40,8.537076198292336e-40,8.517036146214149e-40,8.496996094135961e-40,8.476956042057774e-40,8.456915989979586e-40,8.4368759379014e-40,8.416835885823213e-40,8.396795833745025e-40,8.376755781666838e-40,8.35671572958865e-40,8.336675677510465e-40,8.316635625432277e-40,8.29659557335409e-40,8.276555521275902e-40,8.256515469197715e-40,8.236475417119527e-40,8.216435365041341e-40,8.196395312963154e-40,8.176355260884966e-40,8.156315208806779e-40,8.136275156728592e-40,8.116235104650406e-40,8.096195052572218e-40,8.07615500049403e-40,8.056114948415843e-40,8.036074896337656e-40,8.01603484425947e-40,7.995994792181282e-40,7.975954740103095e-40,7.955914688024907e-40,7.93587463594672e-40,7.915834583868533e-40,7.895794531790347e-40,7.87575447971216e-40,7.855714427633972e-40,7.835674375555784e-40,7.815634323477597e-40,7.795594271399411e-40,7.775554219321223e-40,7.755514167243036e-40,7.735474115164848e-40,7.715434063086661e-40,7.695394011008475e-40,7.675353958930288e-40,7.6553139068521e-40,7.635273854773913e-40,7.615233802695725e-40,7.595193750617538e-40,7.575153698539352e-40,7.555113646461164e-40,7.535073594382977e-40,7.51503354230479e-40,7.494993490226602e-40,7.474953438148416e-40,7.454913386070229e-40,7.434873333992041e-40,7.414833281913854e-40,7.394793229835666e-40,7.37475317775748e-40,7.354713125679293e-40,7.3346730736011054e-40,7.314633021522918e-40,7.294592969444731e-40,7.274552917366544e-40,7.254512865288356e-40,7.23447281321017e-40,7.214432761131982e-40,7.194392709053795e-40,7.174352656975608e-40,7.1543126048974206e-40,7.134272552819234e-40,7.1142325007410464e-40,7.094192448662859e-40,7.074152396584672e-40,7.054112344506485e-40,7.034072292428297e-40,7.014032240350111e-40,6.993992188271923e-40,6.9739521361937365e-40,6.953912084115549e-40,6.9338720320373616e-40,6.913831979959175e-40,6.8937919278809874e-40,6.8737518758028e-40,6.853711823724613e-40,6.833671771646426e-40,6.813631719568239e-40,6.793591667490052e-40,6.773551615411864e-40,6.7535115633336775e-40,6.73347151125549e-40,6.7134314591773026e-40,6.693391407099116e-40,6.6733513550209284e-40,6.653311302942742e-40,6.633271250864554e-40,6.613231198786367e-40,6.59319114670818e-40,6.573151094629993e-40,6.553111042551805e-40,6.5330709904736185e-40,6.513030938395431e-40,6.492990886317244e-40,6.472950834239057e-40,6.4529107821608694e-40,6.432870730082683e-40,6.412830678004495e-40,6.392790625926308e-40,6.372750573848121e-40,6.352710521769934e-40,6.332670469691747e-40,6.3126304176135595e-40,6.292590365535372e-40,6.272550313457185e-40,6.252510261378998e-40,6.2324702093008104e-40,6.212430157222624e-40,6.192390105144436e-40,6.17235005306625e-40,6.152310000988062e-40,6.132269948909875e-40,6.112229896831688e-40,6.0921898447535005e-40,6.072149792675313e-40,6.052109740597126e-40,6.032069688518939e-40,6.012029636440752e-40,5.991989584362565e-40,5.971949532284377e-40,5.951909480206191e-40,5.931869428128003e-40,5.911829376049816e-40,5.891789323971629e-40,5.8717492718934415e-40,5.851709219815255e-40,5.831669167737067e-40,5.81162911565888e-40,5.791589063580693e-40,5.771549011502506e-40,5.751508959424318e-40,5.731468907346132e-40,5.711428855267944e-40,5.6913888031897575e-40,5.67134875111157e-40,5.6513086990333825e-40,5.631268646955196e-40,5.611228594877008e-40,5.591188542798821e-40,5.571148490720634e-40,5.551108438642447e-40,5.53106838656426e-40,5.511028334486073e-40,5.490988282407885e-40,5.4709482303296985e-40,5.450908178251511e-40,5.4308681261733235e-40,5.410828074095137e-40,5.390788022016949e-40,5.370747969938763e-40,5.350707917860575e-40,5.330667865782388e-40,5.310627813704201e-40,5.290587761626014e-40,5.270547709547826e-40,5.2505076574696395e-40,5.230467605391452e-40,5.210427553313265e-40,5.190387501235078e-40,5.17034744915689e-40,5.150307397078704e-40,5.130267345000516e-40,5.110227292922329e-40,5.090187240844142e-40,5.070147188765955e-40,5.050107136687768e-40,5.0300670846095805e-40,5.010027032531393e-40,4.989986980453206e-40,4.969946928375019e-40,4.949906876296831e-40,4.929866824218645e-40,4.909826772140457e-40,4.8897867200622706e-40,4.869746667984083e-40,4.849706615905896e-40,4.829666563827709e-40,4.8096265117495215e-40,4.789586459671334e-40,4.769546407593147e-40,4.74950635551496e-40,4.729466303436773e-40,4.709426251358586e-40,4.689386199280398e-40,4.6693461472022116e-40,4.649306095124024e-40,4.629266043045837e-40,4.60922599096765e-40,4.5891859388894625e-40,4.569145886811276e-40,4.549105834733088e-40,4.529065782654901e-40,4.509025730576714e-40,4.488985678498527e-40,4.468945626420339e-40,4.4489055743421526e-40,4.428865522263965e-40,4.4088254701857784e-40,4.388785418107591e-40,4.3687453660294035e-40,4.348705313951217e-40,4.328665261873029e-40,4.308625209794842e-40,4.288585157716655e-40,4.268545105638468e-40,4.248505053560281e-40,4.2284650014820936e-40,4.208424949403906e-40,4.1883848973257194e-40,4.168344845247532e-40,4.1483047931693445e-40,4.128264741091158e-40,4.10822468901297e-40,4.088184636934784e-40,4.068144584856596e-40,4.048104532778409e-40,4.028064480700222e-40,4.0080244286220346e-40,3.987984376543847e-40,3.9679443244656604e-40,3.947904272387473e-40,3.927864220309286e-40,3.907824168231099e-40,3.887784116152911e-40,3.867744064074725e-40,3.847704011996537e-40,3.82766395991835e-40,3.807623907840163e-40,3.7875838557619756e-40,3.767543803683789e-40,3.7475037516056014e-40,3.727463699527414e-40,3.707423647449227e-40,3.68738359537104e-40,3.6673435432928527e-40,3.6473034912146657e-40,3.627263439136478e-40,3.607223387058291e-40,3.587183334980104e-40,3.567143282901917e-40,3.5471032308237295e-40,3.5270631787455424e-40,3.5070231266673553e-40,3.4869830745891683e-40,3.4669430225109808e-40,3.4469029704327937e-40,3.4268629183546067e-40,3.4068228662764196e-40,3.386782814198232e-40,3.366742762120045e-40,3.346702710041858e-40,3.326662657963671e-40,3.3066226058854834e-40,3.2865825538072963e-40,3.2665425017291093e-40,3.246502449650922e-40,3.2264623975727347e-40,3.2064223454945476e-40,3.1863822934163606e-40,3.1663422413381735e-40,3.146302189259986e-40,3.126262137181799e-40,3.106222085103612e-40,3.086182033025425e-40,3.0661419809472373e-40,3.0461019288690503e-40,3.026061876790863e-40,3.006021824712676e-40,2.9859817726344886e-40,2.9659417205563016e-40,2.9459016684781145e-40,2.9258616163999274e-40,2.90582156432174e-40,2.885781512243553e-40,2.865741460165366e-40,2.8457014080871787e-40,2.8256613560089913e-40,2.805621303930804e-40,2.785581251852617e-40,2.76554119977443e-40,2.7455011476962426e-40,2.7254610956180555e-40,2.7054210435398684e-40,2.6853809914616814e-40,2.665340939383494e-40,2.645300887305307e-40,2.6252608352271197e-40,2.6052207831489327e-40,2.585180731070745e-40,2.565140678992558e-40,2.545100626914371e-40,2.525060574836184e-40,2.5050205227579965e-40,2.4849804706798094e-40,2.4649404186016224e-40,2.4449003665234353e-40,2.424860314445248e-40,2.4048202623670607e-40,2.3847802102888737e-40,2.3647401582106866e-40,2.344700106132499e-40,2.324660054054312e-40,2.304620001976125e-40,2.284579949897938e-40,2.2645398978197504e-40,2.2444998457415634e-40,2.2244597936633763e-40,2.2044197415851892e-40,2.1843796895070017e-40,2.1643396374288147e-40,2.1442995853506276e-40,2.1242595332724405e-40,2.104219481194253e-40,2.084179429116066e-40,2.064139377037879e-40,2.044099324959692e-40,2.0240592728815044e-40,2.0040192208033173e-40,1.9839791687251302e-40,1.963939116646943e-40,1.9438990645687557e-40,1.9238590124905686e-40,1.9038189604123815e-40,1.8837789083341945e-40,1.863738856256007e-40,1.84369880417782e-40,1.8236587520996328e-40,1.8036187000214456e-40,1.7835786479432585e-40,1.7635385958650712e-40,1.7434985437868841e-40,1.7234584917086969e-40,1.7034184396305098e-40,1.6833783875523225e-40,1.6633383354741355e-40,1.6432982833959482e-40,1.6232582313177611e-40,1.6032181792395738e-40,1.5831781271613868e-40,1.5631380750831995e-40,1.5430980230050124e-40,1.5230579709268251e-40,1.503017918848638e-40,1.4829778667704508e-40,1.4629378146922635e-40,1.4428977626140765e-40,1.4228577105358892e-40,1.4028176584577021e-40,1.3827776063795148e-40,1.3627375543013278e-40,1.3426975022231405e-40,1.3226574501449534e-40,1.3026173980667661e-40,1.282577345988579e-40,1.2625372939103918e-40,1.2424972418322047e-40,1.2224571897540175e-40,1.2024171376758304e-40,1.1823770855976431e-40,1.162337033519456e-40,1.1422969814412688e-40,1.1222569293630817e-40,1.1022168772848944e-40,1.0821768252067073e-40,1.06213677312852e-40,1.042096721050333e-40,1.0220566689721457e-40,1.0020166168939587e-40,9.819765648157714e-41,9.619365127375843e-41,9.41896460659397e-41,9.2185640858121e-41,9.018163565030228e-41,8.817763044248356e-41,8.617362523466484e-41,8.416962002684613e-41,8.216561481902741e-41,8.016160961120869e-41,7.815760440338998e-41,7.615359919557126e-41,7.414959398775254e-41,7.214558877993382e-41,7.014158357211511e-41,6.813757836429639e-41,6.613357315647767e-41,6.412956794865895e-41,6.212556274084024e-41,6.012155753302152e-41,5.81175523252028e-41,5.611354711738409e-41,5.410954190956537e-41,5.210553670174665e-41,5.010153149392793e-41,4.809752628610922e-41,4.60935210782905e-41,4.408951587047178e-41,4.2085510662653064e-41,4.0081505454834347e-41,3.807750024701563e-41,3.6073495039196913e-41,3.4069489831378195e-41,3.206548462355948e-41,3.006147941574076e-41,2.8057474207922044e-41,2.6053469000103326e-41,2.404946379228461e-41,2.204545858446589e-41,2.0041453376647172e-41,1.8037448168828455e-41,1.6033442961009737e-41,1.402943775319102e-41,1.2025432545372303e-41,1.0021427337553587e-41,8.01742212973487e-42,6.013416921916152e-42,4.0094117140974344e-42,2.0054065062787172e-42,1.40129846e-45]} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/tiny_positive.json b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/tiny_positive.json new file mode 100644 index 000000000000..f9db511f7b0a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/tiny_positive.json @@ -0,0 +1 @@ +{"expected":[-30.0,-30.000872,-30.001743,-30.002619,-30.003496,-30.004374,-30.005253,-30.006136,-30.007019,-30.007904,-30.008791,-30.00968,-30.010572,-30.011465,-30.01236,-30.013256,-30.014153,-30.015053,-30.015955,-30.01686,-30.017765,-30.018673,-30.019583,-30.020494,-30.021406,-30.022322,-30.02324,-30.024158,-30.02508,-30.026003,-30.026928,-30.027855,-30.028784,-30.029715,-30.030647,-30.031582,-30.03252,-30.033459,-30.034399,-30.035343,-30.036287,-30.037235,-30.038185,-30.039135,-30.040089,-30.041044,-30.042002,-30.042963,-30.043924,-30.044888,-30.045855,-30.046822,-30.047792,-30.048765,-30.04974,-30.050718,-30.051697,-30.05268,-30.053661,-30.054647,-30.055635,-30.056627,-30.05762,-30.058615,-30.05961,-30.060612,-30.061613,-30.062616,-30.063623,-30.064632,-30.065643,-30.066656,-30.067673,-30.068691,-30.069712,-30.070734,-30.07176,-30.072788,-30.073818,-30.074852,-30.075886,-30.076923,-30.077965,-30.079008,-30.080053,-30.0811,-30.082151,-30.083204,-30.084259,-30.085318,-30.086378,-30.08744,-30.088507,-30.089575,-30.090645,-30.091719,-30.092796,-30.093874,-30.094955,-30.09604,-30.097128,-30.098217,-30.09931,-30.100405,-30.101503,-30.102604,-30.103708,-30.104815,-30.105925,-30.107037,-30.10815,-30.109268,-30.11039,-30.111513,-30.11264,-30.11377,-30.114902,-30.116037,-30.117176,-30.118317,-30.119461,-30.12061,-30.12176,-30.122913,-30.12407,-30.125229,-30.126392,-30.127558,-30.128727,-30.129898,-30.131075,-30.132254,-30.133434,-30.134619,-30.135807,-30.137,-30.138193,-30.139393,-30.140593,-30.141798,-30.143005,-30.144218,-30.145432,-30.14665,-30.147873,-30.149097,-30.150326,-30.151558,-30.152794,-30.154032,-30.155275,-30.15652,-30.15777,-30.159025,-30.160282,-30.161543,-30.162806,-30.164074,-30.165346,-30.166622,-30.1679,-30.169184,-30.170471,-30.17176,-30.173056,-30.174355,-30.175655,-30.176962,-30.178272,-30.179586,-30.180904,-30.182226,-30.183554,-30.184883,-30.186216,-30.187555,-30.188898,-30.190245,-30.191595,-30.192951,-30.19431,-30.195673,-30.19704,-30.198414,-30.19979,-30.20117,-30.202557,-30.203945,-30.20534,-30.20674,-30.208141,-30.209549,-30.210962,-30.21238,-30.2138,-30.215227,-30.216658,-30.218094,-30.219534,-30.22098,-30.22243,-30.223885,-30.225344,-30.226809,-30.22828,-30.229753,-30.231234,-30.232718,-30.234207,-30.235703,-30.237204,-30.238708,-30.24022,-30.241735,-30.243256,-30.244781,-30.246315,-30.247852,-30.249393,-30.250942,-30.252497,-30.254055,-30.255621,-30.25719,-30.258768,-30.26035,-30.261938,-30.26353,-30.265131,-30.266737,-30.268349,-30.269966,-30.27159,-30.273218,-30.274855,-30.276497,-30.278145,-30.279799,-30.28146,-30.283127,-30.284801,-30.28648,-30.288168,-30.28986,-30.291561,-30.293266,-30.29498,-30.2967,-30.298428,-30.300161,-30.3019,-30.303648,-30.305403,-30.307165,-30.308935,-30.31071,-30.312494,-30.314285,-30.316084,-30.31789,-30.319702,-30.321524,-30.323353,-30.325188,-30.327032,-30.328884,-30.330744,-30.332613,-30.334488,-30.336372,-30.338264,-30.340166,-30.342075,-30.343992,-30.345919,-30.347853,-30.349796,-30.351748,-30.353708,-30.355679,-30.357656,-30.359644,-30.36164,-30.363647,-30.365662,-30.367687,-30.36972,-30.371765,-30.373817,-30.375881,-30.377954,-30.380037,-30.38213,-30.384233,-30.386347,-30.38847,-30.390604,-30.39275,-30.394905,-30.39707,-30.399248,-30.401436,-30.403635,-30.405844,-30.408066,-30.4103,-30.412542,-30.414799,-30.417067,-30.419348,-30.421638,-30.423943,-30.426258,-30.428587,-30.43093,-30.433283,-30.43565,-30.438028,-30.440422,-30.442827,-30.445248,-30.447681,-30.450127,-30.452587,-30.455063,-30.457552,-30.460054,-30.462572,-30.465105,-30.467651,-30.470213,-30.472792,-30.475384,-30.477993,-30.480618,-30.483257,-30.485912,-30.488586,-30.491274,-30.49398,-30.496704,-30.499443,-30.502201,-30.504976,-30.507769,-30.51058,-30.513409,-30.516256,-30.519123,-30.522009,-30.524914,-30.52784,-30.530783,-30.533749,-30.536732,-30.539738,-30.542765,-30.545813,-30.548882,-30.551973,-30.555086,-30.558222,-30.56138,-30.564562,-30.567766,-30.570995,-30.57425,-30.577526,-30.58083,-30.584158,-30.587511,-30.59089,-30.594297,-30.59773,-30.60119,-30.60468,-30.608196,-30.61174,-30.615314,-30.61892,-30.622553,-30.626219,-30.629915,-30.633642,-30.637403,-30.641195,-30.645021,-30.648882,-30.652777,-30.656708,-30.660673,-30.664677,-30.668716,-30.672794,-30.67691,-30.681067,-30.685263,-30.6895,-30.693779,-30.698101,-30.702465,-30.706875,-30.711329,-30.71583,-30.720377,-30.724972,-30.729618,-30.734312,-30.73906,-30.743858,-30.74871,-30.753618,-30.758581,-30.763601,-30.768682,-30.77382,-30.779022,-30.784286,-30.789616,-30.79501,-30.800474,-30.806005,-30.81161,-30.817287,-30.82304,-30.828869,-30.834778,-30.840769,-30.846842,-30.853003,-30.859251,-30.865591,-30.872026,-30.878557,-30.885187,-30.89192,-30.89876,-30.905708,-30.912771,-30.919949,-30.927248,-30.934673,-30.942226,-30.949913,-30.957737,-30.965706,-30.973825,-30.982098,-30.99053,-30.99913,-31.007904,-31.01686,-31.026003,-31.035343,-31.044888,-31.054647,-31.064632,-31.074852,-31.085316,-31.09604,-31.107037,-31.118317,-31.129898,-31.141798,-31.154032,-31.166622,-31.179586,-31.192951,-31.20674,-31.22098,-31.235703,-31.250942,-31.266737,-31.283127,-31.300161,-31.31789,-31.336372,-31.355679,-31.375881,-31.39707,-31.419348,-31.442827,-31.467651,-31.49398,-31.522009,-31.551971,-31.584158,-31.61892,-31.656708,-31.698101,-31.743858,-31.79501,-31.853003,-31.919949,-31.99913,-32.09604,-32.220978,-32.397068,-32.698097,-38.0],"x":[1.0e-30,9.979959920040082e-31,9.95991984008016e-31,9.939879760120242e-31,9.91983968016032e-31,9.899799600200402e-31,9.879759520240483e-31,9.859719440280562e-31,9.839679360320643e-31,9.819639280360722e-31,9.799599200400803e-31,9.779559120440882e-31,9.759519040480963e-31,9.739478960521044e-31,9.719438880561123e-31,9.699398800601204e-31,9.679358720641283e-31,9.659318640681364e-31,9.639278560721445e-31,9.619238480761524e-31,9.599198400801605e-31,9.579158320841684e-31,9.559118240881765e-31,9.539078160921844e-31,9.519038080961925e-31,9.498998001002005e-31,9.478957921042085e-31,9.458917841082165e-31,9.438877761122245e-31,9.418837681162326e-31,9.398797601202406e-31,9.378757521242486e-31,9.358717441282566e-31,9.338677361322646e-31,9.318637281362726e-31,9.298597201402806e-31,9.278557121442886e-31,9.258517041482967e-31,9.238476961523046e-31,9.218436881563127e-31,9.198396801603207e-31,9.178356721643287e-31,9.158316641683368e-31,9.138276561723447e-31,9.118236481763528e-31,9.098196401803607e-31,9.078156321843688e-31,9.058116241883767e-31,9.038076161923848e-31,9.01803608196393e-31,8.997996002004008e-31,8.97795592204409e-31,8.957915842084168e-31,8.93787576212425e-31,8.91783568216433e-31,8.89779560220441e-31,8.87775552224449e-31,8.85771544228457e-31,8.83767536232465e-31,8.81763528236473e-31,8.79759520240481e-31,8.777555122444891e-31,8.75751504248497e-31,8.737474962525051e-31,8.71743488256513e-31,8.697394802605211e-31,8.677354722645292e-31,8.657314642685371e-31,8.637274562725452e-31,8.617234482765531e-31,8.597194402805612e-31,8.577154322845693e-31,8.557114242885772e-31,8.537074162925853e-31,8.517034082965932e-31,8.496994003006013e-31,8.476953923046092e-31,8.456913843086173e-31,8.436873763126254e-31,8.416833683166333e-31,8.396793603206414e-31,8.376753523246493e-31,8.356713443286574e-31,8.336673363326655e-31,8.316633283366734e-31,8.296593203406815e-31,8.276553123446894e-31,8.256513043486975e-31,8.236472963527054e-31,8.216432883567135e-31,8.196392803607216e-31,8.176352723647295e-31,8.156312643687376e-31,8.136272563727455e-31,8.116232483767536e-31,8.096192403807617e-31,8.076152323847696e-31,8.056112243887777e-31,8.036072163927856e-31,8.016032083967937e-31,7.995992004008016e-31,7.975951924048097e-31,7.955911844088178e-31,7.935871764128257e-31,7.915831684168338e-31,7.895791604208417e-31,7.875751524248498e-31,7.855711444288578e-31,7.835671364328658e-31,7.815631284368738e-31,7.795591204408819e-31,7.775551124448899e-31,7.755511044488979e-31,7.735470964529059e-31,7.715430884569139e-31,7.695390804609219e-31,7.6753507246493e-31,7.65531064468938e-31,7.63527056472946e-31,7.61523048476954e-31,7.59519040480962e-31,7.5751503248497e-31,7.5551102448897805e-31,7.5350701649298605e-31,7.5150300849699405e-31,7.4949900050100205e-31,7.4749499250501005e-31,7.4549098450901806e-31,7.4348697651302614e-31,7.4148296851703415e-31,7.3947896052104215e-31,7.3747495252505015e-31,7.3547094452905815e-31,7.3346693653306615e-31,7.314629285370742e-31,7.294589205410822e-31,7.274549125450902e-31,7.254509045490982e-31,7.234468965531062e-31,7.214428885571143e-31,7.194388805611223e-31,7.174348725651303e-31,7.154308645691383e-31,7.134268565731463e-31,7.114228485771543e-31,7.094188405811624e-31,7.074148325851704e-31,7.054108245891784e-31,7.034068165931864e-31,7.014028085971944e-31,6.993988006012024e-31,6.973947926052105e-31,6.953907846092185e-31,6.933867766132265e-31,6.913827686172345e-31,6.893787606212425e-31,6.873747526252505e-31,6.853707446292586e-31,6.833667366332666e-31,6.813627286372746e-31,6.793587206412826e-31,6.773547126452906e-31,6.753507046492986e-31,6.733466966533067e-31,6.713426886573147e-31,6.693386806613227e-31,6.673346726653307e-31,6.653306646693387e-31,6.633266566733467e-31,6.613226486773548e-31,6.593186406813628e-31,6.573146326853708e-31,6.553106246893788e-31,6.533066166933868e-31,6.513026086973948e-31,6.492986007014029e-31,6.472945927054109e-31,6.452905847094189e-31,6.432865767134269e-31,6.412825687174349e-31,6.392785607214429e-31,6.37274552725451e-31,6.35270544729459e-31,6.33266536733467e-31,6.31262528737475e-31,6.29258520741483e-31,6.27254512745491e-31,6.252505047494991e-31,6.232464967535071e-31,6.212424887575151e-31,6.192384807615231e-31,6.172344727655311e-31,6.152304647695391e-31,6.132264567735472e-31,6.112224487775552e-31,6.092184407815632e-31,6.072144327855712e-31,6.052104247895792e-31,6.032064167935872e-31,6.012024087975953e-31,5.991984008016033e-31,5.971943928056113e-31,5.951903848096193e-31,5.931863768136273e-31,5.911823688176354e-31,5.891783608216434e-31,5.871743528256514e-31,5.851703448296594e-31,5.831663368336674e-31,5.811623288376754e-31,5.791583208416835e-31,5.771543128456915e-31,5.751503048496995e-31,5.731462968537075e-31,5.711422888577155e-31,5.691382808617235e-31,5.6713427286573155e-31,5.6513026486973955e-31,5.6312625687374755e-31,5.6112224887775555e-31,5.5911824088176355e-31,5.5711423288577156e-31,5.5511022488977964e-31,5.5310621689378765e-31,5.5110220889779565e-31,5.4909820090180365e-31,5.4709419290581165e-31,5.4509018490981965e-31,5.430861769138277e-31,5.410821689178357e-31,5.390781609218437e-31,5.370741529258517e-31,5.350701449298597e-31,5.330661369338677e-31,5.310621289378758e-31,5.290581209418838e-31,5.270541129458918e-31,5.250501049498998e-31,5.230460969539078e-31,5.210420889579158e-31,5.190380809619239e-31,5.170340729659319e-31,5.150300649699399e-31,5.130260569739479e-31,5.110220489779559e-31,5.090180409819639e-31,5.07014032985972e-31,5.0501002498998e-31,5.03006016993988e-31,5.01002008997996e-31,4.98998001002004e-31,4.96993993006012e-31,4.949899850100201e-31,4.929859770140281e-31,4.909819690180361e-31,4.889779610220441e-31,4.869739530260521e-31,4.849699450300601e-31,4.829659370340682e-31,4.809619290380762e-31,4.789579210420842e-31,4.769539130460922e-31,4.749499050501002e-31,4.729458970541082e-31,4.709418890581163e-31,4.689378810621243e-31,4.669338730661323e-31,4.649298650701403e-31,4.629258570741483e-31,4.609218490781564e-31,4.589178410821644e-31,4.569138330861724e-31,4.549098250901804e-31,4.529058170941884e-31,4.509018090981964e-31,4.488978011022045e-31,4.468937931062125e-31,4.448897851102205e-31,4.428857771142285e-31,4.408817691182365e-31,4.388777611222445e-31,4.368737531262526e-31,4.348697451302606e-31,4.328657371342686e-31,4.308617291382766e-31,4.288577211422846e-31,4.268537131462926e-31,4.248497051503007e-31,4.228456971543087e-31,4.208416891583167e-31,4.188376811623247e-31,4.168336731663327e-31,4.148296651703407e-31,4.128256571743488e-31,4.108216491783568e-31,4.088176411823648e-31,4.068136331863728e-31,4.048096251903808e-31,4.028056171943888e-31,4.008016091983969e-31,3.987976012024049e-31,3.967935932064129e-31,3.947895852104209e-31,3.927855772144289e-31,3.907815692184369e-31,3.887775612224449e-31,3.8677355322645296e-31,3.8476954523046096e-31,3.8276553723446896e-31,3.80761529238477e-31,3.78757521242485e-31,3.76753513246493e-31,3.7474950525050105e-31,3.7274549725450905e-31,3.7074148925851705e-31,3.687374812625251e-31,3.667334732665331e-31,3.647294652705411e-31,3.6272545727454915e-31,3.6072144927855715e-31,3.5871744128256515e-31,3.567134332865732e-31,3.547094252905812e-31,3.527054172945892e-31,3.5070140929859724e-31,3.4869740130260524e-31,3.4669339330661324e-31,3.446893853106213e-31,3.426853773146293e-31,3.406813693186373e-31,3.3867736132264533e-31,3.3667335332665334e-31,3.3466934533066134e-31,3.326653373346694e-31,3.306613293386774e-31,3.286573213426854e-31,3.2665331334669343e-31,3.2464930535070143e-31,3.2264529735470943e-31,3.2064128935871747e-31,3.1863728136272548e-31,3.1663327336673348e-31,3.146292653707415e-31,3.1262525737474952e-31,3.1062124937875752e-31,3.0861724138276557e-31,3.0661323338677357e-31,3.0460922539078157e-31,3.026052173947896e-31,3.006012093987976e-31,2.985972014028056e-31,2.9659319340681366e-31,2.9458918541082166e-31,2.9258517741482966e-31,2.905811694188377e-31,2.885771614228457e-31,2.865731534268537e-31,2.8456914543086176e-31,2.8256513743486976e-31,2.8056112943887776e-31,2.785571214428858e-31,2.765531134468938e-31,2.745491054509018e-31,2.7254509745490985e-31,2.7054108945891785e-31,2.6853708146292585e-31,2.665330734669339e-31,2.645290654709419e-31,2.6252505747494994e-31,2.6052104947895794e-31,2.5851704148296595e-31,2.56513033486974e-31,2.54509025490982e-31,2.5250501749499e-31,2.5050100949899804e-31,2.4849700150300604e-31,2.4649299350701404e-31,2.444889855110221e-31,2.424849775150301e-31,2.404809695190381e-31,2.3847696152304613e-31,2.3647295352705413e-31,2.3446894553106213e-31,2.3246493753507018e-31,2.304609295390782e-31,2.284569215430862e-31,2.2645291354709422e-31,2.2444890555110223e-31,2.2244489755511023e-31,2.2044088955911827e-31,2.1843688156312627e-31,2.1643287356713427e-31,2.144288655711423e-31,2.124248575751503e-31,2.104208495791583e-31,2.0841684158316637e-31,2.0641283358717437e-31,2.0440882559118237e-31,2.024048175951904e-31,2.004008095991984e-31,1.983968016032064e-31,1.9639279360721444e-31,1.9438878561122246e-31,1.9238477761523048e-31,1.9038076961923848e-31,1.883767616232465e-31,1.8637275362725453e-31,1.8436874563126253e-31,1.8236473763527055e-31,1.8036072963927858e-31,1.7835672164328658e-31,1.763527136472946e-31,1.7434870565130262e-31,1.7234469765531063e-31,1.7034068965931865e-31,1.6833668166332667e-31,1.663326736673347e-31,1.643286656713427e-31,1.6232465767535072e-31,1.6032064967935874e-31,1.5831664168336674e-31,1.5631263368737477e-31,1.5430862569138279e-31,1.5230461769539079e-31,1.5030060969939881e-31,1.4829660170340683e-31,1.4629259370741484e-31,1.4428858571142286e-31,1.4228457771543088e-31,1.4028056971943888e-31,1.382765617234469e-31,1.3627255372745493e-31,1.3426854573146293e-31,1.3226453773547095e-31,1.3026052973947898e-31,1.2825652174348698e-31,1.26252513747495e-31,1.2424850575150302e-31,1.2224449775551102e-31,1.2024048975951905e-31,1.1823648176352707e-31,1.1623247376753507e-31,1.142284657715431e-31,1.1222445777555112e-31,1.1022044977955912e-31,1.0821644178356714e-31,1.0621243378757516e-31,1.0420842579158316e-31,1.0220441779559119e-31,1.002004097995992e-31,9.819640180360722e-32,9.619239380761523e-32,9.418838581162326e-32,9.218437781563127e-32,9.018036981963928e-32,8.81763618236473e-32,8.617235382765532e-32,8.416834583166333e-32,8.216433783567135e-32,8.016032983967936e-32,7.815632184368739e-32,7.61523138476954e-32,7.414830585170341e-32,7.214429785571143e-32,7.014028985971945e-32,6.813628186372746e-32,6.613227386773548e-32,6.412826587174349e-32,6.21242578757515e-32,6.012024987975953e-32,5.811624188376754e-32,5.611223388777555e-32,5.410822589178357e-32,5.210421789579159e-32,5.01002098997996e-32,4.809620190380762e-32,4.6092193907815633e-32,4.408818591182365e-32,4.208417791583167e-32,4.0080169919839685e-32,3.80761619238477e-32,3.6072153927855715e-32,3.406814593186373e-32,3.2064137935871744e-32,3.006012993987976e-32,2.805612194388778e-32,2.605211394789579e-32,2.4048105951903809e-32,2.2044097955911826e-32,2.004008995991984e-32,1.8036081963927858e-32,1.6032073967935873e-32,1.4028065971943888e-32,1.2024057975951905e-32,1.0020049979959921e-32,8.016041983967936e-33,6.012033987975952e-33,4.008025991983968e-33,2.004017995991984e-33,1.0e-38]} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/very_large_positive.json b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/very_large_positive.json new file mode 100644 index 000000000000..8bb2bd9ad818 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/fixtures/julia/very_large_positive.json @@ -0,0 +1 @@ +{"expected":[1.69897,1.7067332,1.71436,1.7218552,1.7292233,1.7364683,1.7435946,1.7506058,1.7575055,1.7642975,1.7709848,1.7775706,1.7840581,1.7904502,1.7967495,1.8029587,1.8090805,1.815117,1.8210709,1.8269442,1.8327392,1.838458,1.8441023,1.8496741,1.8551755,1.860608,1.8659735,1.8712734,1.8765094,1.881683,1.8867958,1.891849,1.8968441,1.9017825,1.9066653,1.9114939,1.9162693,1.9209927,1.9256655,1.9302884,1.9348626,1.9393892,1.943869,1.9483032,1.9526925,1.9570379,1.9613402,1.9656004,1.9698192,1.9739974,1.9781357,1.982235,1.9862959,1.9903193,1.9943057,1.9982558,2.0021703,2.0060499,2.009895,2.0137067,2.017485,2.0212307,2.0249445,2.0286267,2.0322778,2.0358987,2.0394895,2.043051,2.0465834,2.0500875,2.0535634,2.0570116,2.060433,2.0638273,2.0671954,2.0705376,2.0738542,2.0771458,2.0804124,2.0836549,2.086873,2.0900679,2.093239,2.0963874,2.0995133,2.1026165,2.1056979,2.1087575,2.1117957,2.1148129,2.117809,2.1207848,2.1237404,2.1266758,2.1295917,2.132488,2.1353652,2.1382236,2.1410632,2.1438842,2.1466873,2.149472,2.1522393,2.154989,2.1577213,2.1604366,2.163135,2.1658168,2.168482,2.1711311,2.1737642,2.1763813,2.1789827,2.1815686,2.1841393,2.1866949,2.1892354,2.1917613,2.1942723,2.196769,2.1992517,2.20172,2.2041743,2.206615,2.209042,2.2114556,2.2138557,2.2162426,2.2186165,2.2209775,2.2233257,2.2256615,2.2279844,2.2302954,2.2325938,2.2348802,2.2371547,2.2394173,2.2416682,2.2439075,2.2461352,2.2483518,2.250557,2.2527509,2.2549338,2.257106,2.2592673,2.2614179,2.263558,2.2656872,2.2678063,2.269915,2.2720137,2.2741022,2.2761807,2.2782495,2.2803082,2.2823575,2.284397,2.2864268,2.2884474,2.2904584,2.2924602,2.294453,2.2964365,2.2984111,2.3003767,2.3023336,2.3042815,2.3062208,2.3081515,2.3100736,2.3119874,2.3138926,2.3157895,2.3176782,2.3195586,2.3214312,2.3232956,2.325152,2.3270004,2.328841,2.330674,2.3324993,2.3343167,2.3361268,2.3379292,2.3397243,2.3415117,2.3432922,2.345065,2.346831,2.3485897,2.3503413,2.3520858,2.3538234,2.355554,2.3572779,2.3589947,2.360705,2.3624084,2.3641052,2.3657954,2.367479,2.3691564,2.370827,2.3724914,2.3741493,2.375801,2.3774464,2.3790855,2.3807187,2.3823454,2.3839664,2.3855813,2.38719,2.388793,2.39039,2.3919811,2.3935664,2.395146,2.39672,2.398288,2.3998506,2.4014075,2.4029589,2.4045045,2.406045,2.40758,2.4091094,2.4106336,2.4121523,2.4136658,2.4151742,2.4166772,2.418175,2.4196677,2.4211555,2.422638,2.4241154,2.425588,2.4270554,2.4285178,2.4299755,2.4314282,2.432876,2.4343193,2.4357576,2.4371912,2.43862,2.4400442,2.4414637,2.4428787,2.444289,2.4456947,2.4470959,2.4484925,2.449885,2.4512725,2.4526558,2.4540348,2.4554095,2.4567797,2.4581456,2.4595072,2.4608648,2.4622178,2.4635668,2.4649117,2.4662523,2.467589,2.4689212,2.4702497,2.4715738,2.4728942,2.4742105,2.4755228,2.476831,2.4781353,2.479436,2.4807327,2.4820254,2.4833143,2.4845994,2.4858806,2.4871583,2.488432,2.489702,2.4909685,2.4922311,2.4934902,2.4947455,2.4959974,2.4972456,2.49849,2.499731,2.5009687,2.5022027,2.5034332,2.5046601,2.5058837,2.507104,2.5083206,2.509534,2.5107439,2.5119503,2.5131536,2.5143535,2.51555,2.5167434,2.5179334,2.5191202,2.5203037,2.521484,2.5226612,2.523835,2.5250058,2.5261734,2.527338,2.5284994,2.5296576,2.530813,2.531965,2.5331142,2.5342603,2.5354033,2.5365434,2.5376804,2.5388143,2.5399456,2.5410738,2.5421991,2.5433214,2.544441,2.5455575,2.5466712,2.5477822,2.54889,2.5499954,2.5510979,2.5521975,2.5532944,2.5543883,2.5554798,2.5565684,2.5576541,2.5587375,2.5598178,2.5608957,2.561971,2.5630434,2.5641131,2.5651803,2.566245,2.567307,2.5683663,2.5694232,2.5704775,2.5715292,2.5725782,2.5736248,2.5746691,2.5757105,2.5767498,2.5777864,2.5788207,2.5798523,2.5808816,2.5819085,2.5829327,2.5839548,2.5849745,2.5859916,2.5870066,2.588019,2.589029,2.5900369,2.5910423,2.5920453,2.5930462,2.5940447,2.595041,2.5960348,2.5970266,2.598016,2.599003,2.599988,2.6009707,2.6019511,2.6029294,2.6039054,2.6048794,2.6058512,2.6068206,2.607788,2.6087532,2.6097162,2.6106772,2.6116362,2.6125927,2.6135473,2.6144998,2.6154504,2.6163986,2.6173449,2.6182892,2.6192315,2.6201715,2.6211097,2.6220458,2.6229799,2.6239119,2.624842,2.62577,2.626696,2.6276202,2.6285424,2.6294627,2.630381,2.6312973,2.6322117,2.6331244,2.6340349,2.6349435,2.6358502,2.6367552,2.637658,2.6385593,2.6394587,2.640356,2.6412516,2.6421452,2.643037,2.643927,2.6448154,2.645702,2.6465864,2.6474693,2.6483502,2.6492295,2.650107,2.6509826,2.6518567,2.6527288,2.6535993,2.6544678,2.6553347,2.6562,2.6570635,2.6579254,2.6587853,2.659644,2.6605005,2.6613555,2.6622088,2.6630604,2.6639104,2.6647587,2.6656055,2.6664505,2.6672938,2.6681356,2.6689756,2.669814,2.670651,2.6714864,2.6723201,2.673152,2.6739826,2.6748114,2.6756387,2.6764646,2.6772888,2.6781113,2.6789324,2.6797519,2.68057,2.6813862,2.6822011,2.6830146,2.6838264,2.6846368,2.6854455,2.6862528,2.6870587,2.687863,2.6886659,2.6894672,2.690267,2.6910655,2.6918626,2.692658,2.6934521,2.6942446,2.6950357,2.6958256,2.6966138,2.6974006,2.698186,2.69897],"x":[50.0,50.901803607214426,51.80360721442886,52.705410821643284,53.607214428857716,54.50901803607214,55.410821643286575,56.312625250501,57.21442885771543,58.11623246492986,59.01803607214429,59.91983967935872,60.82164328657315,61.723446893787575,62.62525050100201,63.52705410821643,64.42885771543087,65.33066132264528,66.23246492985972,67.13426853707415,68.03607214428858,68.937875751503,69.83967935871743,70.74148296593187,71.6432865731463,72.54509018036072,73.44689378757515,74.34869739478958,75.25050100200401,76.15230460921843,77.05410821643287,77.9559118236473,78.85771543086172,79.75951903807615,80.66132264529058,81.56312625250501,82.46492985971943,83.36673346693387,84.2685370741483,85.17034068136273,86.07214428857715,86.97394789579158,87.87575150300601,88.77755511022045,89.67935871743487,90.5811623246493,91.48296593186373,92.38476953907815,93.28657314629258,94.18837675350701,95.09018036072145,95.99198396793587,96.8937875751503,97.79559118236473,98.69739478957916,99.59919839679358,100.50100200400801,101.40280561122245,102.30460921843688,103.2064128256513,104.10821643286573,105.01002004008016,105.91182364729458,106.81362725450902,107.71543086172345,108.61723446893788,109.5190380761523,110.42084168336673,111.32264529058116,112.2244488977956,113.12625250501002,114.02805611222445,114.92985971943888,115.83166332665331,116.73346693386773,117.63527054108216,118.5370741482966,119.43887775551102,120.34068136272545,121.24248496993988,122.14428857715431,123.04609218436873,123.94789579158316,124.8496993987976,125.75150300601203,126.65330661322645,127.55511022044088,128.4569138276553,129.35871743486973,130.26052104208418,131.1623246492986,132.06412825651302,132.96593186372746,133.86773547094188,134.7695390781563,135.67134268537075,136.57314629258516,137.4749498997996,138.37675350701403,139.27855711422845,140.1803607214429,141.0821643286573,141.98396793587173,142.88577154308618,143.7875751503006,144.68937875751504,145.59118236472946,146.49298597194388,147.39478957915833,148.29659318637275,149.19839679358716,150.1002004008016,151.00200400801603,151.90380761523045,152.8056112224449,153.7074148296593,154.60921843687376,155.51102204408818,156.4128256513026,157.31462925851704,158.21643286573146,159.11823647294588,160.02004008016033,160.92184368737475,161.82364729458916,162.7254509018036,163.62725450901803,164.52905811623248,165.4308617234469,166.3326653306613,167.23446893787576,168.13627254509018,169.0380761523046,169.93987975951904,170.84168336673346,171.7434869739479,172.64529058116233,173.54709418837675,174.4488977955912,175.3507014028056,176.25250501002003,177.15430861723448,178.0561122244489,178.9579158316633,179.85971943887776,180.76152304609218,181.66332665330663,182.56513026052104,183.46693386773546,184.3687374749499,185.27054108216433,186.17234468937875,187.0741482965932,187.9759519038076,188.87775551102203,189.77955911823648,190.6813627254509,191.58316633266534,192.48496993987976,193.38677354709418,194.28857715430863,195.19038076152304,196.09218436873746,196.9939879759519,197.89579158316633,198.79759519038078,199.6993987975952,200.6012024048096,201.50300601202406,202.40480961923848,203.3066132264529,204.20841683366734,205.11022044088176,206.01202404809618,206.91382765531063,207.81563126252505,208.7174348697395,209.6192384769539,210.52104208416833,211.42284569138278,212.3246492985972,213.2264529058116,214.12825651302606,215.03006012024048,215.9318637274549,216.83366733466934,217.73547094188376,218.6372745490982,219.53907815631263,220.44088176352705,221.3426853707415,222.2444889779559,223.14629258517033,224.04809619238478,224.9498997995992,225.85170340681364,226.75350701402806,227.65531062124248,228.55711422845692,229.45891783567134,230.36072144288576,231.2625250501002,232.16432865731463,233.06613226452905,233.9679358717435,234.8697394789579,235.77154308617236,236.67334669338678,237.5751503006012,238.47695390781564,239.37875751503006,240.28056112224448,241.18236472945893,242.08416833667334,242.98597194388776,243.8877755511022,244.78957915831663,245.69138276553107,246.5931863727455,247.4949899799599,248.39679358717436,249.29859719438878,250.2004008016032,251.10220440881764,252.00400801603206,252.9058116232465,253.80761523046093,254.70941883767534,255.6112224448898,256.5130260521042,257.4148296593186,258.3166332665331,259.2184368737475,260.1202404809619,261.02204408817636,261.9238476953908,262.8256513026052,263.72745490981964,264.6292585170341,265.5310621242485,266.4328657314629,267.3346693386774,268.23647294589176,269.1382765531062,270.04008016032066,270.94188376753505,271.8436873747495,272.74549098196394,273.64729458917833,274.5490981963928,275.4509018036072,276.35270541082167,277.25450901803606,278.1563126252505,279.05811623246495,279.95991983967934,280.8617234468938,281.76352705410824,282.6653306613226,283.5671342685371,284.4689378757515,285.3707414829659,286.27254509018036,287.1743486973948,288.0761523046092,288.97795591182364,289.8797595190381,290.7815631262525,291.6833667334669,292.5851703406814,293.4869739478958,294.3887775551102,295.29058116232466,296.1923847695391,297.0941883767535,297.99599198396794,298.8977955911824,299.7995991983968,300.7014028056112,301.60320641282567,302.50501002004006,303.4068136272545,304.30861723446895,305.21042084168334,306.1122244488978,307.01402805611224,307.9158316633266,308.8176352705411,309.7194388777555,310.6212424849699,311.52304609218436,312.4248496993988,313.32665330661325,314.22845691382764,315.1302605210421,316.03206412825654,316.9338677354709,317.8356713426854,318.7374749498998,319.6392785571142,320.54108216432866,321.4428857715431,322.3446893787575,323.24649298597194,324.1482965931864,325.0501002004008,325.9519038076152,326.85370741482967,327.75551102204406,328.6573146292585,329.55911823647295,330.4609218436874,331.3627254509018,332.26452905811624,333.1663326653307,334.0681362725451,334.9699398797595,335.87174348697397,336.77354709418836,337.6753507014028,338.57715430861725,339.47895791583164,340.3807615230461,341.28256513026054,342.1843687374749,343.0861723446894,343.9879759519038,344.8897795591182,345.79158316633266,346.6933867735471,347.59519038076155,348.49699398797594,349.3987975951904,350.30060120240483,351.2024048096192,352.10420841683367,353.0060120240481,353.9078156312625,354.80961923847696,355.7114228456914,356.6132264529058,357.51503006012024,358.4168336673347,359.3186372745491,360.2204408817635,361.12224448897797,362.02404809619236,362.9258517034068,363.82765531062125,364.72945891783564,365.6312625250501,366.53306613226454,367.434869739479,368.3366733466934,369.2384769539078,370.14028056112227,371.04208416833666,371.9438877755511,372.84569138276555,373.74749498997994,374.6492985971944,375.55110220440883,376.4529058116232,377.3547094188377,378.2565130260521,379.1583166332665,380.06012024048096,380.9619238476954,381.8637274549098,382.76553106212424,383.6673346693387,384.56913827655313,385.4709418837675,386.37274549098197,387.2745490981964,388.1763527054108,389.07815631262525,389.9799599198397,390.8817635270541,391.78356713426854,392.685370741483,393.5871743486974,394.4889779559118,395.39078156312627,396.29258517034066,397.1943887775551,398.09619238476955,398.99799599198394,399.8997995991984,400.80160320641284,401.7034068136273,402.6052104208417,403.5070140280561,404.40881763527057,405.31062124248496,406.2124248496994,407.11422845691385,408.01603206412824,408.9178356713427,409.81963927855713,410.7214428857715,411.62324649298597,412.5250501002004,413.4268537074148,414.32865731462925,415.2304609218437,416.1322645290581,417.03406813627254,417.935871743487,418.8376753507014,419.7394789579158,420.64128256513027,421.5430861723447,422.4448897795591,423.34669338677355,424.248496993988,425.1503006012024,426.05210420841684,426.9539078156313,427.8557114228457,428.7575150300601,429.65931863727457,430.56112224448896,431.4629258517034,432.36472945891785,433.26653306613224,434.1683366733467,435.07014028056113,435.9719438877755,436.87374749498997,437.7755511022044,438.67735470941886,439.57915831663325,440.4809619238477,441.38276553106215,442.28456913827654,443.186372745491,444.08817635270543,444.9899799599198,445.89178356713427,446.7935871743487,447.6953907815631,448.59719438877755,449.498997995992,450.4008016032064,451.30260521042084,452.2044088176353,453.1062124248497,454.0080160320641,454.90981963927857,455.811623246493,456.7134268537074,457.61523046092185,458.5170340681363,459.4188376753507,460.32064128256513,461.2224448897796,462.12424849699397,463.0260521042084,463.92785571142286,464.82965931863725,465.7314629258517,466.63326653306615,467.53507014028054,468.436873747495,469.33867735470943,470.2404809619238,471.14228456913827,472.0440881763527,472.9458917835671,473.84769539078155,474.749498997996,475.65130260521045,476.55310621242484,477.4549098196393,478.35671342685373,479.2585170340681,480.16032064128257,481.062124248497,481.9639278557114,482.86573146292585,483.7675350701403,484.6693386773547,485.57114228456913,486.4729458917836,487.37474949899797,488.2765531062124,489.17835671342687,490.08016032064126,490.9819639278557,491.88376753507015,492.7855711422846,493.687374749499,494.58917835671343,495.4909819639279,496.39278557114227,497.2945891783567,498.19639278557116,499.09819639278555,500.0]} diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/test.js b/lib/node_modules/@stdlib/math/base/special/log10f/test/test.js new file mode 100644 index 000000000000..f004d47e784f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/test.js @@ -0,0 +1,204 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var PINF = require( '@stdlib/constants/float32/pinf' ); +var NINF = require( '@stdlib/constants/float32/ninf' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' ); +var ulpdiff = require( '@stdlib/number/float32/base/ulp-difference' ); +var log10f = require( './../lib' ); + + +// FIXTURES // + +var veryLargePositive = require( './fixtures/julia/very_large_positive.json' ); +var largePositive = require( './fixtures/julia/large_positive.json' ); +var mediumPositive = require( './fixtures/julia/medium_positive.json' ); +var smallPositive = require( './fixtures/julia/small_positive.json' ); +var smaller = require( './fixtures/julia/smaller.json' ); +var tinyPositive = require( './fixtures/julia/tiny_positive.json' ); +var subnormal = require( './fixtures/julia/subnormal.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof log10f, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (very large positive values)', function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = veryLargePositive.expected; + x = veryLargePositive.x; + for ( i = 0; i < x.length; i++ ) { + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 1, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (large positive values)', function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = largePositive.expected; + x = largePositive.x; + for ( i = 0; i < x.length; i++ ) { + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 1, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (medium positive values)', function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = mediumPositive.expected; + x = mediumPositive.x; + for ( i = 0; i < x.length; i++ ) { + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 1, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (small positive values)', function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = smallPositive.expected; + x = smallPositive.x; + for ( i = 0; i < x.length; i++ ) { + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 152, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (smaller positive values)', function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = smaller.expected; + x = smaller.x; + for ( i = 0; i < x.length; i++ ) { + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 8, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (tiny positive values)', function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = tinyPositive.expected; + x = tinyPositive.x; + for ( i = 0; i < x.length; i++ ) { + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 1, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (subnormal values)', function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = subnormal.expected; + x = subnormal.x; + for ( i = 0; i < x.length; i++ ) { + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 9, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function returns `-infinity` if provided `+-0`', function test( t ) { + t.strictEqual( log10f( 0.0 ), NINF, 'returns expected value' ); + t.strictEqual( log10f( -0.0 ), NINF, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `+infinity` if provided `+infinity`', function test( t ) { + t.strictEqual( log10f( PINF ), PINF, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided a negative number', function test( t ) { + var v = log10f( -1.0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided `-infinity`', function test( t ) { + var v = log10f( NINF ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { + var v = log10f( NaN ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns positive zero if provided `1.0`', function test( t ) { + var v = log10f( 1.0 ); + t.strictEqual( isPositiveZero( v ), true, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/log10f/test/test.native.js b/lib/node_modules/@stdlib/math/base/special/log10f/test/test.native.js new file mode 100644 index 000000000000..cdc4058fd5ae --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/log10f/test/test.native.js @@ -0,0 +1,208 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var PINF = require( '@stdlib/constants/float32/pinf' ); +var NINF = require( '@stdlib/constants/float32/ninf' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); +var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var ulpdiff = require( '@stdlib/number/float32/base/ulp-difference' ); + + +// FIXTURES // + +var veryLargePositive = require( './fixtures/julia/very_large_positive.json' ); +var largePositive = require( './fixtures/julia/large_positive.json' ); +var mediumPositive = require( './fixtures/julia/medium_positive.json' ); +var smallPositive = require( './fixtures/julia/small_positive.json' ); +var smaller = require( './fixtures/julia/smaller.json' ); +var tinyPositive = require( './fixtures/julia/tiny_positive.json' ); +var subnormal = require( './fixtures/julia/subnormal.json' ); + + +// VARIABLES // + +var log10f = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( log10f instanceof Error ) +}; + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof log10f, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (very large positive values)', opts, function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = veryLargePositive.expected; + x = veryLargePositive.x; + for ( i = 0; i < x.length; i++ ) { + x[ i ] = f32( x[ i ]); + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 1, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (large positive values)', opts, function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = largePositive.expected; + x = largePositive.x; + for ( i = 0; i < x.length; i++ ) { + x[ i ] = f32( x[ i ]); + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 1, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (medium positive values)', opts, function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = mediumPositive.expected; + x = mediumPositive.x; + for ( i = 0; i < x.length; i++ ) { + x[ i ] = f32( x[ i ]); + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 1, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (small positive values)', opts, function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = smallPositive.expected; + x = smallPositive.x; + for ( i = 0; i < x.length; i++ ) { + x[ i ] = f32( x[ i ]); + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 152, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (smaller positive values)', opts, function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = smaller.expected; + x = smaller.x; + for ( i = 0; i < x.length; i++ ) { + x[ i ] = f32( x[ i ]); + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 8, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (tiny positive values)', opts, function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = tinyPositive.expected; + x = tinyPositive.x; + for ( i = 0; i < x.length; i++ ) { + x[ i ] = f32( x[ i ]); + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 1, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function evaluates the common logarithm of `x` (subnormal values)', opts, function test( t ) { + var expected; + var x; + var y; + var i; + var e; + + expected = subnormal.expected; + x = subnormal.x; + for ( i = 0; i < x.length; i++ ) { + x[ i ] = f32( x[ i ]); + y = log10f( x[ i ] ); + e = f32( expected[ i ] ); + t.strictEqual( ulpdiff( y, e ) <= 9, true, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the function returns `-infinity` if provided `+-0`', opts, function test( t ) { + t.strictEqual( log10f( 0.0 ), NINF, 'returns expected value' ); + t.strictEqual( log10f( -0.0 ), NINF, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `+infinity` if provided `+infinity`', opts, function test( t ) { + t.strictEqual( log10f( PINF ), PINF, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided a negative number', opts, function test( t ) { + var v = log10f( -1.0 ); + t.strictEqual( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns positive zero if provided `1.0`', opts, function test( t ) { + var v = log10f( 1.0 ); + t.strictEqual( isPositiveZero( v ), true, 'returns expected value' ); + t.end(); +});