diff --git a/LICENSE b/LICENSE index b2c92544c..f890fd513 100644 --- a/LICENSE +++ b/LICENSE @@ -207,6 +207,45 @@ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* SpecialFunctions.jl + +The MIT License (MIT) + +Copyright (c) 2017 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and others: + +https://github.com/JuliaMath/SpecialFunctions.jl/graphs/contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +* 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. + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + * Cephes Copyright (c) 1984-2000 Stephen L. Moshier @@ -220,44 +259,25 @@ comes with no support or guarantee. Stephen L. Moshier moshier@na-net.ornl.gov -* 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. -* Go - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. +* FDLIBM -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. * Faddeeva @@ -282,66 +302,43 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -Stephen L. Moshier -moshier@na-net.ornl.gov - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -* SpecialFunctions.jl +* SLATEC Common Mathematical Library -The MIT License (MIT) +Public domain. -Copyright (c) 2017 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and others: +* Go -https://github.com/JuliaMath/SpecialFunctions.jl/graphs/contributors +Copyright (c) 2009 The Go Authors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +Stephen L. Moshier +moshier@na-net.ornl.gov Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ -* SLATEC Common Mathematical Library - -Public domain. - -* FDLIBM - -Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. - diff --git a/base/special/asecf/README.md b/base/special/asecf/README.md new file mode 100644 index 000000000..4ead0cbc1 --- /dev/null +++ b/base/special/asecf/README.md @@ -0,0 +1,185 @@ + + +# asecf + +> Compute the [inverse (arc) secant][arcsecant] of a single-precision floating-point number. + +
+ +## Usage + +```javascript +var asecf = require( '@stdlib/math/base/special/asecf' ); +``` + +#### asecf( x ) + +Computes the [inverse (arc) secant][arcsecant] of a single-precision floating-point number. + +```javascript +var v = asecf( 1.0 ); +// returns 0.0 + +v = asecf( 2.0 ); +// returns ~1.0472 + +v = asecf( NaN ); +// returns NaN +``` + +The domain of `x` is restricted to the intervals `[-inf, -1]` and `[1, inf]`. For `x` outside of these intervals, the function returns `NaN`. + +```javascript +var v = asecf( -0.5 ); +// returns NaN + +v = asecf( 0.5 ); +// returns NaN +``` + +
+ + + +
+ +## Examples + + + +```javascript +var linspace = require( '@stdlib/array/base/linspace' ); +var asecf = require( '@stdlib/math/base/special/asecf' ); + +var x = linspace( 1.0, 10.0, 100 ); + +var i; +for ( i = 0; i < x.length; i++ ) { + console.log( asecf( x[ i ] ) ); +} +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/asecf.h" +``` + +#### stdlib_base_asecf( x ) + +Computes the [inverse (arc) secant][arcsecant] of a single-precision floating-point number. + +```c +float out = stdlib_base_asecf( 2.0f ); +// returns ~1.0472f +``` + +The function accepts the following arguments: + +- **x**: `[in] float` input value. + +```c +float stdlib_base_asecf( const float x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/asecf.h" +#include + +int main( void ) { + const float x[] = { -5.0f, -3.89f, -2.78f, -1.67f, -0.56f, 0.56f, 1.67f, 2.78f, 3.89f, 5.0f }; + + float v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_asecf( x[ i ] ); + printf( "asec(%f) = %f\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/base/special/asecf/benchmark/benchmark.js b/base/special/asecf/benchmark/benchmark.js new file mode 100644 index 000000000..c8a06592a --- /dev/null +++ b/base/special/asecf/benchmark/benchmark.js @@ -0,0 +1,51 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var randu = require( '@stdlib/random/base/randu' ); +var isnanf = require( './../../../../base/assert/is-nanf' ); +var pkg = require( './../package.json' ).name; +var asecf = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var x; + var y; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + x = ( randu() * 1000.0 ) + 1.0; + y = asecf( x ); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/base/special/asecf/benchmark/benchmark.native.js b/base/special/asecf/benchmark/benchmark.native.js new file mode 100644 index 000000000..5ed5b32da --- /dev/null +++ b/base/special/asecf/benchmark/benchmark.native.js @@ -0,0 +1,60 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var randu = require( '@stdlib/random/base/randu' ); +var isnanf = require( './../../../../base/assert/is-nanf' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var asecf = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( asecf instanceof Error ) +}; + + +// MAIN // + +bench( pkg+'::native', opts, function benchmark( b ) { + var x; + var y; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + x = ( randu() * 1000.0 ) + 1.0; + y = asecf( x ); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/base/special/asecf/benchmark/c/native/Makefile b/base/special/asecf/benchmark/c/native/Makefile new file mode 100644 index 000000000..f69e9da2b --- /dev/null +++ b/base/special/asecf/benchmark/c/native/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := benchmark.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled benchmarks. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/base/special/asecf/benchmark/c/native/benchmark.c b/base/special/asecf/benchmark/c/native/benchmark.c new file mode 100644 index 000000000..d2e4ab93f --- /dev/null +++ b/base/special/asecf/benchmark/c/native/benchmark.c @@ -0,0 +1,136 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/** +* Benchmark `asecf`. +*/ +#include "stdlib/math/base/special/asecf.h" +#include +#include +#include +#include +#include + +#define NAME "asecf" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +void print_version() { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +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 +*/ +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 +*/ +double tic() { + 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 +*/ +float rand_float() { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +double benchmark() { + double elapsed; + double t; + float x; + float y; + int i; + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + x = ( 1000.0f * rand_float() ) + 1.0f; + y = stdlib_base_asecf( x ); + 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/base/special/asecf/binding.gyp b/base/special/asecf/binding.gyp new file mode 100644 index 000000000..ec3992233 --- /dev/null +++ b/base/special/asecf/binding.gyp @@ -0,0 +1,170 @@ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A `.gyp` file for building a Node.js native add-on. +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # List of files to include in this file: + 'includes': [ + './include.gypi', + ], + + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Target name should match the add-on export name: + 'addon_target_name%': 'addon', + + # Set variables based on the host OS: + 'conditions': [ + [ + 'OS=="win"', + { + # Define the object file suffix: + 'obj': 'obj', + }, + { + # Define the object file suffix: + 'obj': 'o', + } + ], # end condition (OS=="win") + ], # end conditions + }, # end variables + + # Define compile targets: + 'targets': [ + + # Target to generate an add-on: + { + # The target name should match the add-on export name: + 'target_name': '<(addon_target_name)', + + # Define dependencies: + 'dependencies': [], + + # Define directories which contain relevant include headers: + 'include_dirs': [ + # Local include directory: + '<@(include_dirs)', + ], + + # List of source files: + 'sources': [ + '<@(src_files)', + ], + + # Settings which should be applied when a target's object files are used as linker input: + 'link_settings': { + # Define libraries: + 'libraries': [ + '<@(libraries)', + ], + + # Define library directories: + 'library_dirs': [ + '<@(library_dirs)', + ], + }, + + # C/C++ compiler flags: + 'cflags': [ + # Enable commonly used warning options: + '-Wall', + + # Aggressive optimization: + '-O3', + ], + + # C specific compiler flags: + 'cflags_c': [ + # Specify the C standard to which a program is expected to conform: + '-std=c99', + ], + + # C++ specific compiler flags: + 'cflags_cpp': [ + # Specify the C++ standard to which a program is expected to conform: + '-std=c++11', + ], + + # Linker flags: + 'ldflags': [], + + # Apply conditions based on the host OS: + 'conditions': [ + [ + 'OS=="mac"', + { + # Linker flags: + 'ldflags': [ + '-undefined dynamic_lookup', + '-Wl,-no-pie', + '-Wl,-search_paths_first', + ], + }, + ], # end condition (OS=="mac") + [ + 'OS!="win"', + { + # C/C++ flags: + 'cflags': [ + # Generate platform-independent code: + '-fPIC', + ], + }, + ], # end condition (OS!="win") + ], # end conditions + }, # end target <(addon_target_name) + + # Target to copy a generated add-on to a standard location: + { + 'target_name': 'copy_addon', + + # Declare that the output of this target is not linked: + 'type': 'none', + + # Define dependencies: + 'dependencies': [ + # Require that the add-on be generated before building this target: + '<(addon_target_name)', + ], + + # Define a list of actions: + 'actions': [ + { + 'action_name': 'copy_addon', + 'message': 'Copying addon...', + + # Explicitly list the inputs in the command-line invocation below: + 'inputs': [], + + # Declare the expected outputs: + 'outputs': [ + '<(addon_output_dir)/<(addon_target_name).node', + ], + + # Define the command-line invocation: + 'action': [ + 'cp', + '<(PRODUCT_DIR)/<(addon_target_name).node', + '<(addon_output_dir)/<(addon_target_name).node', + ], + }, + ], # end actions + }, # end target copy_addon + ], # end targets +} diff --git a/base/special/asecf/docs/repl.txt b/base/special/asecf/docs/repl.txt new file mode 100644 index 000000000..52e79947f --- /dev/null +++ b/base/special/asecf/docs/repl.txt @@ -0,0 +1,29 @@ + +{{alias}}( x ) + Computes the inverse (arc) secant of a single-precision + floating-point number. + + If `x > -1` and `x < 1`, the function returns `NaN`. + + Parameters + ---------- + x: number + Input value. + + Returns + ------- + y: number + Inverse (arc) secant. + + Examples + -------- + > var y = {{alias}}( 1.0 ) + 0.0 + > y = {{alias}}( 2.0 ) + ~1.0472 + > y = {{alias}}( NaN ) + NaN + + See Also + -------- + diff --git a/base/special/asecf/docs/types/index.d.ts b/base/special/asecf/docs/types/index.d.ts new file mode 100644 index 000000000..54b8955fb --- /dev/null +++ b/base/special/asecf/docs/types/index.d.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Computes the inverse (arc) secant of a single-precision floating-point number. +* +* @param x - input value +* @returns inverse (arc) secant +* +* @example +* var v = asecf( 1.0 ); +* // returns 0.0 +* +* @example +* var v = asecf( 2.0 ); +* // returns ~1.0472 +* +* @example +* var v = asecf( NaN ); +* // returns NaN +*/ +declare function asecf( x: number ): number; + + +// EXPORTS // + +export = asecf; diff --git a/base/special/asecf/docs/types/test.ts b/base/special/asecf/docs/types/test.ts new file mode 100644 index 000000000..21e28c34d --- /dev/null +++ b/base/special/asecf/docs/types/test.ts @@ -0,0 +1,44 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import asecf = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + asecf( 8 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + asecf( true ); // $ExpectError + asecf( false ); // $ExpectError + asecf( null ); // $ExpectError + asecf( undefined ); // $ExpectError + asecf( '5' ); // $ExpectError + asecf( [] ); // $ExpectError + asecf( {} ); // $ExpectError + asecf( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + asecf(); // $ExpectError +} diff --git a/base/special/asecf/examples/c/Makefile b/base/special/asecf/examples/c/Makefile new file mode 100644 index 000000000..6aed70daf --- /dev/null +++ b/base/special/asecf/examples/c/Makefile @@ -0,0 +1,146 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + +# Define the program used for compiling C source files: +ifdef C_COMPILER + CC := $(C_COMPILER) +else + CC := gcc +endif + +# Define the command-line options when compiling C files: +CFLAGS ?= \ + -std=c99 \ + -O3 \ + -Wall \ + -pedantic + +# Determine whether to generate position independent code ([1][1], [2][2]). +# +# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options +# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option +ifeq ($(OS), WINNT) + fPIC ?= +else + fPIC ?= -fPIC +endif + +# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): +INCLUDE ?= + +# List of source files: +SOURCE_FILES ?= + +# List of libraries (e.g., `-lopenblas -lpthread`): +LIBRARIES ?= + +# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): +LIBPATH ?= + +# List of C targets: +c_targets := example.out + + +# RULES # + +#/ +# Compiles source files. +# +# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) +# @param {string} [CFLAGS] - C compiler options +# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) +# @param {string} [SOURCE_FILES] - list of source files +# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) +# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) +# +# @example +# make +# +# @example +# make all +#/ +all: $(c_targets) + +.PHONY: all + +#/ +# Compiles C source files. +# +# @private +# @param {string} CC - C compiler (e.g., `gcc`) +# @param {string} CFLAGS - C compiler options +# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) +# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) +# @param {string} SOURCE_FILES - list of source files +# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) +# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) +#/ +$(c_targets): %.out: %.c + $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + +#/ +# Runs compiled examples. +# +# @example +# make run +#/ +run: $(c_targets) + $(QUIET) ./$< + +.PHONY: run + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: + $(QUIET) -rm -f *.o *.out + +.PHONY: clean diff --git a/base/special/asecf/examples/c/example.c b/base/special/asecf/examples/c/example.c new file mode 100644 index 000000000..5d0a9f769 --- /dev/null +++ b/base/special/asecf/examples/c/example.c @@ -0,0 +1,31 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/asecf.h" +#include + +int main( void ) { + const float x[] = { -5.0f, -3.89f, -2.78f, -1.67f, -0.56f, 0.56f, 1.67f, 2.78f, 3.89f, 5.0f }; + + float v; + int i; + for ( i = 0; i < 10; i++ ) { + v = stdlib_base_asecf( x[ i ] ); + printf( "asec(%f) = %f\n", x[ i ], v ); + } +} diff --git a/base/special/asecf/examples/index.js b/base/special/asecf/examples/index.js new file mode 100644 index 000000000..89be84dd5 --- /dev/null +++ b/base/special/asecf/examples/index.js @@ -0,0 +1,29 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var linspace = require( '@stdlib/array/base/linspace' ); +var asecf = require( './../lib' ); + +var x = linspace( 1.0, 10.0, 100 ); + +var i; +for ( i = 0; i < x.length; i++ ) { + console.log( 'asecf(%d) = %d', x[ i ], asecf( x[ i ] ) ); +} diff --git a/base/special/asecf/include.gypi b/base/special/asecf/include.gypi new file mode 100644 index 000000000..575cb043c --- /dev/null +++ b/base/special/asecf/include.gypi @@ -0,0 +1,53 @@ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# A GYP include file for building a Node.js native add-on. +# +# Main documentation: +# +# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md +# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md +{ + # Define variables to be used throughout the configuration for all targets: + 'variables': { + # Source directory: + 'src_dir': './src', + + # Include directories: + 'include_dirs': [ + '=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "asecf", + "inverse", + "cosine", + "cos", + "arc", + "arccosine", + "secant", + "arcsecant", + "trig", + "trigonometry", + "angle" + ] +} diff --git a/base/special/asecf/src/Makefile b/base/special/asecf/src/Makefile new file mode 100644 index 000000000..bcf18aa46 --- /dev/null +++ b/base/special/asecf/src/Makefile @@ -0,0 +1,70 @@ +#/ +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#/ + +# VARIABLES # + +ifndef VERBOSE + QUIET := @ +else + QUIET := +endif + +# Determine the OS ([1][1], [2][2]). +# +# [1]: https://en.wikipedia.org/wiki/Uname#Examples +# [2]: http://stackoverflow.com/a/27776822/2225624 +OS ?= $(shell uname) +ifneq (, $(findstring MINGW,$(OS))) + OS := WINNT +else +ifneq (, $(findstring MSYS,$(OS))) + OS := WINNT +else +ifneq (, $(findstring CYGWIN,$(OS))) + OS := WINNT +else +ifneq (, $(findstring Windows_NT,$(OS))) + OS := WINNT +endif +endif +endif +endif + + +# RULES # + +#/ +# Removes generated files for building an add-on. +# +# @example +# make clean-addon +#/ +clean-addon: + $(QUIET) -rm -f *.o *.node + +.PHONY: clean-addon + +#/ +# Removes generated files. +# +# @example +# make clean +#/ +clean: clean-addon + +.PHONY: clean diff --git a/base/special/asecf/src/addon.c b/base/special/asecf/src/addon.c new file mode 100644 index 000000000..eaf88043f --- /dev/null +++ b/base/special/asecf/src/addon.c @@ -0,0 +1,23 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/asecf.h" +#include "stdlib/math/base/napi/unary.h" + +// cppcheck-suppress shadowFunction +STDLIB_MATH_BASE_NAPI_MODULE_F_F( stdlib_base_asecf ) diff --git a/base/special/asecf/src/main.c b/base/special/asecf/src/main.c new file mode 100644 index 000000000..6f7285c18 --- /dev/null +++ b/base/special/asecf/src/main.c @@ -0,0 +1,34 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/asecf.h" +#include "stdlib/math/base/special/acosf.h" + +/** +* Computes the inverse (arc) secant of a single-precision floating-point number. +* +* @param x input value +* @return output value +* +* @example +* float out = stdlib_base_asecf( 1.0f ); +* // returns 0.0f +*/ +float stdlib_base_asecf( const float x ) { + return stdlib_base_acosf( 1.0f / x ); +} diff --git a/base/special/asecf/test/fixtures/julia/REQUIRE b/base/special/asecf/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000..308c3be89 --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/REQUIRE @@ -0,0 +1,2 @@ +julia 1.5 +JSON 0.21 diff --git a/base/special/asecf/test/fixtures/julia/huge_negative.json b/base/special/asecf/test/fixtures/julia/huge_negative.json new file mode 100644 index 000000000..dc3d8d483 --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/huge_negative.json @@ -0,0 +1 @@ +{"expected":[1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966],"x":[-1.0e20,-1.9920418525896414e25,-3.984073705179283e25,-5.976105557768924e25,-7.968137410358566e25,-9.960169262948207e25,-1.1952201115537847e26,-1.394423296812749e26,-1.593626482071713e26,-1.7928296673306773e26,-1.9920328525896412e26,-2.1912360378486055e26,-2.3904392231075697e26,-2.5896424083665336e26,-2.788845593625498e26,-2.988048778884462e26,-3.187251964143426e26,-3.3864551494023906e26,-3.5856583346613545e26,-3.7848615199203184e26,-3.984064705179283e26,-4.183267890438247e26,-4.382471075697211e26,-4.5816742609561754e26,-4.780877446215139e26,-4.980080631474103e26,-5.179283816733068e26,-5.378487001992032e26,-5.5776901872509956e26,-5.77689337250996e26,-5.976096557768924e26,-6.175299743027888e26,-6.374502928286853e26,-6.573706113545816e26,-6.77290929880478e26,-6.972112484063744e26,-7.171315669322708e26,-7.370518854581673e26,-7.569722039840637e26,-7.768925225099601e26,-7.968128410358565e26,-8.167331595617529e26,-8.366534780876493e26,-8.565737966135458e26,-8.764941151394422e26,-8.964144336653386e26,-9.16334752191235e26,-9.362550707171314e26,-9.561753892430279e26,-9.760957077689243e26,-9.960160262948207e26,-1.0159363448207171e27,-1.0358566633466135e27,-1.0557769818725099e27,-1.0756973003984064e27,-1.0956176189243028e27,-1.1155379374501992e27,-1.1354582559760956e27,-1.155378574501992e27,-1.1752988930278883e27,-1.1952192115537849e27,-1.2151395300796813e27,-1.2350598486055777e27,-1.2549801671314742e27,-1.2749004856573704e27,-1.294820804183267e27,-1.3147411227091632e27,-1.3346614412350597e27,-1.354581759760956e27,-1.3745020782868525e27,-1.394422396812749e27,-1.4143427153386453e27,-1.4342630338645418e27,-1.454183352390438e27,-1.4741036709163346e27,-1.4940239894422311e27,-1.5139443079681274e27,-1.533864626494024e27,-1.5537849450199202e27,-1.5737052635458167e27,-1.593625582071713e27,-1.6135459005976095e27,-1.633466219123506e27,-1.6533865376494023e27,-1.6733068561752988e27,-1.693227174701195e27,-1.7131474932270916e27,-1.733067811752988e27,-1.7529881302788844e27,-1.772908448804781e27,-1.792828767330677e27,-1.8127490858565737e27,-1.83266940438247e27,-1.8525897229083664e27,-1.872510041434263e27,-1.8924303599601592e27,-1.9123506784860558e27,-1.932270997011952e27,-1.9521913155378485e27,-1.972111634063745e27,-1.9920319525896413e27,-2.0119522711155378e27,-2.031872589641434e27,-2.0517929081673306e27,-2.071713226693227e27,-2.0916335452191234e27,-2.11155386374502e27,-2.1314741822709162e27,-2.1513945007968127e27,-2.171314819322709e27,-2.1912351378486055e27,-2.211155456374502e27,-2.2310757749003983e27,-2.2509960934262948e27,-2.270916411952191e27,-2.2908367304780876e27,-2.3107570490039838e27,-2.3306773675298804e27,-2.350597686055777e27,-2.3705180045816731e27,-2.3904383231075697e27,-2.410358641633466e27,-2.4302789601593625e27,-2.450199278685259e27,-2.4701195972111552e27,-2.4900399157370515e27,-2.509960234262948e27,-2.5298805527888445e27,-2.549800871314741e27,-2.5697211898406376e27,-2.5896415083665336e27,-2.60956182689243e27,-2.6294821454183266e27,-2.649402463944223e27,-2.669322782470119e27,-2.6892431009960157e27,-2.709163419521912e27,-2.7290837380478087e27,-2.749004056573705e27,-2.768924375099601e27,-2.788844693625498e27,-2.8087650121513943e27,-2.828685330677291e27,-2.8486056492031873e27,-2.8685259677290833e27,-2.88844628625498e27,-2.9083666047808764e27,-2.928286923306773e27,-2.9482072418326694e27,-2.9681275603585654e27,-2.988047878884462e27,-3.0079681974103585e27,-3.027888515936255e27,-3.0478088344621515e27,-3.0677291529880475e27,-3.087649471513944e27,-3.1075697900398405e27,-3.127490108565737e27,-3.1474104270916336e27,-3.1673307456175296e27,-3.187251064143426e27,-3.2071713826693226e27,-3.227091701195219e27,-3.247012019721115e27,-3.2669323382470117e27,-3.286852656772908e27,-3.306772975298805e27,-3.326693293824701e27,-3.346613612350597e27,-3.366533930876494e27,-3.3864542494023903e27,-3.406374567928287e27,-3.4262948864541833e27,-3.4462152049800793e27,-3.466135523505976e27,-3.4860558420318724e27,-3.505976160557769e27,-3.5258964790836654e27,-3.5458167976095614e27,-3.565737116135458e27,-3.5856574346613545e27,-3.605577753187251e27,-3.6254980717131475e27,-3.6454183902390435e27,-3.66533870876494e27,-3.6852590272908366e27,-3.705179345816733e27,-3.725099664342629e27,-3.7450199828685256e27,-3.764940301394422e27,-3.7848606199203186e27,-3.804780938446215e27,-3.824701256972111e27,-3.8446215754980077e27,-3.864541894023904e27,-3.884462212549801e27,-3.904382531075697e27,-3.924302849601593e27,-3.94422316812749e27,-3.9641434866533863e27,-3.984063805179283e27,-4.0039841237051794e27,-4.0239044422310753e27,-4.043824760756972e27,-4.0637450792828684e27,-4.083665397808765e27,-4.1035857163346614e27,-4.1235060348605574e27,-4.143426353386454e27,-4.1633466719123505e27,-4.183266990438247e27,-4.203187308964143e27,-4.2231076274900395e27,-4.243027946015936e27,-4.2629482645418326e27,-4.282868583067729e27,-4.302788901593625e27,-4.3227092201195216e27,-4.342629538645418e27,-4.3625498571713147e27,-4.382470175697211e27,-4.402390494223107e27,-4.4223108127490037e27,-4.4422311312749e27,-4.462151449800797e27,-4.482071768326693e27,-4.501992086852589e27,-4.521912405378486e27,-4.5418327239043823e27,-4.561753042430279e27,-4.5816733609561754e27,-4.6015936794820713e27,-4.621513998007968e27,-4.6414343165338644e27,-4.661354635059761e27,-4.6812749535856574e27,-4.7011952721115534e27,-4.72111559063745e27,-4.7410359091633465e27,-4.760956227689243e27,-4.780876546215139e27,-4.8007968647410355e27,-4.820717183266932e27,-4.8406375017928286e27,-4.860557820318725e27,-4.880478138844621e27,-4.9003984573705176e27,-4.920318775896414e27,-4.9402390944223107e27,-4.960159412948207e27,-4.980079731474103e27,-5.00000005e27,-5.019920368525896e27,-5.039840687051793e27,-5.059761005577689e27,-5.079681324103586e27,-5.099601642629482e27,-5.119521961155378e27,-5.139442279681274e27,-5.159362598207171e27,-5.179282916733067e27,-5.199203235258964e27,-5.21912355378486e27,-5.239043872310757e27,-5.258964190836653e27,-5.27888450936255e27,-5.298804827888447e27,-5.318725146414342e27,-5.338645464940238e27,-5.358565783466135e27,-5.378486101992032e27,-5.398406420517928e27,-5.418326739043825e27,-5.438247057569721e27,-5.458167376095618e27,-5.478087694621514e27,-5.49800801314741e27,-5.517928331673306e27,-5.537848650199203e27,-5.557768968725099e27,-5.577689287250996e27,-5.597609605776892e27,-5.617529924302789e27,-5.637450242828685e27,-5.657370561354582e27,-5.677290879880478e27,-5.697211198406374e27,-5.71713151693227e27,-5.737051835458167e27,-5.756972153984063e27,-5.77689247250996e27,-5.796812791035856e27,-5.816733109561753e27,-5.83665342808765e27,-5.856573746613546e27,-5.876494065139443e27,-5.896414383665338e27,-5.916334702191234e27,-5.936255020717131e27,-5.956175339243028e27,-5.976095657768924e27,-5.996015976294821e27,-6.015936294820717e27,-6.035856613346614e27,-6.05577693187251e27,-6.075697250398406e27,-6.095617568924302e27,-6.115537887450199e27,-6.135458205976095e27,-6.155378524501992e27,-6.175298843027888e27,-6.195219161553785e27,-6.215139480079681e27,-6.235059798605578e27,-6.254980117131474e27,-6.27490043565737e27,-6.294820754183266e27,-6.314741072709163e27,-6.334661391235059e27,-6.354581709760956e27,-6.374502028286852e27,-6.394422346812749e27,-6.414342665338645e27,-6.434262983864542e27,-6.454183302390439e27,-6.474103620916334e27,-6.49402393944223e27,-6.513944257968127e27,-6.533864576494024e27,-6.55378489501992e27,-6.573705213545817e27,-6.593625532071713e27,-6.61354585059761e27,-6.633466169123506e27,-6.653386487649402e27,-6.673306806175298e27,-6.693227124701195e27,-6.713147443227091e27,-6.733067761752988e27,-6.752988080278884e27,-6.772908398804781e27,-6.792828717330677e27,-6.812749035856574e27,-6.83266935438247e27,-6.852589672908366e27,-6.872509991434262e27,-6.892430309960159e27,-6.912350628486055e27,-6.932270947011952e27,-6.952191265537848e27,-6.972111584063745e27,-6.992031902589641e27,-7.011952221115538e27,-7.031872539641433e27,-7.05179285816733e27,-7.071713176693226e27,-7.091633495219123e27,-7.11155381374502e27,-7.131474132270916e27,-7.151394450796813e27,-7.171314769322709e27,-7.191235087848606e27,-7.211155406374502e27,-7.231075724900398e27,-7.250996043426294e27,-7.270916361952191e27,-7.290836680478087e27,-7.310756999003984e27,-7.33067731752988e27,-7.350597636055777e27,-7.370517954581673e27,-7.39043827310757e27,-7.410358591633466e27,-7.430278910159362e27,-7.450199228685258e27,-7.470119547211155e27,-7.490039865737051e27,-7.509960184262948e27,-7.529880502788844e27,-7.549800821314741e27,-7.569721139840637e27,-7.589641458366534e27,-7.609561776892429e27,-7.629482095418326e27,-7.649402413944222e27,-7.669322732470119e27,-7.689243050996016e27,-7.709163369521912e27,-7.729083688047809e27,-7.749004006573705e27,-7.768924325099602e27,-7.788844643625498e27,-7.808764962151394e27,-7.82868528067729e27,-7.848605599203187e27,-7.868525917729083e27,-7.88844623625498e27,-7.908366554780876e27,-7.928286873306773e27,-7.948207191832669e27,-7.968127510358566e27,-7.988047828884461e27,-8.007968147410358e27,-8.027888465936254e27,-8.047808784462151e27,-8.067729102988047e27,-8.087649421513944e27,-8.10756974003984e27,-8.127490058565737e27,-8.147410377091633e27,-8.16733069561753e27,-8.187251014143425e27,-8.207171332669322e27,-8.227091651195219e27,-8.247011969721115e27,-8.266932288247012e27,-8.286852606772908e27,-8.306772925298805e27,-8.326693243824701e27,-8.346613562350598e27,-8.366533880876494e27,-8.38645419940239e27,-8.406374517928286e27,-8.426294836454183e27,-8.446215154980079e27,-8.466135473505976e27,-8.486055792031872e27,-8.505976110557769e27,-8.525896429083665e27,-8.545816747609562e27,-8.565737066135457e27,-8.585657384661354e27,-8.60557770318725e27,-8.625498021713147e27,-8.645418340239043e27,-8.66533865876494e27,-8.685258977290836e27,-8.705179295816733e27,-8.72509961434263e27,-8.745019932868526e27,-8.764940251394421e27,-8.784860569920318e27,-8.804780888446215e27,-8.824701206972111e27,-8.844621525498008e27,-8.864541844023904e27,-8.884462162549801e27,-8.904382481075697e27,-8.924302799601594e27,-8.94422311812749e27,-8.964143436653386e27,-8.984063755179282e27,-9.003984073705179e27,-9.023904392231075e27,-9.043824710756972e27,-9.063745029282868e27,-9.083665347808765e27,-9.103585666334661e27,-9.123505984860558e27,-9.143426303386453e27,-9.16334662191235e27,-9.183266940438246e27,-9.203187258964143e27,-9.223107577490039e27,-9.243027896015936e27,-9.262948214541832e27,-9.282868533067729e27,-9.302788851593626e27,-9.322709170119522e27,-9.342629488645417e27,-9.362549807171314e27,-9.38247012569721e27,-9.402390444223107e27,-9.422310762749004e27,-9.4422310812749e27,-9.462151399800797e27,-9.482071718326693e27,-9.50199203685259e27,-9.521912355378485e27,-9.541832673904382e27,-9.561752992430278e27,-9.581673310956175e27,-9.601593629482071e27,-9.621513948007968e27,-9.641434266533864e27,-9.661354585059761e27,-9.681274903585657e27,-9.701195222111554e27,-9.721115540637449e27,-9.741035859163346e27,-9.760956177689242e27,-9.780876496215139e27,-9.800796814741035e27,-9.820717133266932e27,-9.840637451792828e27,-9.860557770318725e27,-9.880478088844622e27,-9.900398407370518e27,-9.920318725896413e27,-9.94023904442231e27,-9.960159362948207e27,-9.980079681474103e27,-1.0e28]} \ No newline at end of file diff --git a/base/special/asecf/test/fixtures/julia/huge_positive.json b/base/special/asecf/test/fixtures/julia/huge_positive.json new file mode 100644 index 000000000..96f2141b9 --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/huge_positive.json @@ -0,0 +1 @@ +{"expected":[1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966,1.5707963267948966],"x":[1.0e30,1.9920418525896412e35,3.9840737051792825e35,5.976105557768924e35,7.968137410358565e35,9.960169262948207e35,1.1952201115537848e36,1.394423296812749e36,1.593626482071713e36,1.792829667330677e36,1.9920328525896415e36,2.1912360378486056e36,2.3904392231075697e36,2.5896424083665338e36,2.788845593625498e36,2.988048778884462e36,3.1872519641434263e36,3.38645514940239e36,3.5856583346613545e36,3.784861519920319e36,3.984064705179283e36,4.183267890438247e36,4.382471075697211e36,4.581674260956175e36,4.780877446215139e36,4.9800806314741035e36,5.179283816733068e36,5.378487001992032e36,5.577690187250995e36,5.77689337250996e36,5.976096557768924e36,6.175299743027889e36,6.374502928286853e36,6.573706113545816e36,6.77290929880478e36,6.972112484063745e36,7.171315669322709e36,7.370518854581673e36,7.569722039840637e36,7.768925225099601e36,7.968128410358566e36,8.16733159561753e36,8.366534780876493e36,8.565737966135458e36,8.764941151394422e36,8.964144336653386e36,9.163347521912351e36,9.362550707171314e36,9.561753892430278e36,9.760957077689243e36,9.960160262948207e36,1.0159363448207172e37,1.0358566633466135e37,1.0557769818725099e37,1.0756973003984064e37,1.0956176189243027e37,1.1155379374501992e37,1.1354582559760956e37,1.155378574501992e37,1.1752988930278884e37,1.1952192115537848e37,1.2151395300796813e37,1.2350598486055776e37,1.2549801671314742e37,1.2749004856573705e37,1.2948208041832668e37,1.3147411227091634e37,1.3346614412350597e37,1.354581759760956e37,1.3745020782868526e37,1.394422396812749e37,1.4143427153386455e37,1.4342630338645418e37,1.454183352390438e37,1.4741036709163347e37,1.494023989442231e37,1.5139443079681275e37,1.5338646264940239e37,1.5537849450199202e37,1.5737052635458167e37,1.593625582071713e37,1.6135459005976096e37,1.633466219123506e37,1.6533865376494023e37,1.6733068561752988e37,1.6932271747011951e37,1.7131474932270917e37,1.733067811752988e37,1.7529881302788843e37,1.772908448804781e37,1.7928287673306772e37,1.8127490858565738e37,1.83266940438247e37,1.8525897229083664e37,1.872510041434263e37,1.8924303599601593e37,1.9123506784860558e37,1.9322709970119522e37,1.9521913155378485e37,1.972111634063745e37,1.9920319525896414e37,2.011952271115538e37,2.0318725896414342e37,2.0517929081673306e37,2.071713226693227e37,2.0916335452191234e37,2.11155386374502e37,2.1314741822709163e37,2.1513945007968126e37,2.171314819322709e37,2.1912351378486057e37,2.211155456374502e37,2.2310757749003984e37,2.2509960934262947e37,2.270916411952191e37,2.290836730478088e37,2.310757049003984e37,2.3306773675298805e37,2.350597686055777e37,2.370518004581673e37,2.39043832310757e37,2.410358641633466e37,2.4302789601593625e37,2.450199278685259e37,2.470119597211155e37,2.490039915737052e37,2.5099602342629483e37,2.5298805527888446e37,2.549800871314741e37,2.5697211898406372e37,2.5896415083665336e37,2.6095618268924304e37,2.6294821454183267e37,2.649402463944223e37,2.6693227824701193e37,2.6892431009960156e37,2.7091634195219124e37,2.7290837380478088e37,2.749004056573705e37,2.7689243750996014e37,2.7888446936254977e37,2.8087650121513945e37,2.828685330677291e37,2.848605649203187e37,2.8685259677290835e37,2.88844628625498e37,2.9083666047808766e37,2.928286923306773e37,2.948207241832669e37,2.9681275603585656e37,2.988047878884462e37,3.0079681974103587e37,3.027888515936255e37,3.0478088344621513e37,3.0677291529880476e37,3.087649471513944e37,3.1075697900398407e37,3.127490108565737e37,3.1474104270916334e37,3.1673307456175297e37,3.187251064143426e37,3.207171382669323e37,3.227091701195219e37,3.2470120197211155e37,3.266932338247012e37,3.286852656772908e37,3.306772975298805e37,3.326693293824701e37,3.3466136123505975e37,3.366533930876494e37,3.38645424940239e37,3.406374567928287e37,3.4262948864541833e37,3.4462152049800796e37,3.466135523505976e37,3.4860558420318722e37,3.505976160557769e37,3.5258964790836654e37,3.5458167976095617e37,3.565737116135458e37,3.5856574346613543e37,3.605577753187251e37,3.6254980717131474e37,3.6454183902390438e37,3.66533870876494e37,3.6852590272908364e37,3.705179345816733e37,3.7250996643426295e37,3.745019982868526e37,3.764940301394422e37,3.7848606199203185e37,3.8047809384462153e37,3.8247012569721116e37,3.844621575498008e37,3.864541894023904e37,3.8844622125498005e37,3.9043825310756973e37,3.9243028496015937e37,3.94422316812749e37,3.9641434866533863e37,3.9840638051792826e37,4.0039841237051794e37,4.0239044422310757e37,4.043824760756972e37,4.0637450792828684e37,4.0836653978087647e37,4.1035857163346615e37,4.123506034860558e37,4.143426353386454e37,4.1633466719123505e37,4.183266990438247e37,4.2031873089641436e37,4.22310762749004e37,4.243027946015936e37,4.262948264541833e37,4.282868583067729e37,4.302788901593626e37,4.322709220119522e37,4.342629538645418e37,4.362549857171315e37,4.382470175697211e37,4.402390494223107e37,4.422310812749004e37,4.4422311312749e37,4.462151449800797e37,4.482071768326693e37,4.50199208685259e37,4.521912405378486e37,4.541832723904382e37,4.561753042430279e37,4.581673360956175e37,4.601593679482071e37,4.621513998007968e37,4.641434316533864e37,4.661354635059761e37,4.681274953585658e37,4.701195272111554e37,4.72111559063745e37,4.741035909163347e37,4.760956227689243e37,4.780876546215139e37,4.800796864741036e37,4.820717183266932e37,4.840637501792828e37,4.860557820318725e37,4.880478138844622e37,4.900398457370518e37,4.920318775896414e37,4.940239094422311e37,4.960159412948207e37,4.980079731474103e37,5.00000005e37,5.019920368525896e37,5.039840687051792e37,5.059761005577689e37,5.079681324103586e37,5.099601642629482e37,5.119521961155379e37,5.139442279681275e37,5.159362598207171e37,5.1792829167330675e37,5.199203235258964e37,5.21912355378486e37,5.2390438723107565e37,5.258964190836653e37,5.27888450936255e37,5.298804827888446e37,5.318725146414343e37,5.338645464940239e37,5.358565783466135e37,5.378486101992032e37,5.398406420517928e37,5.418326739043824e37,5.438247057569721e37,5.458167376095617e37,5.478087694621514e37,5.498008013147411e37,5.517928331673307e37,5.537848650199203e37,5.5577689687250995e37,5.577689287250996e37,5.597609605776892e37,5.617529924302788e37,5.637450242828685e37,5.657370561354581e37,5.677290879880478e37,5.697211198406375e37,5.717131516932271e37,5.737051835458167e37,5.756972153984064e37,5.77689247250996e37,5.796812791035856e37,5.816733109561753e37,5.836653428087649e37,5.856573746613545e37,5.8764940651394425e37,5.896414383665339e37,5.916334702191235e37,5.9362550207171315e37,5.956175339243028e37,5.976095657768924e37,5.99601597629482e37,6.015936294820717e37,6.035856613346613e37,6.055776931872509e37,6.075697250398407e37,6.095617568924303e37,6.115537887450199e37,6.135458205976096e37,6.155378524501992e37,6.175298843027888e37,6.195219161553785e37,6.215139480079681e37,6.235059798605577e37,6.254980117131474e37,6.274900435657371e37,6.294820754183267e37,6.314741072709163e37,6.33466139123506e37,6.354581709760956e37,6.374502028286852e37,6.394422346812749e37,6.414342665338645e37,6.434262983864541e37,6.454183302390438e37,6.474103620916335e37,6.494023939442231e37,6.513944257968128e37,6.533864576494024e37,6.55378489501992e37,6.573705213545817e37,6.593625532071713e37,6.613545850597609e37,6.633466169123506e37,6.653386487649402e37,6.673306806175299e37,6.693227124701195e37,6.713147443227092e37,6.733067761752988e37,6.752988080278884e37,6.772908398804781e37,6.792828717330677e37,6.812749035856573e37,6.83266935438247e37,6.852589672908366e37,6.872509991434262e37,6.89243030996016e37,6.912350628486056e37,6.932270947011952e37,6.952191265537849e37,6.972111584063745e37,6.992031902589641e37,7.0119522211155375e37,7.031872539641434e37,7.05179285816733e37,7.0717131766932265e37,7.091633495219124e37,7.11155381374502e37,7.131474132270916e37,7.151394450796813e37,7.171314769322709e37,7.191235087848605e37,7.211155406374502e37,7.231075724900398e37,7.250996043426294e37,7.270916361952191e37,7.290836680478088e37,7.310756999003984e37,7.330677317529881e37,7.350597636055777e37,7.370517954581673e37,7.3904382731075695e37,7.410358591633466e37,7.430278910159362e37,7.450199228685258e37,7.470119547211155e37,7.490039865737052e37,7.509960184262948e37,7.529880502788845e37,7.549800821314741e37,7.569721139840637e37,7.589641458366534e37,7.60956177689243e37,7.629482095418326e37,7.649402413944223e37,7.669322732470119e37,7.689243050996016e37,7.7091633695219125e37,7.729083688047809e37,7.749004006573705e37,7.7689243250996015e37,7.788844643625498e37,7.808764962151394e37,7.82868528067729e37,7.848605599203187e37,7.868525917729083e37,7.88844623625498e37,7.908366554780877e37,7.928286873306773e37,7.948207191832669e37,7.968127510358566e37,7.988047828884462e37,8.007968147410358e37,8.027888465936255e37,8.047808784462151e37,8.067729102988047e37,8.0876494215139445e37,8.107569740039841e37,8.127490058565737e37,8.147410377091633e37,8.16733069561753e37,8.187251014143426e37,8.207171332669322e37,8.227091651195219e37,8.247011969721115e37,8.266932288247011e37,8.286852606772909e37,8.306772925298805e37,8.326693243824701e37,8.346613562350598e37,8.366533880876494e37,8.38645419940239e37,8.406374517928287e37,8.426294836454183e37,8.446215154980079e37,8.466135473505976e37,8.486055792031872e37,8.505976110557769e37,8.525896429083664e37,8.545816747609562e37,8.565737066135457e37,8.585657384661354e37,8.605577703187252e37,8.625498021713147e37,8.645418340239044e37,8.66533865876494e37,8.685258977290837e37,8.705179295816732e37,8.72509961434263e37,8.745019932868525e37,8.764940251394422e37,8.784860569920318e37,8.804780888446215e37,8.824701206972112e37,8.844621525498008e37,8.864541844023905e37,8.8844621625498e37,8.904382481075697e37,8.924302799601593e37,8.94422311812749e37,8.964143436653385e37,8.984063755179283e37,9.00398407370518e37,9.023904392231075e37,9.043824710756973e37,9.063745029282868e37,9.083665347808765e37,9.10358566633466e37,9.123505984860558e37,9.143426303386453e37,9.16334662191235e37,9.183266940438246e37,9.203187258964143e37,9.22310757749004e37,9.243027896015936e37,9.262948214541833e37,9.282868533067728e37,9.302788851593626e37,9.322709170119521e37,9.342629488645418e37,9.362549807171314e37,9.382470125697211e37,9.402390444223108e37,9.422310762749004e37,9.4422310812749e37,9.462151399800796e37,9.482071718326694e37,9.501992036852589e37,9.521912355378486e37,9.541832673904382e37,9.561752992430279e37,9.581673310956174e37,9.601593629482071e37,9.621513948007969e37,9.641434266533864e37,9.661354585059761e37,9.681274903585657e37,9.701195222111554e37,9.72111554063745e37,9.741035859163347e37,9.760956177689242e37,9.78087649621514e37,9.800796814741037e37,9.820717133266932e37,9.84063745179283e37,9.860557770318725e37,9.880478088844622e37,9.900398407370517e37,9.920318725896414e37,9.94023904442231e37,9.960159362948207e37,9.980079681474103e37,1.0e38]} \ No newline at end of file diff --git a/base/special/asecf/test/fixtures/julia/large_negative.json b/base/special/asecf/test/fixtures/julia/large_negative.json new file mode 100644 index 000000000..43001521d --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/large_negative.json @@ -0,0 +1 @@ +{"expected":[1.9106332362490186,1.8891979604578237,1.8703477778143003,1.8536351252493941,1.8387114194564824,1.8253008190576958,1.8131819971619607,1.8021751836178828,1.7921327665574436,1.782932353865645,1.7744715695449245,1.766664095851969,1.7594366245154025,1.7527264810470535,1.7464797540278896,1.7406498078175647,1.7351960896139758,1.7300831647788226,1.725279930841804,1.7207589725828012,1.7164960294025189,1.712469552738702,1.7086603361979142,1.705051204794127,1.7016267525286102,1.698373119735786,1.6952778033197364,1.692329494335175,1.6895179384128933,1.6868338153584936,1.6842686349137903,1.6818146461997796,1.679464758786876,1.677212473683894,1.6750518228187883,1.6729773158144778,1.6709838930523224,1.669066884172001,1.6672219712859535,1.6654451562942083,1.6637327317753245,1.662081255004509,1.6604875247133386,1.658948560258974,1.6574615829160082,1.6560239990425158,1.65463338490459,1.6532874729716078,1.65198413951839,1.6507213933909817,1.6494973658104655,1.6483103011044982,1.6471585482694622,1.6460405532775895,1.644954852053361,1.6439000640521653,1.642874886381759,1.6418780884137028,1.6409085068377351,1.639965041117152,1.6390466493077307,1.6381523442066934,1.6372811898016857,1.6364322979928363,1.6356048255636844,1.6347979713791978,1.6340109737912463,1.6332431082338201,1.6324936849919878,1.6317620471301142,1.6310475685662251,1.6303496522806202,1.6296677286479384,1.6290012538828522,1.6283497085904621,1.6277125964132444,1.6270894427671305,1.62647979365994,1.6258832145859667,1.6252992894910554,1.6247276198029719,1.6241678235223127,1.6236195343695863,1.6230824009844542,1.6225560861734505,1.6220402662027842,1.6215346301331053,1.6210388791933543,1.6205527261910448,1.6200758949565237,1.6196081198189494,1.6191491451118956,1.6186987247066402,1.6182566215713519,1.6178226073545081,1.6173964619910064,1.6169779733295389,1.616566936779902,1.616163154979008,1.6157664374744505,1.6153766004245567,1.6149934663139338,1.6146168636835818,1.6142466268747107,1.613882595785455,1.6135246156397374,1.6131725367675755,1.6128262143961798,1.612485508451225,1.6121502833677255,1.6118204079099745,1.6114957550000464,1.6111762015543876,1.6108616283280581,1.6105519197662057,1.6102469638623864,1.6099466520233623,1.6096508789400392,1.6093595424642149,1.6090725434908402,1.6087897858455038,1.6085111761768751,1.6082366238538484,1.607966040867155,1.6076993417352141,1.607436443414013,1.6071772652108176,1.6069217287015225,1.6066697576514637,1.606421277939526,1.606176217485387,1.6059345061797452,1.6056960758173926,1.6054608600329965,1.6052287942394634,1.6049998155687637,1.6047738628151058,1.6045508763803495,1.604330798221556,1.604113571800579,1.6038991420356048,1.6036874552545524,1.6034784591502524,1.603272102737326,1.6030683363106875,1.6028671114056017,1.602668380759227,1.6024720982735818,1.6022782189798703,1.6020866990041136,1.6018974955340268,1.601710566787093,1.601525871979782,1.6013433712978673,1.6011630258677938,1.600984797729057,1.600808649807548,1.6006345458898277,1.6004624505982918,1.6002923293671916,1.600124148419474,1.5999578747444119,1.5997934760759915,1.5996309208720252,1.5994701782939658,1.599311218187391,1.599154011063136,1.5989985280790444,1.5988447410223188,1.5986926222924454,1.5985421448846704,1.5983932823740121,1.59824600889978,1.5981002991505933,1.597956128349868,1.5978134722417683,1.5976723070775922,1.5975326096025877,1.5973943570431737,1.5972575270945581,1.5971220979087368,1.5969880480828569,1.5968553566479362,1.596724003057924,1.5965939671790894,1.5964652292797297,1.5963377700201835,1.5962115704431423,1.5960866119642465,1.5959628763629576,1.5958403457736976,1.595719002677247,1.59559882989239,1.5954798105678012,1.5953619281741662,1.5952451664965244,1.595129509626831,1.5950149419567299,1.5949014481705275,1.5947890132383655,1.5946776224095827,1.5945672612062616,1.5944579154169525,1.5943495710905713,1.5942422145304629,1.594135832288627,1.5940304111601002,1.5939259381774908,1.5938224006056583,1.5937197859365368,1.593618081884097,1.5935172763794392,1.5934173575660182,1.5933183137949931,1.5932201336206973,1.5931228057962292,1.5930263192691552,1.5929306631773235,1.5928358268447882,1.5927417997778344,1.5926485716611065,1.5925561323538353,1.5924644718861587,1.5923735804555368,1.5922834484232555,1.5921940663110188,1.592105424797624,1.5920175147157218,1.5919303270486533,1.5918438529273669,1.5917580836274094,1.5916730105659924,1.591588625299126,1.5915049195188262,1.5914218850503858,1.5913395138497135,1.5912577980007352,1.5911767297128563,1.5910963013184867,1.5910165052706209,1.590937334140478,1.5908587806151946,1.590780837495573,1.5907034976938812,1.5906267542317034,1.590550600237841,1.5904750289462604,1.5904000336940898,1.5903256079196593,1.590251745160587,1.5901784390519083,1.590105683324246,1.5900334718020241,1.5899617984017185,1.5898906571301492,1.5898200420828086,1.5897499474422272,1.5896803674763773,1.5896112965371076,1.589542729058617,1.589474659555957,1.5894070826235698,1.5893399929338574,1.5892733852357803,1.5892072543534872,1.5891415951849748,1.5890764027007742,1.5890116719426672,1.5889473980224291,1.5888835761205968,1.5888202014852653,1.5887572694309067,1.588694775337216,1.5886327146479804,1.5885710828699702,1.5885098755718563,1.5884490883831457,1.588388716993143,1.5883287571499296,1.588269204659366,1.5882100553841134,1.588151305242676,1.5880929502084606,1.5880349863088576,1.5879774096243393,1.5879202162875754,1.5878634024825675,1.5878069644438004,1.5877508984554096,1.5876952008503658,1.5876398680096746,1.5875848963615937,1.5875302823808632,1.5874760225879523,1.5874221135483202,1.5873685518716907,1.5873153342113424,1.5872624572634104,1.5872099177662031,1.587157712499531,1.5871058382840493,1.5870542919806117,1.587003070489637,1.5869521707504883,1.586901589740863,1.5868513244761937,1.5868013720090626,1.586751729428624,1.5867023938600393,1.5866533624639219,1.586604632435792,1.5865562010055427,1.5865080654369137,1.5864602230269769,1.5864126711056303,1.586365407035101,1.5863184282094565,1.586271732054127,1.5862253160254352,1.586179177610132,1.5861333143249459,1.586087723716135,1.5860424033590506,1.585997350857707,1.5859525638443588,1.5859080399790864,1.5858637769493884,1.5858197724697813,1.5857760242814054,1.5857325301516394,1.585689287873719,1.585646295266365,1.585603550173416,1.5855610504634674,1.5855187940295175,1.5854767787886195,1.5854350026815385,1.585393463672416,1.5853521597484383,1.585311088919511,1.585270249217941,1.58522963869812,1.5851892554362175,1.5851490975298754,1.5851091630979104,1.5850694502800193,1.5850299572364908,1.584990682147921,1.5849516232149334,1.5849127786579058,1.5848741467166978,1.5848357256503864,1.584797513737004,1.5847595092732814,1.5847217105743934,1.5846841159737117,1.5846467238225588,1.5846095324899667,1.5845725403624409,1.5845357458437257,1.5844991473545753,1.5844627433325278,1.5844265322316826,1.5843905125224818,1.5843546826914943,1.5843190412412047,1.5842835866898035,1.584248317570983,1.584213232433734,1.5841783298421468,1.5841436083752167,1.5841090666266493,1.5840747032046718,1.5840405167318459,1.5840065058448827,1.5839726691944633,1.5839390054450586,1.5839055132747546,1.5838721913750786,1.58383903845083,1.5838060532199107,1.5837732344131614,1.5837405807741978,1.5837080910592511,1.583675764037009,1.5836435984884611,1.583611593206745,1.5835797469969959,1.5835480586761974,1.5835165270730351,1.5834851510277523,1.5834539293920085,1.5834228610287375,1.5833919448120115,1.5833611796269034,1.5833305643693534,1.5833000979460374,1.5832697792742358,1.583239607281706,1.5832095809065558,1.583179699097119,1.5831499608118313,1.5831203650191117,1.5830909106972406,1.5830615968342447,1.5830324224277788,1.5830033864850128,1.582974488022519,1.582945726066161,1.582917099650984,1.5828886078211069,1.582860249629616,1.58283202413846,1.582803930418347,1.5827759675486417,1.5827481346172656,1.5827204307205973,1.582692854963375,1.5826654064585994,1.5826380843274401,1.5826108876991398,1.5825838157109235,1.5825568675079065,1.5825300422430038,1.5825033390768426,1.5824767571776743,1.5824502957212874,1.582423953890923,1.582397730877191,1.5823716258779865,1.5823456380984084,1.5823197667506785,1.5822940110540624,1.5822683702347902,1.5822428435259794,1.5822174301675587,1.582192129406192,1.5821669404952046,1.5821418626945087,1.5821168952705325,1.582092037496147,1.5820672886505964,1.582042648019428,1.5820181148944241,1.5819936885735335,1.581969368360804,1.581945153566318,1.5819210435061255,1.581897037502181,1.581873134882279,1.5818493349799916,1.5818256371346069,1.5818020406910671,1.5817785449999089,1.5817551494172037,1.5817318533044982,1.5817086560287572,1.5816855569623054,1.5816625554827715,1.5816396509730322,1.581616842821156,1.5815941304203507,1.5815715131689072,1.5815489904701485,1.5815265617323755,1.5815042263688166,1.5814819837975753,1.5814598334415808,1.581437774728537,1.5814158070908741,1.5813939299656996,1.5813721427947498,1.581350445024343,1.5813288361053321,1.5813073154930586,1.5812858826473064,1.5812645370322573,1.5812432781164454,1.581222105372714,1.5812010182781713,1.5811800163141474,1.5811590989661521,1.581138265723833,1.5811175160809334,1.5810968495352515,1.5810762655886004,1.5810557637467673,1.5810353435194744,1.58101500442034,1.580994745966839,1.5809745676802658,1.5809544690856963,1.5809344497119497,1.5809145090915533,1.5808946467607046,1.5808748622592363,1.5808551551305807,1.5808355249217336,1.580815971183221,1.5807964934690637],"x":[-3.0,-3.19438877755511,-3.3887775551102206,-3.5831663326653307,-3.7775551102204408,-3.9719438877755513,-4.166332665330661,-4.3607214428857715,-4.5551102204408815,-4.749498997995992,-4.943887775551103,-5.138276553106213,-5.332665330661323,-5.527054108216433,-5.721442885771543,-5.915831663326653,-6.110220440881764,-6.304609218436874,-6.498997995991984,-6.693386773547094,-6.887775551102204,-7.082164328657314,-7.2765531062124245,-7.470941883767535,-7.6653306613226455,-7.859719438877756,-8.054108216432866,-8.248496993987976,-8.442885771543086,-8.637274549098196,-8.831663326653306,-9.026052104208416,-9.220440881763528,-9.414829659318638,-9.609218436873748,-9.803607214428858,-9.997995991983968,-10.192384769539078,-10.386773547094188,-10.581162324649299,-10.775551102204409,-10.969939879759519,-11.164328657314629,-11.358717434869739,-11.553106212424849,-11.74749498997996,-11.94188376753507,-12.136272545090181,-12.330661322645291,-12.525050100200401,-12.719438877755511,-12.913827655310621,-13.108216432865731,-13.302605210420841,-13.496993987975952,-13.691382765531062,-13.885771543086172,-14.080160320641282,-14.274549098196394,-14.468937875751504,-14.663326653306614,-14.857715430861724,-15.052104208416834,-15.246492985971944,-15.440881763527054,-15.635270541082164,-15.829659318637274,-16.024048096192384,-16.218436873747496,-16.412825651302605,-16.607214428857716,-16.801603206412825,-16.995991983967937,-17.190380761523045,-17.384769539078157,-17.579158316633265,-17.773547094188377,-17.96793587174349,-18.162324649298597,-18.35671342685371,-18.551102204408817,-18.74549098196393,-18.939879759519037,-19.13426853707415,-19.328657314629258,-19.52304609218437,-19.717434869739478,-19.91182364729459,-20.106212424849698,-20.30060120240481,-20.49498997995992,-20.68937875751503,-20.88376753507014,-21.07815631262525,-21.272545090180362,-21.46693386773547,-21.661322645290582,-21.85571142284569,-22.050100200400802,-22.24448897795591,-22.438877755511022,-22.63326653306613,-22.827655310621243,-23.022044088176354,-23.216432865731463,-23.410821643286575,-23.605210420841683,-23.799599198396795,-23.993987975951903,-24.188376753507015,-24.382765531062123,-24.577154308617235,-24.771543086172343,-24.965931863727455,-25.160320641282564,-25.354709418837675,-25.549098196392787,-25.743486973947896,-25.937875751503007,-26.132264529058116,-26.326653306613228,-26.521042084168336,-26.715430861723448,-26.909819639278556,-27.104208416833668,-27.298597194388776,-27.492985971943888,-27.687374749498996,-27.881763527054108,-28.07615230460922,-28.27054108216433,-28.46492985971944,-28.65931863727455,-28.85370741482966,-29.04809619238477,-29.24248496993988,-29.43687374749499,-29.6312625250501,-29.82565130260521,-30.02004008016032,-30.21442885771543,-30.40881763527054,-30.603206412825653,-30.79759519038076,-30.991983967935873,-31.18637274549098,-31.380761523046093,-31.5751503006012,-31.769539078156313,-31.96392785571142,-32.15831663326653,-32.35270541082164,-32.547094188376754,-32.741482965931866,-32.93587174348698,-33.13026052104208,-33.324649298597194,-33.519038076152306,-33.71342685370742,-33.90781563126252,-34.102204408817634,-34.296593186372746,-34.49098196392786,-34.68537074148296,-34.879759519038075,-35.07414829659319,-35.2685370741483,-35.46292585170341,-35.657314629258515,-35.85170340681363,-36.04609218436874,-36.24048096192385,-36.434869739478955,-36.62925851703407,-36.82364729458918,-37.01803607214429,-37.212424849699396,-37.40681362725451,-37.60120240480962,-37.79559118236473,-37.98997995991984,-38.18436873747495,-38.37875751503006,-38.57314629258517,-38.76753507014028,-38.96192384769539,-39.1563126252505,-39.35070140280561,-39.545090180360724,-39.73947895791583,-39.93386773547094,-40.12825651302605,-40.322645290581164,-40.517034068136276,-40.71142284569138,-40.90581162324649,-41.100200400801604,-41.294589178356716,-41.48897795591182,-41.68336673346693,-41.877755511022045,-42.07214428857716,-42.26653306613226,-42.46092184368737,-42.655310621242485,-42.8496993987976,-43.04408817635271,-43.23847695390781,-43.432865731462925,-43.62725450901804,-43.82164328657315,-44.016032064128254,-44.210420841683366,-44.40480961923848,-44.59919839679359,-44.793587174348694,-44.987975951903806,-45.18236472945892,-45.37675350701403,-45.57114228456914,-45.765531062124246,-45.95991983967936,-46.15430861723447,-46.34869739478958,-46.54308617234469,-46.7374749498998,-46.93186372745491,-47.12625250501002,-47.32064128256513,-47.51503006012024,-47.70941883767535,-47.90380761523046,-48.098196392785574,-48.29258517034068,-48.48697394789579,-48.6813627254509,-48.875751503006015,-49.07014028056112,-49.26452905811623,-49.45891783567134,-49.653306613226455,-49.84769539078156,-50.04208416833667,-50.236472945891784,-50.430861723446895,-50.62525050100201,-50.81963927855711,-51.014028056112224,-51.208416833667336,-51.40280561122245,-51.59719438877755,-51.791583166332664,-51.985971943887776,-52.18036072144289,-52.37474949899799,-52.569138276553105,-52.763527054108216,-52.95791583166333,-53.15230460921844,-53.346693386773545,-53.54108216432866,-53.73547094188377,-53.92985971943888,-54.124248496993985,-54.3186372745491,-54.51302605210421,-54.70741482965932,-54.901803607214426,-55.09619238476954,-55.29058116232465,-55.48496993987976,-55.67935871743487,-55.87374749498998,-56.06813627254509,-56.2625250501002,-56.45691382765531,-56.65130260521042,-56.84569138276553,-57.04008016032064,-57.234468937875754,-57.42885771543086,-57.62324649298597,-57.81763527054108,-58.012024048096194,-58.206412825651306,-58.40080160320641,-58.59519038076152,-58.789579158316634,-58.983967935871746,-59.17835671342685,-59.37274549098196,-59.567134268537075,-59.76152304609219,-59.95591182364729,-60.1503006012024,-60.344689378757515,-60.53907815631263,-60.73346693386774,-60.92785571142284,-61.122244488977955,-61.31663326653307,-61.51102204408818,-61.705410821643284,-61.899799599198396,-62.09418837675351,-62.28857715430862,-62.482965931863724,-62.677354709418836,-62.87174348697395,-63.06613226452906,-63.26052104208417,-63.454909819639276,-63.64929859719439,-63.8436873747495,-64.03807615230461,-64.23246492985972,-64.42685370741484,-64.62124248496994,-64.81563126252505,-65.01002004008016,-65.20440881763527,-65.39879759519039,-65.59318637274549,-65.7875751503006,-65.98196392785572,-66.17635270541082,-66.37074148296593,-66.56513026052104,-66.75951903807615,-66.95390781563127,-67.14829659318637,-67.34268537074148,-67.5370741482966,-67.7314629258517,-67.92585170340682,-68.12024048096193,-68.31462925851703,-68.50901803607215,-68.70340681362725,-68.89779559118236,-69.09218436873748,-69.28657314629258,-69.4809619238477,-69.6753507014028,-69.86973947895791,-70.06412825651303,-70.25851703406813,-70.45290581162325,-70.64729458917836,-70.84168336673346,-71.03607214428858,-71.23046092184369,-71.42484969939879,-71.61923847695391,-71.81362725450902,-72.00801603206413,-72.20240480961924,-72.39679358717434,-72.59118236472946,-72.78557114228457,-72.97995991983969,-73.17434869739479,-73.3687374749499,-73.56312625250501,-73.75751503006012,-73.95190380761522,-74.14629258517034,-74.34068136272545,-74.53507014028057,-74.72945891783567,-74.92384769539078,-75.1182364729459,-75.312625250501,-75.50701402805612,-75.70140280561122,-75.89579158316633,-76.09018036072145,-76.28456913827655,-76.47895791583166,-76.67334669338678,-76.86773547094188,-77.062124248497,-77.2565130260521,-77.45090180360721,-77.64529058116233,-77.83967935871743,-78.03406813627255,-78.22845691382766,-78.42284569138276,-78.61723446893788,-78.81162324649299,-79.00601202404809,-79.20040080160321,-79.39478957915831,-79.58917835671343,-79.78356713426854,-79.97795591182364,-80.17234468937876,-80.36673346693387,-80.56112224448898,-80.75551102204409,-80.9498997995992,-81.14428857715431,-81.33867735470942,-81.53306613226452,-81.72745490981964,-81.92184368737475,-82.11623246492987,-82.31062124248497,-82.50501002004007,-82.6993987975952,-82.8937875751503,-83.08817635270542,-83.28256513026052,-83.47695390781563,-83.67134268537075,-83.86573146292585,-84.06012024048096,-84.25450901803607,-84.44889779559118,-84.6432865731463,-84.8376753507014,-85.03206412825651,-85.22645290581163,-85.42084168336673,-85.61523046092185,-85.80961923847696,-86.00400801603206,-86.19839679358718,-86.39278557114228,-86.58717434869739,-86.78156312625251,-86.97595190380761,-87.17034068136273,-87.36472945891784,-87.55911823647294,-87.75350701402806,-87.94789579158316,-88.14228456913828,-88.33667334669339,-88.53106212424849,-88.72545090180361,-88.91983967935872,-89.11422845691382,-89.30861723446894,-89.50300601202404,-89.69739478957916,-89.89178356713427,-90.08617234468937,-90.28056112224449,-90.4749498997996,-90.66933867735472,-90.86372745490982,-91.05811623246493,-91.25250501002004,-91.44689378757515,-91.64128256513025,-91.83567134268537,-92.03006012024048,-92.2244488977956,-92.4188376753507,-92.6132264529058,-92.80761523046093,-93.00200400801603,-93.19639278557115,-93.39078156312625,-93.58517034068136,-93.77955911823648,-93.97394789579158,-94.16833667334669,-94.3627254509018,-94.55711422845691,-94.75150300601203,-94.94589178356713,-95.14028056112224,-95.33466933867736,-95.52905811623246,-95.72344689378758,-95.91783567134269,-96.11222444889779,-96.30661322645291,-96.50100200400801,-96.69539078156312,-96.88977955911824,-97.08416833667334,-97.27855711422846,-97.47294589178357,-97.66733466933867,-97.86172344689379,-98.0561122244489,-98.25050100200401,-98.44488977955912,-98.63927855711422,-98.83366733466934,-99.02805611222445,-99.22244488977955,-99.41683366733467,-99.61122244488978,-99.8056112224449,-100.0]} \ No newline at end of file diff --git a/base/special/asecf/test/fixtures/julia/large_positive.json b/base/special/asecf/test/fixtures/julia/large_positive.json new file mode 100644 index 000000000..befb88de2 --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/large_positive.json @@ -0,0 +1 @@ +{"expected":[1.2309594173407747,1.2523946931319694,1.2712448757754928,1.287957528340399,1.3028812341333107,1.3162918345320973,1.3284106564278324,1.3394174699719106,1.3494598870323495,1.3586602997241484,1.3671210840448689,1.374928557737824,1.3821560290743908,1.3888661725427396,1.3951128995619038,1.4009428457722286,1.4063965639758176,1.4115094888109705,1.416312722747989,1.4208336810069921,1.4250966241872745,1.4291231008510914,1.432932317391879,1.4365414487956663,1.439965901061183,1.4432195338540073,1.4463148502700567,1.4492631592546181,1.4520747151769,1.4547588382312995,1.4573240186760028,1.4597780073900137,1.4621278948029173,1.4643801799058993,1.466540830771005,1.4686153377753155,1.4706087605374707,1.472525769417792,1.4743706823038398,1.476147497295585,1.4778599218144688,1.4795113985852841,1.4811051288764547,1.4826440933308194,1.484131070673785,1.4855686545472775,1.4869592686852031,1.4883051806181855,1.4896085140714033,1.4908712601988117,1.4920952877793277,1.4932823524852952,1.4944341053203312,1.4955521003122039,1.496637801536432,1.4976925895376278,1.498717767208034,1.4997145651760904,1.5006841467520582,1.5016276124726413,1.5025460042820624,1.5034403093831,1.5043114637881074,1.505160355596957,1.505987828026109,1.5067946822105955,1.5075816797985468,1.508349545355973,1.5090989685978056,1.509830606459679,1.5105450850235682,1.5112430013091729,1.511924924941855,1.512591399706941,1.513242944999331,1.513880057176549,1.5145032108226626,1.5151128599298533,1.5157094390038264,1.516293364098738,1.5168650337868215,1.5174248300674806,1.517973119220207,1.518510252605339,1.5190365674163426,1.519552387387009,1.520058023456688,1.520553774396439,1.5210399273987483,1.5215167586332696,1.5219845337708438,1.5224435084778978,1.5228939288831531,1.5233360320184413,1.5237700462352852,1.524196191598787,1.5246146802602545,1.5250257168098913,1.525429498610785,1.5258262161153426,1.5262160531652367,1.5265991872758595,1.5269757899062115,1.5273460267150827,1.5277100578043383,1.528068037950056,1.5284201168222176,1.5287664391936133,1.5291071451385683,1.5294423702220679,1.5297722456798186,1.530096898589747,1.5304164520354058,1.5307310252617352,1.5310407338235874,1.531345689727407,1.5316460015664308,1.5319417746497541,1.5322331111255785,1.5325201100989532,1.5328028677442895,1.5330814774129182,1.5333560297359448,1.5336266127226381,1.5338933118545792,1.5341562101757804,1.5344153883789755,1.5346709248882706,1.5349228959383296,1.5351713756502672,1.5354164361044063,1.5356581474100481,1.5358965777724007,1.5361317935567966,1.53636385935033,1.5365928380210296,1.5368187907746873,1.5370417772094436,1.5372618553682371,1.537479081789214,1.5376935115541885,1.537905198335241,1.538114194439541,1.5383205508524673,1.5385243172791057,1.5387255421841917,1.538924272830566,1.5391205553162115,1.5393144346099228,1.5395059545856795,1.5396951580557665,1.5398820868027003,1.540066781610011,1.540249282291926,1.5404296277219993,1.5406078558607361,1.5407840037822451,1.5409581076999654,1.5411302029915013,1.5413003242226018,1.5414685051703194,1.5416347788453812,1.5417991775138016,1.541961732717768,1.5421224752958276,1.5422814354024021,1.5424386425266572,1.542594125510749,1.5427479125674743,1.542900031297348,1.5430505087051227,1.5431993712157812,1.543346644690013,1.5434923544392,1.5436365252399251,1.543779181348025,1.543920346512201,1.5440600439872054,1.5441982965466197,1.544335126495235,1.5444705556810565,1.5446046055069365,1.544737296941857,1.5448686505318692,1.5449986864107037,1.5451274243100637,1.5452548835696098,1.5453810831466508,1.5455060416255466,1.5456297772268357,1.5457523078160955,1.5458736509125461,1.5459938236974033,1.546112843021992,1.5462307254156271,1.546347487093269,1.5464631439629621,1.5465777116330632,1.5466912054192656,1.5468036403514278,1.5469150311802105,1.5470253923835318,1.5471347381728406,1.5472430824992218,1.5473504390593302,1.5474568213011661,1.5475622424296929,1.5476667154123023,1.547770252984135,1.5478728676532563,1.5479745717056963,1.548075377210354,1.548175296023775,1.5482743397948002,1.5483725199690959,1.548469847793564,1.5485663343206382,1.5486619904124697,1.548756826745005,1.548850853811959,1.5489440819286866,1.5490365212359578,1.5491281817036344,1.5492190731342563,1.5493092051665376,1.5493985872787746,1.549487228792169,1.5495751388740713,1.54966232654114,1.5497488006624265,1.5498345699623837,1.5499196430238007,1.550004028290667,1.5500877340709671,1.5501707685394075,1.5502531397400796,1.5503348555890581,1.5504159238769368,1.5504963522713064,1.5505761483191722,1.5506553194493151,1.5507338729745985,1.5508118160942201,1.5508891558959121,1.55096589935809,1.5510420533519524,1.551117624643533,1.5511926198957033,1.5512670456701338,1.5513409084292062,1.551414214537885,1.5514869702655474,1.5515591817877692,1.5516308551880746,1.551701996459644,1.5517726115069848,1.551842706147566,1.551912286113416,1.5519813570526855,1.5520499245311763,1.5521179940338363,1.5521855709662233,1.5522526606559357,1.552319268354013,1.552385399236306,1.5524510584048186,1.5525162508890191,1.5525809816471259,1.5526452555673642,1.5527090774691963,1.552772452104528,1.5528353841588867,1.552897878252577,1.552959938941813,1.553021570719823,1.553082778017937,1.5531435652066474,1.5532039365966503,1.5532638964398637,1.5533234489304273,1.5533825982056797,1.5534413483471172,1.5534997033813327,1.5535576672809357,1.553615243965454,1.553672437302218,1.5537292511072258,1.5537856891459927,1.5538417551343835,1.5538974527394276,1.5539527855801187,1.5540077572281996,1.55406237120893,1.5541166310018408,1.5541705400414731,1.5542241017181024,1.5542773193784507,1.554330196326383,1.5543827358235902,1.5544349410902623,1.5544868153057438,1.5545383616091815,1.5545895831001562,1.554640482839305,1.5546910638489304,1.5547413291135996,1.5547912815807305,1.5548409241611691,1.5548902597297538,1.5549392911258713,1.554988021154001,1.5550364525842506,1.5550845881528796,1.5551324305628162,1.5551799824841628,1.5552272465546924,1.5552742253803369,1.555320921535666,1.5553673375643582,1.5554134759796612,1.5554593392648475,1.5555049298736583,1.5555502502307426,1.5555953027320861,1.5556400897454346,1.555684613610707,1.5557288766404047,1.555772881120012,1.5558166293083877,1.555860123438154,1.5559033657160741,1.555946358323428,1.5559891034163773,1.556031603126326,1.5560738595602759,1.5561158748011739,1.5561576509082546,1.556199189917377,1.556240493841355,1.5562815646702821,1.5563224043718524,1.5563630148916732,1.5564033981535759,1.556443556059918,1.556483490491883,1.556523203309774,1.5565626963533024,1.5566019714418724,1.55664103037486,1.5566798749318875,1.5567185068730955,1.556756927939407,1.556795139852789,1.556833144316512,1.5568709430154,1.5569085376160816,1.5569459297672346,1.5569831210998264,1.5570201132273522,1.5570569077460674,1.557093506235218,1.5571299102572655,1.5571661213581107,1.5572021410673116,1.557237970898299,1.5572736123485886,1.5573090668999896,1.5573443360188102,1.5573794211560594,1.5574143237476465,1.5574490452145766,1.557483586963144,1.5575179503851213,1.5575521368579475,1.5575861477449104,1.55761998439533,1.5576536481447345,1.5576871403150387,1.5577204622147145,1.5577536151389633,1.5577866003698826,1.557819419176632,1.5578520728155953,1.5578845625305422,1.5579168895527842,1.5579490551013322,1.5579810603830482,1.5580129065927972,1.558044594913596,1.5580761265167582,1.5581075025620408,1.5581387241977847,1.5581697925610556,1.5582007087777818,1.55823147396289,1.5582620892204397,1.558292555643756,1.5583228743155575,1.5583530463080872,1.5583830726832373,1.5584129544926744,1.558442692777962,1.5584722885706817,1.5585017428925525,1.5585310567555486,1.5585602311620146,1.5585892671047805,1.5586181655672742,1.558646927523632,1.558675553938809,1.5587040457686863,1.5587324039601773,1.5587606294513332,1.5587887231714463,1.5588166860411514,1.5588445189725275,1.5588722228691958,1.5588997986264184,1.5589272471311937,1.5589545692623532,1.5589817658906535,1.5590088378788698,1.5590357860818869,1.5590626113467896,1.5590893145129505,1.559115896412119,1.559142357868506,1.5591686996988703,1.5591949227126023,1.5592210277118066,1.559247015491385,1.5592728868391146,1.559298642535731,1.5593242833550032,1.559349810063814,1.5593752234222347,1.5594005241836013,1.5594257130945888,1.5594507908952844,1.5594757583192607,1.5595006160936462,1.559525364939197,1.559550005570365,1.559574538695369,1.5595989650162598,1.5596232852289893,1.5596475000234753,1.5596716100836676,1.5596956160876123,1.5597195187075144,1.5597433186098018,1.5597670164551865,1.5597906128987262,1.5598141085898842,1.5598375041725896,1.559860800285295,1.5598839975610361,1.559907096627488,1.5599300981070217,1.5599530026167612,1.5599758107686372,1.5599985231694427,1.560021140420886,1.5600436631196448,1.5600660918574176,1.5600884272209767,1.560110669792218,1.5601328201482125,1.5601548788612563,1.560176846498919,1.5601987236240935,1.5602205107950433,1.5602422085654502,1.5602638174844612,1.5602853380967348,1.560306770942487,1.560328116557536,1.5603493754733477,1.560370548217079,1.560391635311622,1.560412637275646,1.560433554623641,1.5604543878659602,1.56047513750886,1.5604958040545416,1.5605163880011927,1.560536889843026,1.5605573100703187,1.5605776491694534,1.5605979076229544,1.5606180859095273,1.560638184504097,1.5606582038778436,1.56067814449824,1.5606980068290885,1.5607177913305568,1.5607374984592126,1.5607571286680595,1.5607766824065723,1.5607961601207294],"x":[3.0,3.19438877755511,3.3887775551102206,3.5831663326653307,3.7775551102204408,3.9719438877755513,4.166332665330661,4.3607214428857715,4.5551102204408815,4.749498997995992,4.943887775551103,5.138276553106213,5.332665330661323,5.527054108216433,5.721442885771543,5.915831663326653,6.110220440881764,6.304609218436874,6.498997995991984,6.693386773547094,6.887775551102204,7.082164328657314,7.2765531062124245,7.470941883767535,7.6653306613226455,7.859719438877756,8.054108216432866,8.248496993987976,8.442885771543086,8.637274549098196,8.831663326653306,9.026052104208416,9.220440881763528,9.414829659318638,9.609218436873748,9.803607214428858,9.997995991983968,10.192384769539078,10.386773547094188,10.581162324649299,10.775551102204409,10.969939879759519,11.164328657314629,11.358717434869739,11.553106212424849,11.74749498997996,11.94188376753507,12.136272545090181,12.330661322645291,12.525050100200401,12.719438877755511,12.913827655310621,13.108216432865731,13.302605210420841,13.496993987975952,13.691382765531062,13.885771543086172,14.080160320641282,14.274549098196394,14.468937875751504,14.663326653306614,14.857715430861724,15.052104208416834,15.246492985971944,15.440881763527054,15.635270541082164,15.829659318637274,16.024048096192384,16.218436873747496,16.412825651302605,16.607214428857716,16.801603206412825,16.995991983967937,17.190380761523045,17.384769539078157,17.579158316633265,17.773547094188377,17.96793587174349,18.162324649298597,18.35671342685371,18.551102204408817,18.74549098196393,18.939879759519037,19.13426853707415,19.328657314629258,19.52304609218437,19.717434869739478,19.91182364729459,20.106212424849698,20.30060120240481,20.49498997995992,20.68937875751503,20.88376753507014,21.07815631262525,21.272545090180362,21.46693386773547,21.661322645290582,21.85571142284569,22.050100200400802,22.24448897795591,22.438877755511022,22.63326653306613,22.827655310621243,23.022044088176354,23.216432865731463,23.410821643286575,23.605210420841683,23.799599198396795,23.993987975951903,24.188376753507015,24.382765531062123,24.577154308617235,24.771543086172343,24.965931863727455,25.160320641282564,25.354709418837675,25.549098196392787,25.743486973947896,25.937875751503007,26.132264529058116,26.326653306613228,26.521042084168336,26.715430861723448,26.909819639278556,27.104208416833668,27.298597194388776,27.492985971943888,27.687374749498996,27.881763527054108,28.07615230460922,28.27054108216433,28.46492985971944,28.65931863727455,28.85370741482966,29.04809619238477,29.24248496993988,29.43687374749499,29.6312625250501,29.82565130260521,30.02004008016032,30.21442885771543,30.40881763527054,30.603206412825653,30.79759519038076,30.991983967935873,31.18637274549098,31.380761523046093,31.5751503006012,31.769539078156313,31.96392785571142,32.15831663326653,32.35270541082164,32.547094188376754,32.741482965931866,32.93587174348698,33.13026052104208,33.324649298597194,33.519038076152306,33.71342685370742,33.90781563126252,34.102204408817634,34.296593186372746,34.49098196392786,34.68537074148296,34.879759519038075,35.07414829659319,35.2685370741483,35.46292585170341,35.657314629258515,35.85170340681363,36.04609218436874,36.24048096192385,36.434869739478955,36.62925851703407,36.82364729458918,37.01803607214429,37.212424849699396,37.40681362725451,37.60120240480962,37.79559118236473,37.98997995991984,38.18436873747495,38.37875751503006,38.57314629258517,38.76753507014028,38.96192384769539,39.1563126252505,39.35070140280561,39.545090180360724,39.73947895791583,39.93386773547094,40.12825651302605,40.322645290581164,40.517034068136276,40.71142284569138,40.90581162324649,41.100200400801604,41.294589178356716,41.48897795591182,41.68336673346693,41.877755511022045,42.07214428857716,42.26653306613226,42.46092184368737,42.655310621242485,42.8496993987976,43.04408817635271,43.23847695390781,43.432865731462925,43.62725450901804,43.82164328657315,44.016032064128254,44.210420841683366,44.40480961923848,44.59919839679359,44.793587174348694,44.987975951903806,45.18236472945892,45.37675350701403,45.57114228456914,45.765531062124246,45.95991983967936,46.15430861723447,46.34869739478958,46.54308617234469,46.7374749498998,46.93186372745491,47.12625250501002,47.32064128256513,47.51503006012024,47.70941883767535,47.90380761523046,48.098196392785574,48.29258517034068,48.48697394789579,48.6813627254509,48.875751503006015,49.07014028056112,49.26452905811623,49.45891783567134,49.653306613226455,49.84769539078156,50.04208416833667,50.236472945891784,50.430861723446895,50.62525050100201,50.81963927855711,51.014028056112224,51.208416833667336,51.40280561122245,51.59719438877755,51.791583166332664,51.985971943887776,52.18036072144289,52.37474949899799,52.569138276553105,52.763527054108216,52.95791583166333,53.15230460921844,53.346693386773545,53.54108216432866,53.73547094188377,53.92985971943888,54.124248496993985,54.3186372745491,54.51302605210421,54.70741482965932,54.901803607214426,55.09619238476954,55.29058116232465,55.48496993987976,55.67935871743487,55.87374749498998,56.06813627254509,56.2625250501002,56.45691382765531,56.65130260521042,56.84569138276553,57.04008016032064,57.234468937875754,57.42885771543086,57.62324649298597,57.81763527054108,58.012024048096194,58.206412825651306,58.40080160320641,58.59519038076152,58.789579158316634,58.983967935871746,59.17835671342685,59.37274549098196,59.567134268537075,59.76152304609219,59.95591182364729,60.1503006012024,60.344689378757515,60.53907815631263,60.73346693386774,60.92785571142284,61.122244488977955,61.31663326653307,61.51102204408818,61.705410821643284,61.899799599198396,62.09418837675351,62.28857715430862,62.482965931863724,62.677354709418836,62.87174348697395,63.06613226452906,63.26052104208417,63.454909819639276,63.64929859719439,63.8436873747495,64.03807615230461,64.23246492985972,64.42685370741484,64.62124248496994,64.81563126252505,65.01002004008016,65.20440881763527,65.39879759519039,65.59318637274549,65.7875751503006,65.98196392785572,66.17635270541082,66.37074148296593,66.56513026052104,66.75951903807615,66.95390781563127,67.14829659318637,67.34268537074148,67.5370741482966,67.7314629258517,67.92585170340682,68.12024048096193,68.31462925851703,68.50901803607215,68.70340681362725,68.89779559118236,69.09218436873748,69.28657314629258,69.4809619238477,69.6753507014028,69.86973947895791,70.06412825651303,70.25851703406813,70.45290581162325,70.64729458917836,70.84168336673346,71.03607214428858,71.23046092184369,71.42484969939879,71.61923847695391,71.81362725450902,72.00801603206413,72.20240480961924,72.39679358717434,72.59118236472946,72.78557114228457,72.97995991983969,73.17434869739479,73.3687374749499,73.56312625250501,73.75751503006012,73.95190380761522,74.14629258517034,74.34068136272545,74.53507014028057,74.72945891783567,74.92384769539078,75.1182364729459,75.312625250501,75.50701402805612,75.70140280561122,75.89579158316633,76.09018036072145,76.28456913827655,76.47895791583166,76.67334669338678,76.86773547094188,77.062124248497,77.2565130260521,77.45090180360721,77.64529058116233,77.83967935871743,78.03406813627255,78.22845691382766,78.42284569138276,78.61723446893788,78.81162324649299,79.00601202404809,79.20040080160321,79.39478957915831,79.58917835671343,79.78356713426854,79.97795591182364,80.17234468937876,80.36673346693387,80.56112224448898,80.75551102204409,80.9498997995992,81.14428857715431,81.33867735470942,81.53306613226452,81.72745490981964,81.92184368737475,82.11623246492987,82.31062124248497,82.50501002004007,82.6993987975952,82.8937875751503,83.08817635270542,83.28256513026052,83.47695390781563,83.67134268537075,83.86573146292585,84.06012024048096,84.25450901803607,84.44889779559118,84.6432865731463,84.8376753507014,85.03206412825651,85.22645290581163,85.42084168336673,85.61523046092185,85.80961923847696,86.00400801603206,86.19839679358718,86.39278557114228,86.58717434869739,86.78156312625251,86.97595190380761,87.17034068136273,87.36472945891784,87.55911823647294,87.75350701402806,87.94789579158316,88.14228456913828,88.33667334669339,88.53106212424849,88.72545090180361,88.91983967935872,89.11422845691382,89.30861723446894,89.50300601202404,89.69739478957916,89.89178356713427,90.08617234468937,90.28056112224449,90.4749498997996,90.66933867735472,90.86372745490982,91.05811623246493,91.25250501002004,91.44689378757515,91.64128256513025,91.83567134268537,92.03006012024048,92.2244488977956,92.4188376753507,92.6132264529058,92.80761523046093,93.00200400801603,93.19639278557115,93.39078156312625,93.58517034068136,93.77955911823648,93.97394789579158,94.16833667334669,94.3627254509018,94.55711422845691,94.75150300601203,94.94589178356713,95.14028056112224,95.33466933867736,95.52905811623246,95.72344689378758,95.91783567134269,96.11222444889779,96.30661322645291,96.50100200400801,96.69539078156312,96.88977955911824,97.08416833667334,97.27855711422846,97.47294589178357,97.66733466933867,97.86172344689379,98.0561122244489,98.25050100200401,98.44488977955912,98.63927855711422,98.83366733466934,99.02805611222445,99.22244488977955,99.41683366733467,99.61122244488978,99.8056112224449,100.0]} \ No newline at end of file diff --git a/base/special/asecf/test/fixtures/julia/larger_negative.json b/base/special/asecf/test/fixtures/julia/larger_negative.json new file mode 100644 index 000000000..0979aacdb --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/larger_negative.json @@ -0,0 +1 @@ +{"expected":[1.5807964934690637,1.580619319411835,1.5804483141829517,1.5802831611120203,1.5801235648389091,1.5799692495507962,1.5798199573913845,1.5796754470229841,1.579535492324592,1.5793998812111958,1.5792684145613347,1.5791409052415104,1.5790171772173962,1.5788970647429659,1.5787804116196864,1.5786670705188142,1.5785569023606074,1.5784497757449603,1.5783455664285517,1.5782441568441383,1.5781454356580802,1.5780492973625966,1.5779556418996157,1.5778643743133949,1.577775404429379,1.5776886465570126,1.5776040192144474,1.5775214448732848,1.5774408497216748,1.5773621634442463,1.5772853190174936,1.5772102525193648,1.5771369029519153,1.5770652120759945,1.5769951242570206,1.576926586320988,1.5768595474199234,1.5767939589060729,1.5767297742141704,1.5766669487511829,1.57660543979299,1.5765452063874892,1.576486209263668,1.576428410746219,1.5763717746753065,1.5763162663311254,1.576261852362923,1.5762085007221773,1.576156180599652,1.576104862366068,1.5760545175161484,1.5760051186158213,1.5759566392523678,1.5759090539873308,1.5758623383120036,1.5758164686053378,1.5757714220941168,1.5757271768152559,1.5756837115800937,1.5756410059405588,1.5755990401570923,1.575557795168225,1.575517252561708,1.5754773945471061,1.5754382039297674,1.5753996640860906,1.5753617589400133,1.575324472940653,1.5752877910410352,1.575251698677846,1.5752161817521537,1.5751812266110468,1.575146820030133,1.5751129491968596,1.5750796016946034,1.5750467654874964,1.5750144289059402,1.5749825806327793,1.5749512096900955,1.5749203054265901,1.5748898575055286,1.574859855893211,1.574830290847949,1.57480115290952,1.574772432889073,1.5747441218594693,1.574716211146029,1.5746886923176704,1.5746615571784184,1.5746347977592665,1.5746084063103734,1.5745823752935808,1.574556697375234,1.5745313654192947,1.5745063724807282,1.5744817117991556,1.5744573767927577,1.5744333610524175,1.574409658336094,1.5743862625634115,1.5743631678104606,1.5743403683047972,1.574317858420632,1.5742956326742028,1.5742736857193207,1.574252012343082,1.5742306074617418,1.574209466116737,1.5741885834708573,1.5741679548045557,1.5741475755123921,1.5741274410996053,1.5741075471788084,1.5740878894668018,1.5740684637814977,1.5740492660389556,1.5740302922505178,1.574011538520049,1.573993001041267,1.5739746760951685,1.5739565600475416,1.5739386493465621,1.5739209405204735,1.5739034301753418,1.5738861149928884,1.573868991728393,1.5738520572086665,1.5738353083300916,1.5738187420567247,1.5738023554184635,1.57378614550927,1.5737701094854537,1.5737542445640074,1.5737385480209978,1.5737230171900063,1.5737076494606184,1.5736924422769618,1.573677393136289,1.573662499587604,1.5736477592303315,1.5736331697130272,1.573618728732127,1.5736044340307354,1.573590283397448,1.5735762746652127,1.5735624057102222,1.5735486744508413,1.573535078846565,1.5735216168970076,1.5735082866409216,1.5734950861552452,1.5734820135541778,1.5734690669882814,1.5734562446436078,1.5734435447408528,1.5734309655345324,1.5734185053121825,1.5734061623935824,1.5733939351299995,1.5733818219034548,1.573369821126009,1.5733579312390695,1.5733461507127147,1.5733344780450373,1.573322911761508,1.5733114504143522,1.5733000925819471,1.573288836868234,1.5732776819021457,1.5732666263370498,1.5732556688502075,1.573244808142245,1.5732340429366403,1.5732233719792235,1.573212794037689,1.573202307901121,1.5731919123795328,1.5731816063034143,1.5731713885232959,1.5731612579093188,1.5731512133508205,1.5731412537559275,1.5731313780511604,1.5731215851810476,1.57311187410775,1.5731022438106939,1.5730926932862126,1.5730832215472,1.5730738276227678,1.573064510557916,1.5730552694132078,1.573046103264454,1.5730370112024061,1.5730279923324537,1.573019045774333,1.573010170661839,1.5730013661425462,1.5729926313775364,1.5729839655411315,1.572975367820634,1.5729668374160712,1.57295837353995,1.5729499754170115,1.5729416422839968,1.5729333733894135,1.5729251679933123,1.5729170253670635,1.5729089447931435,1.5729009255649231,1.572892966986462,1.5728850683723063,1.572877229047293,1.5728694483463574,1.5728617256143442,1.5728540602058245,1.5728464514849156,1.5728388988251047,1.5728314016090783,1.5728239592285524,1.5728165710841093,1.5728092365850352,1.5728019551491643,1.5727947262027242,1.5727875491801848,1.5727804235241107,1.5727733486850182,1.5727663241212322,1.5727593492987493,1.5727524236911021,1.5727455467792264,1.5727387180513321,1.572731937002776,1.5727252031359367,1.572718515960094,1.5727118749913098,1.5727052797523102,1.5726987297723716,1.5726922245872095,1.5726857637388678,1.5726793467756117,1.5726729732518228,1.5726666427278948,1.5726603547701339,1.572654108950659,1.572647904847304,1.5726417420435246,1.5726356201283023,1.5726295386960556,1.5726234973465494,1.5726174956848067,1.572611533321023,1.5726056098704826,1.5725997249534744,1.5725938781952118,1.5725880692257528,1.5725822976799222,1.5725765631972346,1.57257086542182,1.5725652040023497,1.5725595785919637,1.5725539888482012,1.57254843443293,1.572542915012278,1.5725374302565678,1.5725319798402495,1.5725265634418373,1.5725211807438457,1.5725158314327279,1.5725105151988146,1.572505231736254,1.5724999807429543,1.5724947619205245,1.5724895749742192,1.5724844196128824,1.5724792955488933,1.5724742024981126,1.5724691401798303,1.572464108316714,1.5724591066347577,1.5724541348632333,1.57244919273464,1.5724442799846585,1.572439396352102,1.5724345415788705,1.5724297154099056,1.5724249175931462,1.5724201478794835,1.5724154060227182,1.5724106917795193,1.572406004909381,1.5724013451745826,1.5723967123401479,1.572392106173806,1.5723875264459524,1.5723829729296108,1.572378445400396,1.5723739436364759,1.5723694674185364,1.5723650165297458,1.5723605907557192,1.5723561898844838,1.572351813706446,1.572347462014358,1.5723431346032841,1.5723388312705695,1.5723345518158083,1.5723302960408123,1.5723260637495808,1.57232185474827,1.5723176688451643,1.5723135058506454,1.5723093655771658,1.5723052478392192,1.5723011524533133,1.5722970792379427,1.5722930280135616,1.5722889986025579,1.5722849908292267,1.5722810045197453,1.5722770395021484,1.5722730956063016,1.5722691726638796,1.57226527050834,1.5722613889749013,1.5722575279005186,1.5722536871238617,1.572249866485292,1.5722460658268402,1.5722422849921858,1.5722385238266339,1.5722347821770952,1.5722310598920652,1.5722273568216034,1.5722236728173133,1.5722200077323227,1.5722163614212639,1.572212733740255,1.5722091245468799,1.5722055337001712,1.5722019610605906,1.5721984064900114,1.5721948698517005,1.5721913510103007,1.5721878498318143,1.5721843661835848,1.572180899934281,1.5721774509538802,1.5721740191136524,1.5721706042861436,1.5721672063451604,1.5721638251657544,1.5721604606242068,1.5721571125980134,1.5721537809658699,1.5721504656076566,1.5721471664044253,1.5721438832383832,1.5721406159928806,1.572137364552396,1.5721341288025228,1.5721309086299566,1.5721277039224804,1.5721245145689529,1.5721213404592953,1.5721181814844785,1.5721150375365105,1.5721119085084245,1.5721087942942666,1.5721056947890837,1.5721026098889113,1.572099539490763,1.5720964834926183,1.5720934417934112,1.5720904142930194,1.572087400892253,1.5720844014928441,1.572081415997436,1.5720784443095717,1.5720754863336852,1.57207254197509,1.57206961113997,1.5720666937353678,1.572063789669177,1.5720608988501308,1.5720580211877937,1.5720551565925511,1.572052304975601,1.5720494662489435,1.572046640325373,1.5720438271184685,1.572041026542585,1.572038238512845,1.57203546294513,1.5720326997560712,1.5720299488630425,1.5720272101841508,1.5720244836382293,1.5720217691448282,1.5720190666242078,1.57201637599733,1.5720136971858512,1.5720110301121137,1.5720083746991396,1.5720057308706223,1.5720030985509195,1.5720004776650462,1.571997868138667,1.5719952698980901,1.5719926828702593,1.5719901069827478,1.5719875421637508,1.57198498834208,1.5719824454471556,1.5719799134090007,1.571977392158235,1.5719748816260677,1.5719723817442917,1.5719698924452772,1.5719674136619666,1.5719649453278666,1.5719624873770441,1.5719600397441191,1.5719576023642599,1.5719551751731757,1.5719527581071135,1.57195035110285,1.5719479540976877,1.571945567029449,1.5719431898364702,1.5719408224575975,1.5719384648321801,1.571936116900067,1.5719337786015999,1.5719314498776096,1.57192913066941,1.5719268209187942,1.5719245205680288,1.571922229559849,1.5719199478374546,1.5719176753445048,1.571915412025114,1.5719131578238463,1.571910912685712,1.5719086765561627,1.5719064493810864,1.571904231106804,1.5719020216800648,1.5718998210480413,1.5718976291583266,1.5718954459589287,1.5718932713982676,1.57189110542517,1.5718889479888667,1.5718867990389875,1.5718846585255577,1.5718825263989944,1.5718804026101023,1.5718782871100703,1.5718761798504672,1.571874080783239,1.571871989860704,1.5718699070355502,1.571867832260831,1.5718657654899624,1.5718637066767187,1.5718616557752296,1.5718596127399773,1.5718575775257915,1.5718555500878475,1.571853530381663,1.5718515183630932,1.57184951398833,1.5718475172138966,1.5718455279966457,1.5718435462937557,1.5718415720627281,1.5718396052613843,1.571837645847863,1.5718356937806155,1.5718337490184053,1.5718318115203038,1.5718298812456868,1.5718279581542334,1.5718260422059218,1.5718241333610268,1.5718222315801174,1.5718203368240538,1.5718184490539853,1.5718165682313463,1.5718146943178555,1.5718128272755116,1.5718109670665918,1.5718091136536487,1.5718072669995085,1.5718054270672672,1.57180359382029,1.5718017672222069,1.5717999472369117,1.5717981338285596,1.5717963269615634],"x":[-100.0,-101.80360721442885,-103.60721442885772,-105.41082164328657,-107.21442885771543,-109.01803607214428,-110.82164328657315,-112.625250501002,-114.42885771543087,-116.23246492985972,-118.03607214428858,-119.83967935871743,-121.6432865731463,-123.44689378757515,-125.25050100200401,-127.05410821643287,-128.85771543086173,-130.66132264529057,-132.46492985971943,-134.2685370741483,-136.07214428857716,-137.875751503006,-139.67935871743487,-141.48296593186373,-143.2865731462926,-145.09018036072143,-146.8937875751503,-148.69739478957916,-150.50100200400803,-152.30460921843687,-154.10821643286573,-155.9118236472946,-157.71543086172343,-159.5190380761523,-161.32264529058116,-163.12625250501003,-164.92985971943887,-166.73346693386773,-168.5370741482966,-170.34068136272546,-172.1442885771543,-173.94789579158316,-175.75150300601203,-177.5551102204409,-179.35871743486973,-181.1623246492986,-182.96593186372746,-184.7695390781563,-186.57314629258516,-188.37675350701403,-190.1803607214429,-191.98396793587173,-193.7875751503006,-195.59118236472946,-197.39478957915833,-199.19839679358716,-201.00200400801603,-202.8056112224449,-204.60921843687376,-206.4128256513026,-208.21643286573146,-210.02004008016033,-211.82364729458916,-213.62725450901803,-215.4308617234469,-217.23446893787576,-219.0380761523046,-220.84168336673346,-222.64529058116233,-224.4488977955912,-226.25250501002003,-228.0561122244489,-229.85971943887776,-231.66332665330663,-233.46693386773546,-235.27054108216433,-237.0741482965932,-238.87775551102203,-240.6813627254509,-242.48496993987976,-244.28857715430863,-246.09218436873746,-247.89579158316633,-249.6993987975952,-251.50300601202406,-253.3066132264529,-255.11022044088176,-256.9138276553106,-258.71743486973946,-260.52104208416836,-262.3246492985972,-264.12825651302603,-265.9318637274549,-267.73547094188376,-269.5390781563126,-271.3426853707415,-273.14629258517033,-274.9498997995992,-276.75350701402806,-278.5571142284569,-280.3607214428858,-282.1643286573146,-283.96793587174346,-285.77154308617236,-287.5751503006012,-289.3787575150301,-291.1823647294589,-292.98597194388776,-294.78957915831666,-296.5931863727455,-298.39679358717433,-300.2004008016032,-302.00400801603206,-303.8076152304609,-305.6112224448898,-307.4148296593186,-309.2184368737475,-311.02204408817636,-312.8256513026052,-314.6292585170341,-316.4328657314629,-318.23647294589176,-320.04008016032066,-321.8436873747495,-323.64729458917833,-325.4509018036072,-327.25450901803606,-329.05811623246495,-330.8617234468938,-332.6653306613226,-334.4689378757515,-336.27254509018036,-338.0761523046092,-339.8797595190381,-341.6833667334669,-343.4869739478958,-345.29058116232466,-347.0941883767535,-348.8977955911824,-350.7014028056112,-352.50501002004006,-354.30861723446895,-356.1122244488978,-357.9158316633266,-359.7194388777555,-361.52304609218436,-363.32665330661325,-365.1302605210421,-366.9338677354709,-368.7374749498998,-370.54108216432866,-372.3446893787575,-374.1482965931864,-375.9519038076152,-377.75551102204406,-379.55911823647295,-381.3627254509018,-383.1663326653307,-384.9699398797595,-386.77354709418836,-388.57715430861725,-390.3807615230461,-392.1843687374749,-393.9879759519038,-395.79158316633266,-397.59519038076155,-399.3987975951904,-401.2024048096192,-403.0060120240481,-404.80961923847696,-406.6132264529058,-408.4168336673347,-410.2204408817635,-412.02404809619236,-413.82765531062125,-415.6312625250501,-417.434869739479,-419.2384769539078,-421.04208416833666,-422.84569138276555,-424.6492985971944,-426.4529058116232,-428.2565130260521,-430.06012024048096,-431.8637274549098,-433.6673346693387,-435.4709418837675,-437.2745490981964,-439.07815631262525,-440.8817635270541,-442.685370741483,-444.4889779559118,-446.29258517034066,-448.09619238476955,-449.8997995991984,-451.7034068136273,-453.5070140280561,-455.31062124248496,-457.11422845691385,-458.9178356713427,-460.7214428857715,-462.5250501002004,-464.32865731462925,-466.1322645290581,-467.935871743487,-469.7394789579158,-471.5430861723447,-473.34669338677355,-475.1503006012024,-476.9539078156313,-478.7575150300601,-480.56112224448896,-482.36472945891785,-484.1683366733467,-485.9719438877755,-487.7755511022044,-489.57915831663325,-491.38276553106215,-493.186372745491,-494.9899799599198,-496.7935871743487,-498.59719438877755,-500.4008016032064,-502.2044088176353,-504.0080160320641,-505.811623246493,-507.61523046092185,-509.4188376753507,-511.2224448897796,-513.0260521042084,-514.8296593186373,-516.6332665330661,-518.436873747495,-520.2404809619238,-522.0440881763527,-523.8476953907816,-525.6513026052104,-527.4549098196393,-529.2585170340682,-531.062124248497,-532.8657314629259,-534.6693386773547,-536.4729458917835,-538.2765531062124,-540.0801603206413,-541.8837675350701,-543.687374749499,-545.4909819639279,-547.2945891783567,-549.0981963927856,-550.9018036072144,-552.7054108216433,-554.5090180360721,-556.312625250501,-558.1162324649299,-559.9198396793587,-561.7234468937876,-563.5270541082165,-565.3306613226453,-567.1342685370741,-568.937875751503,-570.7414829659318,-572.5450901803607,-574.3486973947896,-576.1523046092184,-577.9559118236473,-579.7595190380762,-581.563126252505,-583.3667334669339,-585.1703406813627,-586.9739478957916,-588.7775551102204,-590.5811623246493,-592.3847695390782,-594.188376753507,-595.9919839679359,-597.7955911823648,-599.5991983967936,-601.4028056112224,-603.2064128256513,-605.0100200400801,-606.813627254509,-608.6172344689379,-610.4208416833667,-612.2244488977956,-614.0280561122245,-615.8316633266533,-617.6352705410821,-619.438877755511,-621.2424849699398,-623.0460921843687,-624.8496993987976,-626.6533066132265,-628.4569138276553,-630.2605210420842,-632.0641282565131,-633.8677354709419,-635.6713426853707,-637.4749498997996,-639.2785571142284,-641.0821643286573,-642.8857715430862,-644.689378757515,-646.4929859719439,-648.2965931863728,-650.1002004008016,-651.9038076152304,-653.7074148296593,-655.5110220440881,-657.314629258517,-659.1182364729459,-660.9218436873748,-662.7254509018036,-664.5290581162325,-666.3326653306614,-668.1362725450902,-669.939879759519,-671.7434869739479,-673.5470941883767,-675.3507014028056,-677.1543086172345,-678.9579158316633,-680.7615230460922,-682.5651302605211,-684.3687374749499,-686.1723446893787,-687.9759519038076,-689.7795591182364,-691.5831663326653,-693.3867735470942,-695.1903807615231,-696.9939879759519,-698.7975951903808,-700.6012024048097,-702.4048096192384,-704.2084168336673,-706.0120240480962,-707.815631262525,-709.6192384769539,-711.4228456913828,-713.2264529058116,-715.0300601202405,-716.8336673346694,-718.6372745490982,-720.440881763527,-722.2444889779559,-724.0480961923847,-725.8517034068136,-727.6553106212425,-729.4589178356713,-731.2625250501002,-733.0661322645291,-734.869739478958,-736.6733466933867,-738.4769539078156,-740.2805611222445,-742.0841683366733,-743.8877755511022,-745.6913827655311,-747.4949899799599,-749.2985971943888,-751.1022044088177,-752.9058116232464,-754.7094188376753,-756.5130260521042,-758.316633266533,-760.1202404809619,-761.9238476953908,-763.7274549098196,-765.5310621242485,-767.3346693386774,-769.1382765531063,-770.941883767535,-772.7454909819639,-774.5490981963928,-776.3527054108216,-778.1563126252505,-779.9599198396794,-781.7635270541082,-783.5671342685371,-785.370741482966,-787.1743486973947,-788.9779559118236,-790.7815631262525,-792.5851703406813,-794.3887775551102,-796.1923847695391,-797.9959919839679,-799.7995991983968,-801.6032064128257,-803.4068136272546,-805.2104208416833,-807.0140280561122,-808.8176352705411,-810.6212424849699,-812.4248496993988,-814.2284569138277,-816.0320641282565,-817.8356713426854,-819.6392785571143,-821.442885771543,-823.2464929859719,-825.0501002004008,-826.8537074148296,-828.6573146292585,-830.4609218436874,-832.2645290581162,-834.0681362725451,-835.871743486974,-837.6753507014027,-839.4789579158316,-841.2825651302605,-843.0861723446894,-844.8897795591182,-846.6933867735471,-848.496993987976,-850.3006012024048,-852.1042084168337,-853.9078156312626,-855.7114228456913,-857.5150300601202,-859.3186372745491,-861.1222444889779,-862.9258517034068,-864.7294589178357,-866.5330661322645,-868.3366733466934,-870.1402805611223,-871.943887775551,-873.7474949899799,-875.5511022044088,-877.3547094188377,-879.1583166332665,-880.9619238476954,-882.7655310621243,-884.5691382765531,-886.372745490982,-888.1763527054109,-889.9799599198396,-891.7835671342685,-893.5871743486974,-895.3907815631262,-897.1943887775551,-898.997995991984,-900.8016032064128,-902.6052104208417,-904.4088176352706,-906.2124248496993,-908.0160320641282,-909.8196392785571,-911.623246492986,-913.4268537074148,-915.2304609218437,-917.0340681362726,-918.8376753507014,-920.6412825651303,-922.4448897795592,-924.2484969939879,-926.0521042084168,-927.8557114228457,-929.6593186372745,-931.4629258517034,-933.2665330661323,-935.0701402805611,-936.87374749499,-938.6773547094189,-940.4809619238476,-942.2845691382765,-944.0881763527054,-945.8917835671342,-947.6953907815631,-949.498997995992,-951.3026052104209,-953.1062124248497,-954.9098196392786,-956.7134268537075,-958.5170340681362,-960.3206412825651,-962.124248496994,-963.9278557114228,-965.7314629258517,-967.5350701402806,-969.3386773547094,-971.1422845691383,-972.9458917835672,-974.7494989979959,-976.5531062124248,-978.3567134268537,-980.1603206412825,-981.9639278557114,-983.7675350701403,-985.5711422845692,-987.374749498998,-989.1783567134269,-990.9819639278558,-992.7855711422845,-994.5891783567134,-996.3927855711423,-998.1963927855711,-1000.0]} \ No newline at end of file diff --git a/base/special/asecf/test/fixtures/julia/larger_positive.json b/base/special/asecf/test/fixtures/julia/larger_positive.json new file mode 100644 index 000000000..9ac83d16e --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/larger_positive.json @@ -0,0 +1 @@ +{"expected":[1.5607961601207294,1.5609733341779581,1.5611443394068416,1.561309492477773,1.5614690887508842,1.5616234040389971,1.5617726961984089,1.5619172065668092,1.5620571612652012,1.5621927723785973,1.5623242390284586,1.562451748348283,1.5625754763723971,1.5626955888468275,1.5628122419701067,1.5629255830709792,1.563035751229186,1.563142877844833,1.5632470871612416,1.5633484967456548,1.5634472179317132,1.5635433562271965,1.5636370116901774,1.5637282792763985,1.5638172491604143,1.5639040070327808,1.563988634375346,1.5640712087165083,1.5641518038681184,1.564230490145547,1.5643073345722998,1.5643824010704286,1.564455750637878,1.5645274415137989,1.5645975293327727,1.564666067268805,1.56473310616987,1.5647986946837202,1.564862879375623,1.5649257048386103,1.564987213796803,1.565047447202304,1.5651064443261251,1.5651642428435741,1.5652208789144866,1.5652763872586677,1.5653308012268703,1.565384152867616,1.565436472990141,1.5654877912237253,1.565538136073645,1.565587534973972,1.5656360143374255,1.5656835996024625,1.5657303152777897,1.5657761849844556,1.5658212314956765,1.5658654767745375,1.5659089420096997,1.5659516476492346,1.565993613432701,1.5660348584215682,1.566075401028085,1.566115259042687,1.5661544496600257,1.5661929895037028,1.56623089464978,1.5662681806491403,1.5663048625487581,1.5663409549119474,1.5663764718376394,1.5664114269787464,1.56644583355966,1.5664797043929337,1.5665130518951897,1.566545888102297,1.566578224683853,1.5666100729570138,1.5666414438996978,1.566672348163203,1.5667027960842648,1.5667327976965824,1.566762362741844,1.5667915006802733,1.56682022070072,1.5668485317303238,1.5668764424437642,1.566903961272123,1.566931096411375,1.5669578558305268,1.5669842472794198,1.5670102782962125,1.567035956214559,1.5670612881704984,1.5670862811090651,1.5671109417906377,1.5671352767970357,1.5671592925373756,1.5671829952536993,1.5672063910263816,1.5672294857793325,1.567252285284996,1.5672747951691612,1.5672970209155903,1.5673189678704726,1.5673406412467112,1.5673620461280513,1.5673831874730562,1.5674040701189358,1.5674246987852374,1.5674450780774012,1.567465212490188,1.567485106410985,1.5675047641229916,1.5675241898082954,1.5675433875508378,1.5675623613392755,1.5675811150697443,1.5675996525485263,1.5676179774946246,1.5676360935422518,1.567654004243231,1.5676717130693196,1.5676892234144513,1.567706538596905,1.5677236618614003,1.5677405963811266,1.5677573452597018,1.5677739115330687,1.5677902981713299,1.5678065080805232,1.5678225441043394,1.5678384090257858,1.5678541055687953,1.567869636399787,1.567885004129175,1.5679002113128313,1.567915260453504,1.567930154002189,1.5679448943594616,1.567959483876766,1.567973924857666,1.5679882195590578,1.5680023701923451,1.5680163789245805,1.568030247879571,1.5680439791389518,1.5680575747432282,1.5680710366927857,1.5680843669488718,1.5680975674345479,1.5681106400356153,1.568123586601512,1.5681364089461856,1.5681491088489403,1.568161688055261,1.5681741482776108,1.568186491196211,1.5681987184597936,1.5682108316863386,1.5682228324637841,1.5682347223507236,1.5682465028770787,1.5682581755447558,1.5682697418282852,1.5682812031754412,1.5682925610078462,1.5683038167215593,1.5683149716876477,1.5683260272527435,1.5683369847395858,1.5683478454475483,1.5683586106531529,1.5683692816105697,1.5683798595521043,1.568390345688672,1.5684007412102605,1.5684110472863788,1.5684212650664975,1.5684313956804745,1.5684414402389728,1.5684513998338656,1.568461275538633,1.5684710684087455,1.568480779482043,1.5684904097790995,1.5684999603035805,1.5685094320425932,1.5685188259670253,1.5685281430318772,1.5685373841765855,1.568546550325339,1.5685556423873872,1.5685646612573394,1.5685736078154602,1.5685824829279544,1.5685912874472472,1.568600022212257,1.5686086880486616,1.5686172857691594,1.5686258161737219,1.5686342800498432,1.5686426781727816,1.5686510113057965,1.5686592802003796,1.568667485596481,1.5686756282227299,1.5686837087966499,1.56869172802487,1.5686996866033314,1.568707585217487,1.5687154245425001,1.568723205243436,1.5687309279754489,1.5687385933839686,1.5687462021048777,1.5687537547646884,1.5687612519807148,1.5687686943612407,1.568776082505684,1.568783417004758,1.5687906984406288,1.568797927387069,1.5688051044096085,1.5688122300656824,1.5688193049047752,1.5688263294685612,1.568833304291044,1.5688402298986912,1.5688471068105667,1.568853935538461,1.5688607165870174,1.5688674504538567,1.568874137629699,1.5688807785984833,1.5688873738374831,1.5688939238174215,1.5689004290025836,1.5689068898509255,1.5689133068141814,1.5689196803379706,1.5689260108618985,1.5689322988196592,1.5689385446391342,1.568944748742489,1.5689509115462688,1.568957033461491,1.5689631148937375,1.568969156243244,1.5689751579049867,1.5689811202687702,1.5689870437193105,1.568992928636319,1.5689987753945815,1.5690045843640403,1.569010355909871,1.5690160903925585,1.569021788167973,1.5690274495874437,1.5690330749978294,1.569038664741592,1.5690442191568634,1.5690497385775153,1.5690552233332256,1.5690606737495436,1.5690660901479558,1.5690714728459474,1.5690768221570652,1.5690821383909788,1.569087421853539,1.569092672846839,1.5690978916692688,1.5691030786155742,1.569108233976911,1.5691133580409,1.5691184510916807,1.5691235134099628,1.5691285452730792,1.5691335469550354,1.56913851872656,1.569143460855153,1.5691483736051346,1.5691532572376914,1.5691581120109228,1.5691629381798875,1.569167735996647,1.5691725057103099,1.5691772475670749,1.5691819618102738,1.5691866486804122,1.5691913084152107,1.5691959412496452,1.5692005474159871,1.5692051271438408,1.5692096806601823,1.5692142081893974,1.5692187099533175,1.569223186171257,1.5692276370600473,1.5692320628340741,1.5692364637053096,1.569240839883347,1.569245191575435,1.569249518986509,1.5692538223192238,1.569258101773985,1.569262357548981,1.5692665898402125,1.569270798841523,1.569274984744629,1.569279147739148,1.5692832880126275,1.5692874057505741,1.5692915011364799,1.5692955743518504,1.5692996255762317,1.5693036549872355,1.5693076627605667,1.5693116490700478,1.569315614087645,1.5693195579834915,1.5693234809259138,1.5693273830814531,1.569331264614892,1.5693351256892747,1.5693389664659314,1.5693427871045014,1.5693465877629529,1.5693503685976073,1.5693541297631595,1.5693578714126981,1.569361593697728,1.56936529676819,1.56936898077248,1.5693726458574706,1.5693762921685293,1.5693799198495384,1.5693835290429132,1.569387119889622,1.5693906925292025,1.569394247099782,1.5693977837380928,1.5694013025794924,1.5694048037579789,1.5694082874062085,1.5694117536555123,1.569415202635913,1.5694186344761407,1.5694220493036495,1.5694254472446327,1.5694288284240387,1.5694321929655866,1.56943554099178,1.5694388726239235,1.5694421879821365,1.569445487185368,1.56944877035141,1.5694520375969128,1.5694552890373974,1.5694585247872703,1.5694617449598367,1.569464949667313,1.5694681390208405,1.569471313130498,1.5694744721053149,1.5694776160532826,1.5694807450813686,1.5694838592955265,1.5694869588007097,1.569490043700882,1.5694931140990303,1.569496170097175,1.569499211796382,1.569502239296774,1.5695052526975402,1.569508252096949,1.5695112375923574,1.5695142092802217,1.5695171672561081,1.569520111614703,1.5695230424498232,1.5695259598544256,1.5695288639206164,1.5695317547396626,1.5695346324019996,1.569537496997242,1.5695403486141921,1.5695431873408496,1.5695460132644201,1.5695488264713249,1.5695516270472083,1.5695544150769483,1.5695571906446633,1.569559953833722,1.5695627047267509,1.5695654434056423,1.569568169951564,1.569570884444965,1.5695735869655854,1.569576277592463,1.5695789564039422,1.5695816234776796,1.5695842788906536,1.569586922719171,1.5695895550388737,1.569592175924747,1.569594785451126,1.569597383691703,1.5695999707195338,1.5696025466070456,1.5696051114260423,1.5696076652477133,1.5696102081426377,1.5696127401807924,1.5696152614315582,1.5696177719637256,1.5696202718455017,1.569622761144516,1.5696252399278268,1.5696277082619265,1.5696301662127492,1.569632613845674,1.5696350512255335,1.5696374784166174,1.5696398954826798,1.5696423024869433,1.5696446994921054,1.5696470865603442,1.569649463753323,1.5696518311321959,1.569654188757613,1.5696565366897262,1.5696588749881932,1.5696612037121835,1.569663522920383,1.569665832670999,1.5696681330217646,1.5696704240299444,1.5696727057523387,1.5696749782452883,1.5696772415646791,1.5696794957659468,1.569681740904081,1.5696839770336306,1.5696862042087067,1.5696884224829892,1.5696906319097286,1.5696928325417518,1.5696950244314667,1.5696972076308644,1.5696993821915257,1.5697015481646233,1.5697037056009266,1.5697058545508058,1.5697079950642356,1.569710127190799,1.569712250979691,1.569714366479723,1.5697164737393259,1.5697185728065541,1.569720663729089,1.569722746554243,1.5697248213289623,1.569726888099831,1.5697289469130746,1.5697309978145635,1.569733040849816,1.5697350760640019,1.5697371035019456,1.5697391232081304,1.5697411352267,1.5697431396014632,1.5697451363758967,1.5697471255931477,1.5697491072960377,1.5697510815270652,1.5697530483284088,1.5697550077419304,1.5697569598091778,1.5697589045713878,1.5697608420694895,1.5697627723441063,1.5697646954355597,1.5697666113838715,1.5697685202287666,1.569770422009676,1.5697723167657394,1.569774204535808,1.5697760853584468,1.5697779592719376,1.5697798263142817,1.5697816865232015,1.5697835399361446,1.5697853865902849,1.5697872265225261,1.5697890597695034,1.5697908863675865,1.5697927063528814,1.5697945197612337,1.56979632662823],"x":[100.0,101.80360721442885,103.60721442885772,105.41082164328657,107.21442885771543,109.01803607214428,110.82164328657315,112.625250501002,114.42885771543087,116.23246492985972,118.03607214428858,119.83967935871743,121.6432865731463,123.44689378757515,125.25050100200401,127.05410821643287,128.85771543086173,130.66132264529057,132.46492985971943,134.2685370741483,136.07214428857716,137.875751503006,139.67935871743487,141.48296593186373,143.2865731462926,145.09018036072143,146.8937875751503,148.69739478957916,150.50100200400803,152.30460921843687,154.10821643286573,155.9118236472946,157.71543086172343,159.5190380761523,161.32264529058116,163.12625250501003,164.92985971943887,166.73346693386773,168.5370741482966,170.34068136272546,172.1442885771543,173.94789579158316,175.75150300601203,177.5551102204409,179.35871743486973,181.1623246492986,182.96593186372746,184.7695390781563,186.57314629258516,188.37675350701403,190.1803607214429,191.98396793587173,193.7875751503006,195.59118236472946,197.39478957915833,199.19839679358716,201.00200400801603,202.8056112224449,204.60921843687376,206.4128256513026,208.21643286573146,210.02004008016033,211.82364729458916,213.62725450901803,215.4308617234469,217.23446893787576,219.0380761523046,220.84168336673346,222.64529058116233,224.4488977955912,226.25250501002003,228.0561122244489,229.85971943887776,231.66332665330663,233.46693386773546,235.27054108216433,237.0741482965932,238.87775551102203,240.6813627254509,242.48496993987976,244.28857715430863,246.09218436873746,247.89579158316633,249.6993987975952,251.50300601202406,253.3066132264529,255.11022044088176,256.9138276553106,258.71743486973946,260.52104208416836,262.3246492985972,264.12825651302603,265.9318637274549,267.73547094188376,269.5390781563126,271.3426853707415,273.14629258517033,274.9498997995992,276.75350701402806,278.5571142284569,280.3607214428858,282.1643286573146,283.96793587174346,285.77154308617236,287.5751503006012,289.3787575150301,291.1823647294589,292.98597194388776,294.78957915831666,296.5931863727455,298.39679358717433,300.2004008016032,302.00400801603206,303.8076152304609,305.6112224448898,307.4148296593186,309.2184368737475,311.02204408817636,312.8256513026052,314.6292585170341,316.4328657314629,318.23647294589176,320.04008016032066,321.8436873747495,323.64729458917833,325.4509018036072,327.25450901803606,329.05811623246495,330.8617234468938,332.6653306613226,334.4689378757515,336.27254509018036,338.0761523046092,339.8797595190381,341.6833667334669,343.4869739478958,345.29058116232466,347.0941883767535,348.8977955911824,350.7014028056112,352.50501002004006,354.30861723446895,356.1122244488978,357.9158316633266,359.7194388777555,361.52304609218436,363.32665330661325,365.1302605210421,366.9338677354709,368.7374749498998,370.54108216432866,372.3446893787575,374.1482965931864,375.9519038076152,377.75551102204406,379.55911823647295,381.3627254509018,383.1663326653307,384.9699398797595,386.77354709418836,388.57715430861725,390.3807615230461,392.1843687374749,393.9879759519038,395.79158316633266,397.59519038076155,399.3987975951904,401.2024048096192,403.0060120240481,404.80961923847696,406.6132264529058,408.4168336673347,410.2204408817635,412.02404809619236,413.82765531062125,415.6312625250501,417.434869739479,419.2384769539078,421.04208416833666,422.84569138276555,424.6492985971944,426.4529058116232,428.2565130260521,430.06012024048096,431.8637274549098,433.6673346693387,435.4709418837675,437.2745490981964,439.07815631262525,440.8817635270541,442.685370741483,444.4889779559118,446.29258517034066,448.09619238476955,449.8997995991984,451.7034068136273,453.5070140280561,455.31062124248496,457.11422845691385,458.9178356713427,460.7214428857715,462.5250501002004,464.32865731462925,466.1322645290581,467.935871743487,469.7394789579158,471.5430861723447,473.34669338677355,475.1503006012024,476.9539078156313,478.7575150300601,480.56112224448896,482.36472945891785,484.1683366733467,485.9719438877755,487.7755511022044,489.57915831663325,491.38276553106215,493.186372745491,494.9899799599198,496.7935871743487,498.59719438877755,500.4008016032064,502.2044088176353,504.0080160320641,505.811623246493,507.61523046092185,509.4188376753507,511.2224448897796,513.0260521042084,514.8296593186373,516.6332665330661,518.436873747495,520.2404809619238,522.0440881763527,523.8476953907816,525.6513026052104,527.4549098196393,529.2585170340682,531.062124248497,532.8657314629259,534.6693386773547,536.4729458917835,538.2765531062124,540.0801603206413,541.8837675350701,543.687374749499,545.4909819639279,547.2945891783567,549.0981963927856,550.9018036072144,552.7054108216433,554.5090180360721,556.312625250501,558.1162324649299,559.9198396793587,561.7234468937876,563.5270541082165,565.3306613226453,567.1342685370741,568.937875751503,570.7414829659318,572.5450901803607,574.3486973947896,576.1523046092184,577.9559118236473,579.7595190380762,581.563126252505,583.3667334669339,585.1703406813627,586.9739478957916,588.7775551102204,590.5811623246493,592.3847695390782,594.188376753507,595.9919839679359,597.7955911823648,599.5991983967936,601.4028056112224,603.2064128256513,605.0100200400801,606.813627254509,608.6172344689379,610.4208416833667,612.2244488977956,614.0280561122245,615.8316633266533,617.6352705410821,619.438877755511,621.2424849699398,623.0460921843687,624.8496993987976,626.6533066132265,628.4569138276553,630.2605210420842,632.0641282565131,633.8677354709419,635.6713426853707,637.4749498997996,639.2785571142284,641.0821643286573,642.8857715430862,644.689378757515,646.4929859719439,648.2965931863728,650.1002004008016,651.9038076152304,653.7074148296593,655.5110220440881,657.314629258517,659.1182364729459,660.9218436873748,662.7254509018036,664.5290581162325,666.3326653306614,668.1362725450902,669.939879759519,671.7434869739479,673.5470941883767,675.3507014028056,677.1543086172345,678.9579158316633,680.7615230460922,682.5651302605211,684.3687374749499,686.1723446893787,687.9759519038076,689.7795591182364,691.5831663326653,693.3867735470942,695.1903807615231,696.9939879759519,698.7975951903808,700.6012024048097,702.4048096192384,704.2084168336673,706.0120240480962,707.815631262525,709.6192384769539,711.4228456913828,713.2264529058116,715.0300601202405,716.8336673346694,718.6372745490982,720.440881763527,722.2444889779559,724.0480961923847,725.8517034068136,727.6553106212425,729.4589178356713,731.2625250501002,733.0661322645291,734.869739478958,736.6733466933867,738.4769539078156,740.2805611222445,742.0841683366733,743.8877755511022,745.6913827655311,747.4949899799599,749.2985971943888,751.1022044088177,752.9058116232464,754.7094188376753,756.5130260521042,758.316633266533,760.1202404809619,761.9238476953908,763.7274549098196,765.5310621242485,767.3346693386774,769.1382765531063,770.941883767535,772.7454909819639,774.5490981963928,776.3527054108216,778.1563126252505,779.9599198396794,781.7635270541082,783.5671342685371,785.370741482966,787.1743486973947,788.9779559118236,790.7815631262525,792.5851703406813,794.3887775551102,796.1923847695391,797.9959919839679,799.7995991983968,801.6032064128257,803.4068136272546,805.2104208416833,807.0140280561122,808.8176352705411,810.6212424849699,812.4248496993988,814.2284569138277,816.0320641282565,817.8356713426854,819.6392785571143,821.442885771543,823.2464929859719,825.0501002004008,826.8537074148296,828.6573146292585,830.4609218436874,832.2645290581162,834.0681362725451,835.871743486974,837.6753507014027,839.4789579158316,841.2825651302605,843.0861723446894,844.8897795591182,846.6933867735471,848.496993987976,850.3006012024048,852.1042084168337,853.9078156312626,855.7114228456913,857.5150300601202,859.3186372745491,861.1222444889779,862.9258517034068,864.7294589178357,866.5330661322645,868.3366733466934,870.1402805611223,871.943887775551,873.7474949899799,875.5511022044088,877.3547094188377,879.1583166332665,880.9619238476954,882.7655310621243,884.5691382765531,886.372745490982,888.1763527054109,889.9799599198396,891.7835671342685,893.5871743486974,895.3907815631262,897.1943887775551,898.997995991984,900.8016032064128,902.6052104208417,904.4088176352706,906.2124248496993,908.0160320641282,909.8196392785571,911.623246492986,913.4268537074148,915.2304609218437,917.0340681362726,918.8376753507014,920.6412825651303,922.4448897795592,924.2484969939879,926.0521042084168,927.8557114228457,929.6593186372745,931.4629258517034,933.2665330661323,935.0701402805611,936.87374749499,938.6773547094189,940.4809619238476,942.2845691382765,944.0881763527054,945.8917835671342,947.6953907815631,949.498997995992,951.3026052104209,953.1062124248497,954.9098196392786,956.7134268537075,958.5170340681362,960.3206412825651,962.124248496994,963.9278557114228,965.7314629258517,967.5350701402806,969.3386773547094,971.1422845691383,972.9458917835672,974.7494989979959,976.5531062124248,978.3567134268537,980.1603206412825,981.9639278557114,983.7675350701403,985.5711422845692,987.374749498998,989.1783567134269,990.9819639278558,992.7855711422845,994.5891783567134,996.3927855711423,998.1963927855711,1000.0]} \ No newline at end of file diff --git a/base/special/asecf/test/fixtures/julia/medium_negative.json b/base/special/asecf/test/fixtures/julia/medium_negative.json new file mode 100644 index 000000000..a344fc9fd --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/medium_negative.json @@ -0,0 +1 @@ +{"expected":[3.141592653589793,3.052209491517088,3.0153955973646953,2.9872891212180495,2.9637119923122235,2.9430427377603,2.9244481979227737,2.9074325042207434,2.89167195778204,2.8769412864961286,2.8630761546619756,2.8499522607466217,2.837472845483573,2.825560809363679,2.814153516172543,2.8031992415236666,2.7926546711342572,2.78248309261046,2.7726530591701906,2.7631373828558448,2.7539123629924136,2.744957185950941,2.736253451862693,2.72778479690093,2.7195365885279195,2.711495677166456,2.7036501920144578,2.6959893717625882,2.688503423178654,2.6811834021410053,2.674021112906543,2.667009022303919,2.6601401862303327,2.653408186358202,2.6468070753668376,2.64033132933361,2.633975806170552,2.627735709191793,2.621606555056564,2.6155841454606326,2.609664542052673,2.6038440441364767,2.5981191687889167,2.5924866330804237,2.5869433381316624,2.581486354779158,2.5761129106551413,2.5708203785142123,2.565606265662357,2.5604682043632767,2.555403943113429,2.5504113386911973,2.545488348897539,2.5406330259157466,2.535843510226715,2.5311180250237424,2.5264548710774237,2.5218524220069027,2.517309119918692,2.5128234713785735,2.5083940436858763,2.5040194614227067,2.4996984032536194,2.495429598953762,2.491211826645764,2.4870439102276443,2.4829247169757522,2.478853155308327,2.4748281726966486,2.470848753711976,2.4669139181975877,2.4630227195562022,2.459174243143962,2.4553676047629303,2.4516019492447803,2.447876449118972,2.4441903033593135,2.440542736203297,2.4369329960390833,2.4333603543554227,2.4298241047501987,2.4263235619936054,2.422858061142305,2.4194269567011997,2.41602962182969,2.412665447589564,2.409333842231852,2.4060342305201923,2.402766053088435,2.3995287658303726,2.3963218393196426,2.3931447582579835,2.3899970209501635,2.3868781388039997,2.3837876358540155,2.380725048307373,2.3776899241108094,2.3746818225373905,2.371700313791985,2.3687449786344112,2.365815408019307,2.3629112027517998,2.360031973158153,2.357177338770568,2.354346928025425,2.351540377974243,2.3487573340067196,2.345997449585222,2.3432603859901624,2.3405458120757023,2.3378534040352847,2.335182845176502,2.332533825704851,2.3299060425159444,2.327299198995779,2.324713004828668,2.3221471758124954,2.3196014336809303,2.3170755059323023,2.3145691256648155,2.312082031417824,2.3096139670188944,2.3071646814363924,2.304733928637359,2.302321467450436,2.299927061433624,2.2975504787466647,2.295191492027855,2.2928498782750903,2.2905254187309803,2.2882178987718444,2.285927107800446,2.283652839142296,2.2813948899453953,2.2791530610832607,2.2769271570611163,2.2747169859251155,2.2725223591744803,2.2703430916764344,2.2681790015838317,2.2660299102553685,2.2638956421782823,2.2617760248934444,2.259670888922752,2.2575800676987345,2.255503397496296,2.253440717366507,2.251391869072375,2.249356697026522,2.2473350482306946,2.24532677221705,2.2433317209911414,2.241349748976557,2.2393807129611387,2.237424472044742,2.2354808875884657,2.233549823165317,2.231631144512247,2.229724719483527,2.227830418005401,2.2259481120319897,2.2240776755023886,2.222218984298931,2.220371916206575,2.2185363508733698,2.2167121697719785,2.214899256162215,2.213097495054564,2.2113067731746505,2.2095269789286363,2.2077580023695003,2.205999735164193,2.2042520705616173,2.2025149033614286,2.200788129883617,2.1990716479388484,2.1973653567995517,2.195669157171713,2.19398295116737,2.1923066422777753,2.190640135347218,2.1889833365474742,2.1873361533528732,2.1856984945159645,2.184070270043758,2.1824513911745327,2.1808417703551877,2.179241321219124,2.177649958564645,2.176067598333855,2.1744941575920413,2.1729295545075376,2.1713737083320375,2.1698265393813605,2.1682879690166525,2.166757919626005,2.1652363146064886,2.1637230783465835,2.1622181362090016,2.160721414513885,2.159232840522372,2.157752342420524,2.156279849303596,2.1548152911606557,2.1533585988595214,2.1519097041320325,2.1504685395596264,2.1490350385592234,2.1476091353694104,2.146190765036912,2.1447798634033437,2.1433763670922437,2.1419802134963706,2.14059134076526,2.139209687793044,2.137835194206509,2.1364678003534037,2.13510744729098,2.133754076774766,2.132407631247562,2.131068053828659,2.129735288303266,2.1284092791121534,2.127089971341495,2.1257773107129077,2.1244712435736934,2.1231717168872604,2.121878678223739,2.120592075750771,2.1193118582244788,2.1180379749806084,2.116770375925837,2.11550901152925,2.1142538328139713,2.1130047913489602,2.111761839240955,2.110524929126567,2.109294014164525,2.1080690480280593,2.1068499848974263,2.105636779452573,2.104429386865931,2.103227762795344,2.1020318633771256,2.100841645219234,2.099657065394581,2.0984780814344495,2.097304651322036,2.096136733486105,2.094974286794753,2.093817270549287,2.092665644478209,2.0915193687313005,2.090378403873821,2.089242710880793,2.088112251131398,2.086986986403464,2.0858668788680443,2.0847518910840943,2.0836419859932382,2.0825371269146196,2.0814372775398446,2.080342401928009,2.079252464500805,2.0781674300377135,2.077087263671277,2.076011930882448,2.0749413974960147,2.073875629676105,2.072814593921761,2.071758257062587,2.0707065862544707,2.069659548975367,2.0686171130211606,2.0675792465015848,2.0665459178362133,2.065517095750513,2.0644927492719596,2.0634728477262145,2.0624573607333674,2.06144625820423,2.0604395103366953,2.059437087612148,2.0584389607919387,2.057445100913904,2.056455479288947,2.05547006749767,2.0544888373870553,2.053511761067203,2.052538810908112,2.0515699595365176,2.0506051798327696,2.0496444449277655,2.048687728199923,2.0477350032722033,2.0467862440091764,2.0458414245141316,2.044900519126231,2.043963502417705,2.0430303491910884,2.0421010344765023,2.041175533528968,2.0402538218257673,2.0393358750638395,2.038421669157214,2.037511180234484,2.0366043846363153,2.0357012589129893,2.0348017798219846,2.033905924325593,2.033013669588566,2.0321249929758007,2.0312398720500546,2.0303582845696924,2.0294802084864694,2.028605621943341,2.027734503272307,2.026866830992283,2.0260025838070037,2.025141740602955,2.024284280447335,2.0234301825860426,2.022579426441696,2.0217319916116754,2.020887857866194,2.020047005146399,2.0192094135624905,2.018375063391876,2.0175439350773416,2.0167160092252523,2.0158912666037776,2.0150696881411365,2.0142512549238702,2.0134359481951374,2.01262374935303,2.0118146399489154,2.0110086016857958,2.0102056164166937,2.009405666143056,2.008608733013181,2.007814799320665,2.0070238475028694,2.0062358601394084,2.005450819950656,2.004668709796272,2.003889512673749,2.0031132117169754,2.00233979019482,2.0015692315097313,2.00080151919636,2.0000366369201936,1.9992745684762103,1.9985152977875535,1.997758808904218,1.9970050860017547,1.9962541133799951,1.9955058754617856,1.9947603567917433,1.9940175420350243,1.9932774159761086,1.9925399635175995,1.9918051696790389,1.9910730195957365,1.9903434985176136,1.9896165918080624,1.9888922849428166,1.9881705635088396,1.987451413203223,1.9867348198321007,1.986020769309575,1.9853092476566572,1.9846002410002193,1.9838937355719597,1.9831897177073814,1.9824881738447808,1.9817890905242526,1.981092454386701,1.9803982521728676,1.9797064707223688,1.9790170969727452,1.9783301179585215,1.9776455208102783,1.976963292753735,1.9762834211088434,1.9756058932888905,1.9749306967996152,1.9742578192383315,1.973587248293065,1.9729189717416968,1.9722529774511206,1.9715892533764068,1.9709277875599762,1.9702685681307868,1.969611583303525,1.9689568213778101,1.9683042707374057,1.9676539198494414,1.9670057572636421,1.9663597716115677,1.9657159516058593,1.9650742860394967,1.9644347637850619,1.9637973737940118,1.9631621050959591,1.9625289467979623,1.9618978880838212,1.961268918213383,1.960642026521854,1.9600172024191205,1.959394435389076,1.9587737149889577,1.9581550308486877,1.9575383726702238,1.956923730226916,1.9563110933628716,1.9557004519923251,1.9550917960990173,1.9544851157355791,1.953880401022924,1.9532776421496458,1.9526768293714225,1.952077953010429,1.9514810034547536,1.9508859711578213,1.9502928466378249,1.9497016204771602,1.9491122833218688,1.9485248258810857,1.9479392389264933,1.9473555132917815,1.9467736398721134,1.9461936096235952,1.9456154135627552,1.9450390427660245,1.9444644883692248,1.9438917415670625,1.9433207936126264,1.9427516358168921,1.9421842595482302,1.9416186562319206,1.9410548173496724,1.9404927344391467,1.939932399093487,1.9393738029608512,1.9388169377439528,1.9382617951996024,1.937708367138257,1.9371566454235718,1.936606621971959,1.9360582887521487,1.935511637784755,1.9349666611418477,1.9344233509465272,1.9338816993725039,1.9333416986436809,1.9328033410337444,1.9322666188657533,1.9317315245117368,1.931198050392294,1.930666188976199,1.9301359327800072,1.9296072743676698,1.9290802063501489,1.928554721385036,1.928030812176178,1.927508471473302,1.9269876920716484,1.9264684668116046,1.9259507885783425,1.9254346503014617,1.924920044954634,1.9244069655552527,1.923895405164084,1.923385356884923,1.9228768138642534,1.9223697692909083,1.9218642163957371,1.9213601484512735,1.920857558771408,1.9203564407110625,1.919856787665869,1.9193585930718509,1.9188618504051074,1.9183665531815006,1.917872694956347,1.9173802693241095,1.9168892699180948,1.9163996904101521,1.915911524510375,1.915424765966807,1.9149394085651485,1.9144554461284682,1.9139728725169145,1.9134916816274334,1.9130118673934855,1.9125334237847682,1.9120563448069383,1.9115806245013398,1.9111062569447312,1.9106332362490186],"x":[-1.0,-1.0040080160320641,-1.0080160320641283,-1.0120240480961924,-1.0160320641282565,-1.0200400801603207,-1.0240480961923848,-1.028056112224449,-1.032064128256513,-1.0360721442885772,-1.0400801603206413,-1.0440881763527055,-1.0480961923847696,-1.0521042084168337,-1.0561122244488979,-1.060120240480962,-1.0641282565130261,-1.0681362725450902,-1.0721442885771544,-1.0761523046092185,-1.0801603206412826,-1.0841683366733468,-1.088176352705411,-1.092184368737475,-1.0961923847695392,-1.1002004008016033,-1.1042084168336674,-1.1082164328657316,-1.1122244488977955,-1.1162324649298596,-1.1202404809619237,-1.1242484969939879,-1.128256513026052,-1.1322645290581161,-1.1362725450901803,-1.1402805611222444,-1.1442885771543085,-1.1482965931863727,-1.1523046092184368,-1.156312625250501,-1.160320641282565,-1.1643286573146292,-1.1683366733466933,-1.1723446893787575,-1.1763527054108216,-1.1803607214428857,-1.1843687374749499,-1.188376753507014,-1.1923847695390781,-1.1963927855711423,-1.2004008016032064,-1.2044088176352705,-1.2084168336673347,-1.2124248496993988,-1.216432865731463,-1.220440881763527,-1.2244488977955912,-1.2284569138276553,-1.2324649298597194,-1.2364729458917836,-1.2404809619238477,-1.2444889779559118,-1.248496993987976,-1.25250501002004,-1.2565130260521042,-1.2605210420841684,-1.2645290581162325,-1.2685370741482966,-1.2725450901803608,-1.276553106212425,-1.280561122244489,-1.2845691382765532,-1.2885771543086173,-1.2925851703406814,-1.2965931863727456,-1.3006012024048097,-1.3046092184368738,-1.308617234468938,-1.312625250501002,-1.3166332665330662,-1.3206412825651304,-1.3246492985971945,-1.3286573146292586,-1.3326653306613228,-1.3366733466933867,-1.3406813627254508,-1.344689378757515,-1.348697394789579,-1.3527054108216432,-1.3567134268537073,-1.3607214428857715,-1.3647294589178356,-1.3687374749498997,-1.3727454909819639,-1.376753507014028,-1.3807615230460921,-1.3847695390781563,-1.3887775551102204,-1.3927855711422845,-1.3967935871743486,-1.4008016032064128,-1.404809619238477,-1.408817635270541,-1.4128256513026052,-1.4168336673346693,-1.4208416833667334,-1.4248496993987976,-1.4288577154308617,-1.4328657314629258,-1.43687374749499,-1.440881763527054,-1.4448897795591182,-1.4488977955911824,-1.4529058116232465,-1.4569138276553106,-1.4609218436873748,-1.464929859719439,-1.468937875751503,-1.4729458917835672,-1.4769539078156313,-1.4809619238476954,-1.4849699398797596,-1.4889779559118237,-1.4929859719438878,-1.496993987975952,-1.501002004008016,-1.5050100200400802,-1.5090180360721444,-1.5130260521042085,-1.5170340681362726,-1.5210420841683367,-1.5250501002004009,-1.529058116232465,-1.5330661322645291,-1.5370741482965933,-1.5410821643286574,-1.5450901803607215,-1.5490981963927857,-1.5531062124248498,-1.5571142284569137,-1.5611222444889779,-1.565130260521042,-1.5691382765531061,-1.5731462925851702,-1.5771543086172344,-1.5811623246492985,-1.5851703406813626,-1.5891783567134268,-1.593186372745491,-1.597194388777555,-1.6012024048096192,-1.6052104208416833,-1.6092184368737474,-1.6132264529058116,-1.6172344689378757,-1.6212424849699398,-1.625250501002004,-1.629258517034068,-1.6332665330661322,-1.6372745490981964,-1.6412825651302605,-1.6452905811623246,-1.6492985971943888,-1.653306613226453,-1.657314629258517,-1.6613226452905812,-1.6653306613226453,-1.6693386773547094,-1.6733466933867736,-1.6773547094188377,-1.6813627254509018,-1.685370741482966,-1.68937875751503,-1.6933867735470942,-1.6973947895791583,-1.7014028056112225,-1.7054108216432866,-1.7094188376753507,-1.7134268537074149,-1.717434869739479,-1.7214428857715431,-1.7254509018036073,-1.7294589178356714,-1.7334669338677355,-1.7374749498997997,-1.7414829659318638,-1.745490981963928,-1.749498997995992,-1.7535070140280562,-1.7575150300601203,-1.7615230460921845,-1.7655310621242486,-1.7695390781563127,-1.7735470941883769,-1.777555110220441,-1.781563126252505,-1.785571142284569,-1.7895791583166332,-1.7935871743486973,-1.7975951903807614,-1.8016032064128256,-1.8056112224448897,-1.8096192384769538,-1.813627254509018,-1.817635270541082,-1.8216432865731462,-1.8256513026052104,-1.8296593186372745,-1.8336673346693386,-1.8376753507014028,-1.8416833667334669,-1.845691382765531,-1.8496993987975952,-1.8537074148296593,-1.8577154308617234,-1.8617234468937875,-1.8657314629258517,-1.8697394789579158,-1.87374749498998,-1.877755511022044,-1.8817635270541082,-1.8857715430861723,-1.8897795591182365,-1.8937875751503006,-1.8977955911823647,-1.9018036072144289,-1.905811623246493,-1.9098196392785571,-1.9138276553106213,-1.9178356713426854,-1.9218436873747495,-1.9258517034068137,-1.9298597194388778,-1.933867735470942,-1.937875751503006,-1.9418837675350702,-1.9458917835671343,-1.9498997995991985,-1.9539078156312626,-1.9579158316633267,-1.9619238476953909,-1.965931863727455,-1.9699398797595191,-1.9739478957915833,-1.9779559118236474,-1.9819639278557115,-1.9859719438877756,-1.9899799599198398,-1.993987975951904,-1.997995991983968,-2.002004008016032,-2.006012024048096,-2.0100200400801604,-2.0140280561122244,-2.0180360721442887,-2.0220440881763526,-2.026052104208417,-2.030060120240481,-2.0340681362725452,-2.038076152304609,-2.0420841683366735,-2.0460921843687374,-2.0501002004008018,-2.0541082164328657,-2.05811623246493,-2.062124248496994,-2.0661322645290583,-2.070140280561122,-2.0741482965931866,-2.0781563126252505,-2.082164328657315,-2.0861723446893787,-2.090180360721443,-2.094188376753507,-2.0981963927855714,-2.1022044088176353,-2.1062124248496996,-2.1102204408817635,-2.1142284569138274,-2.118236472945892,-2.1222444889779557,-2.12625250501002,-2.130260521042084,-2.1342685370741483,-2.1382765531062122,-2.1422845691382766,-2.1462925851703405,-2.150300601202405,-2.1543086172344688,-2.158316633266533,-2.162324649298597,-2.1663326653306614,-2.1703406813627253,-2.1743486973947896,-2.1783567134268536,-2.182364729458918,-2.186372745490982,-2.190380761523046,-2.19438877755511,-2.1983967935871744,-2.2024048096192383,-2.2064128256513027,-2.2104208416833666,-2.214428857715431,-2.218436873747495,-2.2224448897795592,-2.226452905811623,-2.2304609218436875,-2.2344689378757514,-2.2384769539078158,-2.2424849699398797,-2.246492985971944,-2.250501002004008,-2.2545090180360723,-2.258517034068136,-2.2625250501002006,-2.2665330661322645,-2.270541082164329,-2.2745490981963927,-2.278557114228457,-2.282565130260521,-2.2865731462925853,-2.2905811623246493,-2.2945891783567136,-2.2985971943887775,-2.302605210420842,-2.306613226452906,-2.31062124248497,-2.314629258517034,-2.3186372745490984,-2.3226452905811623,-2.3266533066132267,-2.3306613226452906,-2.3346693386773545,-2.338677354709419,-2.3426853707414828,-2.346693386773547,-2.350701402805611,-2.3547094188376754,-2.3587174348697393,-2.3627254509018036,-2.3667334669338675,-2.370741482965932,-2.374749498997996,-2.37875751503006,-2.382765531062124,-2.3867735470941884,-2.3907815631262523,-2.3947895791583167,-2.3987975951903806,-2.402805611222445,-2.406813627254509,-2.4108216432865732,-2.414829659318637,-2.4188376753507015,-2.4228456913827654,-2.4268537074148298,-2.4308617234468937,-2.434869739478958,-2.438877755511022,-2.4428857715430863,-2.44689378757515,-2.4509018036072145,-2.4549098196392785,-2.458917835671343,-2.4629258517034067,-2.466933867735471,-2.470941883767535,-2.4749498997995993,-2.4789579158316633,-2.4829659318637276,-2.4869739478957915,-2.490981963927856,-2.49498997995992,-2.498997995991984,-2.503006012024048,-2.5070140280561124,-2.5110220440881763,-2.5150300601202407,-2.5190380761523046,-2.523046092184369,-2.527054108216433,-2.531062124248497,-2.535070140280561,-2.5390781563126255,-2.5430861723446894,-2.5470941883767537,-2.5511022044088176,-2.555110220440882,-2.559118236472946,-2.56312625250501,-2.567134268537074,-2.571142284569138,-2.5751503006012024,-2.5791583166332663,-2.5831663326653307,-2.5871743486973946,-2.591182364729459,-2.595190380761523,-2.599198396793587,-2.603206412825651,-2.6072144288577155,-2.6112224448897794,-2.6152304609218437,-2.6192384769539077,-2.623246492985972,-2.627254509018036,-2.6312625250501003,-2.635270541082164,-2.6392785571142285,-2.6432865731462925,-2.647294589178357,-2.6513026052104207,-2.655310621242485,-2.659318637274549,-2.6633266533066133,-2.6673346693386772,-2.6713426853707416,-2.6753507014028055,-2.67935871743487,-2.6833667334669338,-2.687374749498998,-2.691382765531062,-2.6953907815631264,-2.6993987975951903,-2.7034068136272547,-2.7074148296593186,-2.711422845691383,-2.715430861723447,-2.719438877755511,-2.723446893787575,-2.7274549098196395,-2.7314629258517034,-2.7354709418837677,-2.7394789579158316,-2.743486973947896,-2.74749498997996,-2.7515030060120242,-2.755511022044088,-2.7595190380761525,-2.7635270541082164,-2.7675350701402808,-2.7715430861723447,-2.775551102204409,-2.779559118236473,-2.783567134268537,-2.787575150300601,-2.791583166332665,-2.7955911823647295,-2.7995991983967934,-2.8036072144288577,-2.8076152304609217,-2.811623246492986,-2.81563126252505,-2.8196392785571143,-2.823647294589178,-2.8276553106212425,-2.8316633266533064,-2.835671342685371,-2.8396793587174347,-2.843687374749499,-2.847695390781563,-2.8517034068136273,-2.8557114228456912,-2.8597194388777556,-2.8637274549098195,-2.867735470941884,-2.8717434869739478,-2.875751503006012,-2.879759519038076,-2.8837675350701404,-2.8877755511022043,-2.8917835671342687,-2.8957915831663326,-2.899799599198397,-2.903807615230461,-2.907815631262525,-2.911823647294589,-2.9158316633266534,-2.9198396793587174,-2.9238476953907817,-2.9278557114228456,-2.93186372745491,-2.935871743486974,-2.9398797595190382,-2.943887775551102,-2.9478957915831665,-2.9519038076152304,-2.9559118236472948,-2.9599198396793587,-2.963927855711423,-2.967935871743487,-2.9719438877755513,-2.975951903807615,-2.9799599198396796,-2.9839679358717435,-2.987975951903808,-2.9919839679358717,-2.995991983967936,-3.0]} \ No newline at end of file diff --git a/base/special/asecf/test/fixtures/julia/medium_positive.json b/base/special/asecf/test/fixtures/julia/medium_positive.json new file mode 100644 index 000000000..ed8afb866 --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/medium_positive.json @@ -0,0 +1 @@ +{"expected":[0.0,0.08938316207270532,0.12619705622509797,0.15430353237174357,0.1778806612775699,0.1985499158294932,0.21714445566701962,0.23416014936904994,0.24992069580775328,0.26465136709366444,0.2785164989278178,0.29164039284317167,0.3041198081062203,0.31603184422611436,0.3274391374172502,0.3383934120661267,0.3489379824555358,0.3591095609793335,0.3689395944196027,0.37845527073394847,0.3876802905973797,0.39663546763885227,0.40533920172710014,0.4138078566888631,0.42205606506187376,0.43009697642333733,0.4379424615753353,0.4456032818272051,0.45308923041113924,0.46040925144878797,0.46757154068325024,0.47458363128587416,0.4814524673594604,0.48818446723159115,0.4947855782229558,0.5012613242561833,0.5076168474192413,0.5138569443980004,0.519986098533229,0.5260085081291607,0.53192811153712,0.5377486094533167,0.5434734848008762,0.5491060205093696,0.5546493154581308,0.5601062988106355,0.565479742934652,0.570772275075581,0.5759863879274363,0.5811244492265168,0.5861887104763639,0.5911813148985959,0.5961043046922541,0.6009596276740468,0.6057491433630782,0.6104746285660508,0.6151377825123696,0.6197402315828904,0.6242835336711015,0.6287691822112199,0.6331986099039169,0.6375731921670866,0.6418942503361738,0.6461630546360313,0.6503808269440293,0.6545487433621489,0.6586679366140412,0.6627394982814664,0.6667644808931448,0.670743899877817,0.6746787353922055,0.6785699340335911,0.6824184104458314,0.6862250488268627,0.6899907043450129,0.693716204470821,0.6974023502304795,0.7010499173864959,0.70465965755071,0.7082322992343706,0.7117685488395943,0.7152690915961879,0.7187345924474878,0.7221656968885933,0.7255630317601031,0.7289272060002293,0.7322588113579414,0.735558423069601,0.7388266005013581,0.7420638877594204,0.745270814270151,0.7484478953318098,0.7515956326396296,0.7547145147857934,0.7578050177357776,0.76086760528242,0.763902729478984,0.7669108310524028,0.7698923397978084,0.772847674955382,0.7757772455704867,0.7786814508379933,0.7815606804316404,0.7844153148192252,0.7872457255643683,0.7900522756155502,0.7928353195830736,0.7955952040045712,0.7983322675996308,0.8010468415140908,0.8037392495545083,0.806409808413291,0.8090588278849424,0.8116866110738488,0.8142934545940144,0.816879648761125,0.8194454777772978,0.8219912199088629,0.824517147657491,0.8270235279249778,0.829510622171969,0.8319786865708989,0.834427972153401,0.8368587249524341,0.839271186139357,0.8416655921561694,0.8440421748431285,0.8464011615619387,0.8487427753147028,0.8510672348588129,0.8533747548179487,0.8556655457893475,0.8579398144474972,0.8601977636443978,0.8624395925065326,0.8646654965286771,0.8668756676646776,0.8690702944153129,0.871249561913359,0.8734136520059615,0.875562743334425,0.877697011411511,0.8798166286963487,0.8819217646670414,0.8840125858910588,0.8860892560934972,0.8881519362232861,0.8902007845174182,0.8922359565632714,0.8942576053590987,0.8962658813727434,0.8982609325986517,0.9002429046132365,0.9022119406286544,0.9041681815450512,0.9061117660013271,0.9080428304244764,0.9099615090775461,0.9118679341062664,0.9137622355843923,0.9156445415578036,0.9175149780874048,0.9193736692908618,0.921220737383218,0.9230563027164236,0.9248804838178148,0.9266933974275783,0.9284951585352293,0.9302858804151426,0.9320656746611572,0.9338346512202929,0.9355929184256003,0.937340583028176,0.9390777502283646,0.9408045237061766,0.942521005650945,0.9442272967902415,0.9459234964180803,0.9476097024224236,0.9492860113120181,0.9509525182425752,0.9526093170423191,0.95425650023692,0.9558941590738288,0.9575223835460352,0.9591412624152605,0.9607508832346058,0.9623513323706694,0.9639426950251478,0.9655250552559383,0.9670984959977518,0.9686630990822557,0.9702189452577561,0.971766114208433,0.9733046845731409,0.9748347339637883,0.976356338983305,0.9778695752432099,0.9793745173807916,0.9808712390759081,0.982359813067421,0.9838403111692694,0.985312804286197,0.9867773624291377,0.9882340547302719,0.9896829494577608,0.9911241140301672,0.9925576150305699,0.9939835182203828,0.9954018885528815,0.9968127901864497,0.9982162864975495,0.9996124400934229,1.0010013128245328,1.0023829657967491,1.0037574593832843,1.0051248532363897,1.0064852062988134,1.0078385768150275,1.0091850223422314,1.0105245997611345,1.0118573652865273,1.0131833744776395,1.0145026822482983,1.0158153428768857,1.0171214100161001,1.018420936702533,1.0197139753660542,1.0210005778390225,1.0222807953653146,1.0235546786091851,1.0248222776639562,1.0260836420605437,1.0273388207758223,1.028587862240833,1.0298308143488384,1.031067724463226,1.032298639425268,1.0335236055617338,1.0347426686923669,1.0359558741372203,1.0371632667238624,1.0383648907944492,1.039560790212668,1.0407510083705593,1.0419355881952124,1.0431145721553439,1.044288002267757,1.0454559201036884,1.0466183667950404,1.047775383040506,1.0489270091115843,1.0500732848584926,1.0512142497159724,1.0523499427090006,1.053480402458395,1.0546056671863293,1.0557257747217492,1.0568407625056988,1.0579506675965553,1.059055526675174,1.0601553760499485,1.061250251661784,1.0623401890889885,1.06342522355208,1.0645053899185162,1.0655807227073455,1.0666512560937786,1.0677170239136884,1.0687780596680323,1.069834396527206,1.0708860673353227,1.0719331046144263,1.0729755405686328,1.0740134070882086,1.0750467357535798,1.07607555783928,1.077099904317834,1.0781198058635786,1.0791352928564257,1.080146395385563,1.0811531432530983,1.082155565977645,1.0831536927978545,1.0841475526758892,1.0851371743008462,1.0861225860921233,1.0871038162027378,1.0880808925225902,1.0890538426816812,1.0900226940532758,1.0909874737570235,1.0919482086620276,1.09290492538987,1.0938576503175899,1.0948064095806167,1.0957512290756615,1.096692134463562,1.0976291511720884,1.0985623043987047,1.0994916191132909,1.1004171200608255,1.1013388317640258,1.1022567785259538,1.1031709844325792,1.104081473355309,1.1049882689534778,1.105891394676804,1.1067908737678085,1.1076867292642005,1.1085789840012272,1.1094676606139924,1.110352781539739,1.111234369020101,1.112112445103324,1.112987031646452,1.113858150317486,1.11472582259751,1.1155900697827894,1.1164509129868383,1.1173083731424585,1.1181624710037505,1.119013227148097,1.119860661978118,1.120704795723599,1.1215456484433943,1.1223832400273026,1.1232175901979173,1.124048718512452,1.1248766443645408,1.1257013869860155,1.126522965448657,1.127341398665923,1.128156705394656,1.1289689042367632,1.1297780136408777,1.1305840519039974,1.1313870371730996,1.1321869874467376,1.1329839205766123,1.1337778542691284,1.134568806086924,1.1353567934503848,1.1361418336391371,1.136923943793521,1.1377031409160443,1.138479441872818,1.1392528633949734,1.140023422080062,1.140791134393433,1.1415560166695997,1.1423180851135828,1.1430773558022396,1.1438338446855754,1.1445875675880386,1.1453385402097982,1.1460867781280077,1.14683229679805,1.1475751115547688,1.1483152376136845,1.1490526900721938,1.1497874839107545,1.1505196339940569,1.1512491550721795,1.151976061781731,1.1527003686469768,1.1534220900809538,1.1541412403865703,1.1548578337576927,1.155571884280218,1.1562834059331362,1.1569924125895739,1.1576989180178336,1.158402935882412,1.1591044797450123,1.1598035630655406,1.1605001992030923,1.1611944014169258,1.1618861828674243,1.162575556617048,1.1632625356312718,1.1639471327795148,1.164629360836058,1.1653092324809498,1.1659867603009029,1.1666619567901781,1.1673348343514618,1.1680054052967284,1.1686736818480965,1.1693396761386725,1.1700034002133866,1.1706648660298171,1.1713240854590063,1.1719810702862683,1.1726358322119832,1.1732883828523877,1.173938733740352,1.1745868963261512,1.1752328819782256,1.175876701983934,1.1765183675502964,1.1771578898047315,1.1777952797957816,1.178430548493834,1.179063706791831,1.179694765505972,1.1803237353764102,1.1809506270679393,1.1815754511706729,1.1821982182007171,1.1828189386008354,1.1834376227411054,1.1840542809195695,1.184668923362877,1.1852815602269215,1.185892201597468,1.1865008574907758,1.1871075378542142,1.187712252566869,1.1883150114401475,1.1889158242183706,1.189514700579364,1.1901116501350395,1.1907066824319719,1.1912998069519682,1.1918910331126331,1.1924803702679243,1.1930678277087075,1.1936534146633,1.1942371402980116,1.19481901371768,1.195399043966198,1.1959772400270379,1.1965536108237687,1.1971281652205685,1.1977009120227309,1.1982718599771667,1.1988410177729012,1.1994083940415632,1.1999739973578727,1.200537836240121,1.2010999191506464,1.2016602544963064,1.2022188506289422,1.2027757158458405,1.2033308583901907,1.2038842864515362,1.2044360081662213,1.204986031617834,1.2055343648376444,1.2060810158050381,1.2066259924479454,1.207169302643266,1.2077109542172895,1.2082509549461122,1.208789312556049,1.2093260347240398,1.2098611290780563,1.210394603197499,1.2109264646135944,1.2114567208097862,1.2119853792221233,1.2125124472396445,1.2130379322047573,1.2135618414136153,1.2140841821164912,1.2146049615181447,1.2151241867781888,1.2156418650114509,1.2161580032883317,1.2166726086351591,1.2171856880345406,1.2176972484257094,1.2182072967048703,1.21871583972554,1.219222884298885,1.2197284371940562,1.2202325051385197,1.2207350948183853,1.2212362128787309,1.2217358659239244,1.2222340605179425,1.222730803184686,1.2232261004082925,1.2237199586334462,1.2242123842656836,1.2247033836716983,1.2251929631796412,1.2256811290794183,1.2261678876229862,1.2266532450246446,1.227137207461325,1.2276197810728786,1.22810097196236,1.2285807861963076,1.2290592298050251,1.2295363087828548,1.2300120290884535,1.230486396645062,1.2309594173407747],"x":[1.0,1.0040080160320641,1.0080160320641283,1.0120240480961924,1.0160320641282565,1.0200400801603207,1.0240480961923848,1.028056112224449,1.032064128256513,1.0360721442885772,1.0400801603206413,1.0440881763527055,1.0480961923847696,1.0521042084168337,1.0561122244488979,1.060120240480962,1.0641282565130261,1.0681362725450902,1.0721442885771544,1.0761523046092185,1.0801603206412826,1.0841683366733468,1.088176352705411,1.092184368737475,1.0961923847695392,1.1002004008016033,1.1042084168336674,1.1082164328657316,1.1122244488977955,1.1162324649298596,1.1202404809619237,1.1242484969939879,1.128256513026052,1.1322645290581161,1.1362725450901803,1.1402805611222444,1.1442885771543085,1.1482965931863727,1.1523046092184368,1.156312625250501,1.160320641282565,1.1643286573146292,1.1683366733466933,1.1723446893787575,1.1763527054108216,1.1803607214428857,1.1843687374749499,1.188376753507014,1.1923847695390781,1.1963927855711423,1.2004008016032064,1.2044088176352705,1.2084168336673347,1.2124248496993988,1.216432865731463,1.220440881763527,1.2244488977955912,1.2284569138276553,1.2324649298597194,1.2364729458917836,1.2404809619238477,1.2444889779559118,1.248496993987976,1.25250501002004,1.2565130260521042,1.2605210420841684,1.2645290581162325,1.2685370741482966,1.2725450901803608,1.276553106212425,1.280561122244489,1.2845691382765532,1.2885771543086173,1.2925851703406814,1.2965931863727456,1.3006012024048097,1.3046092184368738,1.308617234468938,1.312625250501002,1.3166332665330662,1.3206412825651304,1.3246492985971945,1.3286573146292586,1.3326653306613228,1.3366733466933867,1.3406813627254508,1.344689378757515,1.348697394789579,1.3527054108216432,1.3567134268537073,1.3607214428857715,1.3647294589178356,1.3687374749498997,1.3727454909819639,1.376753507014028,1.3807615230460921,1.3847695390781563,1.3887775551102204,1.3927855711422845,1.3967935871743486,1.4008016032064128,1.404809619238477,1.408817635270541,1.4128256513026052,1.4168336673346693,1.4208416833667334,1.4248496993987976,1.4288577154308617,1.4328657314629258,1.43687374749499,1.440881763527054,1.4448897795591182,1.4488977955911824,1.4529058116232465,1.4569138276553106,1.4609218436873748,1.464929859719439,1.468937875751503,1.4729458917835672,1.4769539078156313,1.4809619238476954,1.4849699398797596,1.4889779559118237,1.4929859719438878,1.496993987975952,1.501002004008016,1.5050100200400802,1.5090180360721444,1.5130260521042085,1.5170340681362726,1.5210420841683367,1.5250501002004009,1.529058116232465,1.5330661322645291,1.5370741482965933,1.5410821643286574,1.5450901803607215,1.5490981963927857,1.5531062124248498,1.5571142284569137,1.5611222444889779,1.565130260521042,1.5691382765531061,1.5731462925851702,1.5771543086172344,1.5811623246492985,1.5851703406813626,1.5891783567134268,1.593186372745491,1.597194388777555,1.6012024048096192,1.6052104208416833,1.6092184368737474,1.6132264529058116,1.6172344689378757,1.6212424849699398,1.625250501002004,1.629258517034068,1.6332665330661322,1.6372745490981964,1.6412825651302605,1.6452905811623246,1.6492985971943888,1.653306613226453,1.657314629258517,1.6613226452905812,1.6653306613226453,1.6693386773547094,1.6733466933867736,1.6773547094188377,1.6813627254509018,1.685370741482966,1.68937875751503,1.6933867735470942,1.6973947895791583,1.7014028056112225,1.7054108216432866,1.7094188376753507,1.7134268537074149,1.717434869739479,1.7214428857715431,1.7254509018036073,1.7294589178356714,1.7334669338677355,1.7374749498997997,1.7414829659318638,1.745490981963928,1.749498997995992,1.7535070140280562,1.7575150300601203,1.7615230460921845,1.7655310621242486,1.7695390781563127,1.7735470941883769,1.777555110220441,1.781563126252505,1.785571142284569,1.7895791583166332,1.7935871743486973,1.7975951903807614,1.8016032064128256,1.8056112224448897,1.8096192384769538,1.813627254509018,1.817635270541082,1.8216432865731462,1.8256513026052104,1.8296593186372745,1.8336673346693386,1.8376753507014028,1.8416833667334669,1.845691382765531,1.8496993987975952,1.8537074148296593,1.8577154308617234,1.8617234468937875,1.8657314629258517,1.8697394789579158,1.87374749498998,1.877755511022044,1.8817635270541082,1.8857715430861723,1.8897795591182365,1.8937875751503006,1.8977955911823647,1.9018036072144289,1.905811623246493,1.9098196392785571,1.9138276553106213,1.9178356713426854,1.9218436873747495,1.9258517034068137,1.9298597194388778,1.933867735470942,1.937875751503006,1.9418837675350702,1.9458917835671343,1.9498997995991985,1.9539078156312626,1.9579158316633267,1.9619238476953909,1.965931863727455,1.9699398797595191,1.9739478957915833,1.9779559118236474,1.9819639278557115,1.9859719438877756,1.9899799599198398,1.993987975951904,1.997995991983968,2.002004008016032,2.006012024048096,2.0100200400801604,2.0140280561122244,2.0180360721442887,2.0220440881763526,2.026052104208417,2.030060120240481,2.0340681362725452,2.038076152304609,2.0420841683366735,2.0460921843687374,2.0501002004008018,2.0541082164328657,2.05811623246493,2.062124248496994,2.0661322645290583,2.070140280561122,2.0741482965931866,2.0781563126252505,2.082164328657315,2.0861723446893787,2.090180360721443,2.094188376753507,2.0981963927855714,2.1022044088176353,2.1062124248496996,2.1102204408817635,2.1142284569138274,2.118236472945892,2.1222444889779557,2.12625250501002,2.130260521042084,2.1342685370741483,2.1382765531062122,2.1422845691382766,2.1462925851703405,2.150300601202405,2.1543086172344688,2.158316633266533,2.162324649298597,2.1663326653306614,2.1703406813627253,2.1743486973947896,2.1783567134268536,2.182364729458918,2.186372745490982,2.190380761523046,2.19438877755511,2.1983967935871744,2.2024048096192383,2.2064128256513027,2.2104208416833666,2.214428857715431,2.218436873747495,2.2224448897795592,2.226452905811623,2.2304609218436875,2.2344689378757514,2.2384769539078158,2.2424849699398797,2.246492985971944,2.250501002004008,2.2545090180360723,2.258517034068136,2.2625250501002006,2.2665330661322645,2.270541082164329,2.2745490981963927,2.278557114228457,2.282565130260521,2.2865731462925853,2.2905811623246493,2.2945891783567136,2.2985971943887775,2.302605210420842,2.306613226452906,2.31062124248497,2.314629258517034,2.3186372745490984,2.3226452905811623,2.3266533066132267,2.3306613226452906,2.3346693386773545,2.338677354709419,2.3426853707414828,2.346693386773547,2.350701402805611,2.3547094188376754,2.3587174348697393,2.3627254509018036,2.3667334669338675,2.370741482965932,2.374749498997996,2.37875751503006,2.382765531062124,2.3867735470941884,2.3907815631262523,2.3947895791583167,2.3987975951903806,2.402805611222445,2.406813627254509,2.4108216432865732,2.414829659318637,2.4188376753507015,2.4228456913827654,2.4268537074148298,2.4308617234468937,2.434869739478958,2.438877755511022,2.4428857715430863,2.44689378757515,2.4509018036072145,2.4549098196392785,2.458917835671343,2.4629258517034067,2.466933867735471,2.470941883767535,2.4749498997995993,2.4789579158316633,2.4829659318637276,2.4869739478957915,2.490981963927856,2.49498997995992,2.498997995991984,2.503006012024048,2.5070140280561124,2.5110220440881763,2.5150300601202407,2.5190380761523046,2.523046092184369,2.527054108216433,2.531062124248497,2.535070140280561,2.5390781563126255,2.5430861723446894,2.5470941883767537,2.5511022044088176,2.555110220440882,2.559118236472946,2.56312625250501,2.567134268537074,2.571142284569138,2.5751503006012024,2.5791583166332663,2.5831663326653307,2.5871743486973946,2.591182364729459,2.595190380761523,2.599198396793587,2.603206412825651,2.6072144288577155,2.6112224448897794,2.6152304609218437,2.6192384769539077,2.623246492985972,2.627254509018036,2.6312625250501003,2.635270541082164,2.6392785571142285,2.6432865731462925,2.647294589178357,2.6513026052104207,2.655310621242485,2.659318637274549,2.6633266533066133,2.6673346693386772,2.6713426853707416,2.6753507014028055,2.67935871743487,2.6833667334669338,2.687374749498998,2.691382765531062,2.6953907815631264,2.6993987975951903,2.7034068136272547,2.7074148296593186,2.711422845691383,2.715430861723447,2.719438877755511,2.723446893787575,2.7274549098196395,2.7314629258517034,2.7354709418837677,2.7394789579158316,2.743486973947896,2.74749498997996,2.7515030060120242,2.755511022044088,2.7595190380761525,2.7635270541082164,2.7675350701402808,2.7715430861723447,2.775551102204409,2.779559118236473,2.783567134268537,2.787575150300601,2.791583166332665,2.7955911823647295,2.7995991983967934,2.8036072144288577,2.8076152304609217,2.811623246492986,2.81563126252505,2.8196392785571143,2.823647294589178,2.8276553106212425,2.8316633266533064,2.835671342685371,2.8396793587174347,2.843687374749499,2.847695390781563,2.8517034068136273,2.8557114228456912,2.8597194388777556,2.8637274549098195,2.867735470941884,2.8717434869739478,2.875751503006012,2.879759519038076,2.8837675350701404,2.8877755511022043,2.8917835671342687,2.8957915831663326,2.899799599198397,2.903807615230461,2.907815631262525,2.911823647294589,2.9158316633266534,2.9198396793587174,2.9238476953907817,2.9278557114228456,2.93186372745491,2.935871743486974,2.9398797595190382,2.943887775551102,2.9478957915831665,2.9519038076152304,2.9559118236472948,2.9599198396793587,2.963927855711423,2.967935871743487,2.9719438877755513,2.975951903807615,2.9799599198396796,2.9839679358717435,2.987975951903808,2.9919839679358717,2.995991983967936,3.0]} \ No newline at end of file diff --git a/base/special/asecf/test/fixtures/julia/runner.jl b/base/special/asecf/test/fixtures/julia/runner.jl new file mode 100644 index 000000000..8a0500c5e --- /dev/null +++ b/base/special/asecf/test/fixtures/julia/runner.jl @@ -0,0 +1,93 @@ +#!/usr/bin/env julia +# +# @license Apache-2.0 +# +# Copyright (c) 2024 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import JSON + +""" + gen( domain, name ) + +Generate fixture data and write to file. + +# Arguments + +* `domain`: domain +* `name::AbstractString`: output filename + +# Examples + +``` julia +julia> x = range( -1000, stop = 1000, length = 2022 ); +julia> gen( x, \"data.json\" ); +``` +""" +function gen( domain, name ) + x = collect( domain ); + y = asec.( x ); + + # Store data to be written to file as a collection: + data = Dict([ + ("x", x), + ("expected", y) + ]); + + # Based on the script directory, create an output filepath: + filepath = joinpath( dir, name ); + + # Write the data to the output filepath as JSON: + outfile = open( filepath, "w" ); + write( outfile, JSON.json(data) ); + close( outfile ); +end + +# Get the filename: +file = @__FILE__; + +# Extract the directory in which this file resides: +dir = dirname( file ); + +# Negative medium values: +x = range( -1.0, stop = -3.0, length = 500 ); +gen( x, "medium_negative.json" ); + +# Positive medium values: +x = range( 1.0, stop = 3.0, length = 500 ); +gen( x, "medium_positive.json" ); + +# Large negative values: +x = range( -3.0, stop = -100.0, length = 500 ); +gen( x, "large_negative.json" ); + +# Large positive values: +x = range( 3.0, stop = 100.0, length = 500 ); +gen( x, "large_positive.json" ); + +# Larger negative values: +x = range( -100.0, stop = -1000.0, length = 500 ); +gen( x, "larger_negative.json" ); + +# Larger positive values: +x = range( 100.0, stop = 1000.0, length = 500 ); +gen( x, "larger_positive.json" ); + +# Huge negative values: +x = range( -1e20, stop = -1e28, length = 503 ); +gen( x, "huge_negative.json" ); + +# Huge positive values: +x = range( 1e30, stop = 1e38, length = 503 ); +gen( x, "huge_positive.json" ); diff --git a/base/special/asecf/test/test.js b/base/special/asecf/test/test.js new file mode 100644 index 000000000..3673bb061 --- /dev/null +++ b/base/special/asecf/test/test.js @@ -0,0 +1,284 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isnanf = require( './../../../../base/assert/is-nanf' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var abs = require( './../../../../base/special/abs' ); +var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var asecf = require( './../lib' ); + + +// FIXTURES // + +var largerNegative = require( './fixtures/julia/larger_negative.json' ); +var largerPositive = require( './fixtures/julia/larger_positive.json' ); +var largeNegative = require( './fixtures/julia/large_negative.json' ); +var largePositive = require( './fixtures/julia/large_positive.json' ); +var mediumNegative = require( './fixtures/julia/medium_negative.json' ); +var mediumPositive = require( './fixtures/julia/medium_positive.json' ); +var hugeNegative = require( './fixtures/julia/huge_negative.json' ); +var hugePositive = require( './fixtures/julia/huge_positive.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.true( typeof asecf, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[-3.0,-1.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumNegative.x; + expected = mediumNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[1.0,3.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumPositive.x; + expected = mediumPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 68.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[3.0,100.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largePositive.x; + expected = largePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[-100.0,-3.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largeNegative.x; + expected = largeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[100.0,1000.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerPositive.x; + expected = largerPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[-1000.0,-100.0]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerNegative.x; + expected = largerNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[-1e20,-1e28]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugeNegative.x; + expected = hugeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[1e30,1e38]`', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugePositive.x; + expected = hugePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', function test( t ) { + var v = asecf( NaN ); + t.equal( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided `+0`', function test( t ) { + var v = asecf( 0.0 ); + t.equal( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided `-0`', function test( t ) { + var v = asecf( -0.0 ); + t.equal( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` on the interval `(-1, 1)`', function test( t ) { + var v = asecf( 0.5 ); + var w = asecf( -0.5 ); + + t.equal( isnanf( v ), true, 'returns expected value' ); + t.equal( isnanf( w ), true, 'returns expected value' ); + t.end(); +}); diff --git a/base/special/asecf/test/test.native.js b/base/special/asecf/test/test.native.js new file mode 100644 index 000000000..6b741d028 --- /dev/null +++ b/base/special/asecf/test/test.native.js @@ -0,0 +1,293 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var tape = require( 'tape' ); +var isnanf = require( './../../../../base/assert/is-nanf' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var abs = require( './../../../../base/special/abs' ); +var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32'); +var tryRequire = require( '@stdlib/utils/try-require' ); + + +// VARIABLES // + +var asecf = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( asecf instanceof Error ) +}; + + +// FIXTURES // + +var largerNegative = require( './fixtures/julia/larger_negative.json' ); +var largerPositive = require( './fixtures/julia/larger_positive.json' ); +var largeNegative = require( './fixtures/julia/large_negative.json' ); +var largePositive = require( './fixtures/julia/large_positive.json' ); +var mediumNegative = require( './fixtures/julia/medium_negative.json' ); +var mediumPositive = require( './fixtures/julia/medium_positive.json' ); +var hugeNegative = require( './fixtures/julia/huge_negative.json' ); +var hugePositive = require( './fixtures/julia/huge_positive.json' ); + + +// TESTS // + +tape( 'main export is a function', opts, function test( t ) { + t.ok( true, __filename ); + t.true( typeof asecf, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[-3.0,-1.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumNegative.x; + expected = mediumNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 2.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[1.0,3.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = mediumPositive.x; + expected = mediumPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 68.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[3.0,100.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largePositive.x; + expected = largePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[-100.0,-3.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largeNegative.x; + expected = largeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[100.0,1000.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerPositive.x; + expected = largerPositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[-1000.0,-100.0]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = largerNegative.x; + expected = largerNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[-1e20,-1e28]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugeNegative.x; + expected = hugeNegative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the inverse (arc) secant on the interval `[1e30,1e38]`', opts, function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + var e; + + x = hugePositive.x; + expected = hugePositive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = asecf( x[i] ); + e = float64ToFloat32( expected[ i ] ); + if ( y === e ) { + t.equal( y, e, 'x: '+x[i]+'. E: '+e ); + } else { + delta = abs( y - e ); + tol = 1.0 * EPS * abs( e ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) { + var v = asecf( NaN ); + t.equal( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided `+0`', opts, function test( t ) { + var v = asecf( 0.0 ); + t.equal( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` if provided `-0`', opts, function test( t ) { + var v = asecf( -0.0 ); + t.equal( isnanf( v ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns `NaN` on the interval `(-1, 1)`', opts, function test( t ) { + var v = asecf( 0.5 ); + var w = asecf( -0.5 ); + + t.equal( isnanf( v ), true, 'returns expected value' ); + t.equal( isnanf( w ), true, 'returns expected value' ); + t.end(); +});