From 298c8909c022cac4723d13f37de5634e5c804896 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 10 Jun 2024 19:13:45 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 1 + base/special/lnf/lib/main.js | 24 ++++++++----------- base/special/lnf/manifest.json | 3 --- base/special/lnf/src/main.c | 7 +++--- .../special/lnf/test/fixtures/julia/runner.jl | 2 +- .../lnf/test/fixtures/julia/subnormal.json | 2 +- base/special/lnf/test/test.js | 6 ++--- base/special/lnf/test/test.native.js | 6 ++--- 8 files changed, 22 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b1d6afea..a62b450c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4464,6 +4464,7 @@ A total of 26 people contributed to this release. Thank you to the following con
+- [`fb04f19`](https://github.com/stdlib-js/stdlib/commit/fb04f1968006f8bee36735f9b71d857f478bb6c1) - **refactor:** reduce test tolerance and fix casting [(#2356)](https://github.com/stdlib-js/stdlib/pull/2356) _(by Gunj Joshi)_ - [`ced30b0`](https://github.com/stdlib-js/stdlib/commit/ced30b0e285117ad5bcdf6cc940329aadc826e21) - **refactor:** use constant packages and remove unused include [(#2355)](https://github.com/stdlib-js/stdlib/pull/2355) _(by Gunj Joshi)_ - [`343da6f`](https://github.com/stdlib-js/stdlib/commit/343da6faa466294331be4befd603fde2faa83503) - **feat:** add C implementation for `math/base/special/cos` _(by Gunj Joshi, Philipp Burckhardt)_ - [`a985cc2`](https://github.com/stdlib-js/stdlib/commit/a985cc224aa74759783c5c4d9577769a36ed818f) - **feat:** add `math/base/special/nanmin` _(by Ridam Garg, RidamGarg, stdlib-bot, Philipp Burckhardt)_ diff --git a/base/special/lnf/lib/main.js b/base/special/lnf/lib/main.js index 8ab55f1ec..13c0c0c63 100644 --- a/base/special/lnf/lib/main.js +++ b/base/special/lnf/lib/main.js @@ -36,7 +36,7 @@ var toWordf = require( '@stdlib/number/float32/base/to-word' ); var fromWordf = require( '@stdlib/number/float32/base/from-word' ); -var isnan = require( './../../../../base/assert/is-nan' ); +var isnanf = require( './../../../../base/assert/is-nanf' ); var NINF = require( '@stdlib/constants/float32/ninf' ); var FLOAT32_EXPONENT_MASK = require( '@stdlib/constants/float32/exponent-mask' ); var FLOAT32_EXPONENT_BIAS = require( '@stdlib/constants/float32/exponent-bias' ); @@ -87,7 +87,6 @@ function lnf( x ) { var ix; var t2; var t1; - var dk; var k; var R; var f; @@ -100,7 +99,7 @@ function lnf( x ) { if ( x === 0.0 ) { return NINF; } - if ( isnan( x ) || x < 0.0 ) { + if ( isnanf( x ) || x < 0.0 ) { return NaN; } x = float64ToFloat32( x ); @@ -109,7 +108,7 @@ function lnf( x ) { // x < 2**-126 if ( ix < 0x00800000 ) { - k = float64ToFloat32( k - 25 ); + k -= 25; // Subnormal number, scale up x x = float64ToFloat32( x * TWO25 ); @@ -120,7 +119,7 @@ function lnf( x ) { } k = float64ToFloat32( k + float64ToFloat32( ( ix >> 23 ) - FLOAT32_EXPONENT_BIAS ) ); // eslint-disable-line max-len ix &= FLOAT32_SIGNIFICAND_MASK; - i = float64ToFloat32( ix + ( 0x95f64 << 3 ) ) & 0x800000; + i = ( ix + ( 0x95f64 << 3 ) ) & 0x800000; // Normalize x or x/2 x = fromWordf( ix | ( i ^ 0x3f800000 ) ); @@ -133,22 +132,19 @@ function lnf( x ) { if ( k === 0 ) { return 0.0; } - dk = k; - return float64ToFloat32( float64ToFloat32( dk * LN2_HI ) + float64ToFloat32( dk * LN2_LO ) ); // eslint-disable-line max-len + return float64ToFloat32( float64ToFloat32( k * LN2_HI ) + float64ToFloat32( k * LN2_LO ) ); // eslint-disable-line max-len } R = float64ToFloat32( float64ToFloat32( f * f ) * float64ToFloat32( 0.5 - float64ToFloat32( ONE_THIRD * f ) ) ); // eslint-disable-line max-len if ( k === 0 ) { return float64ToFloat32( f - R ); } - dk = k; - return float64ToFloat32( float64ToFloat32( dk * LN2_HI ) - float64ToFloat32( float64ToFloat32( R - float64ToFloat32( dk * LN2_LO ) ) - f ) ); // eslint-disable-line max-len + return float64ToFloat32( float64ToFloat32( k * LN2_HI ) - float64ToFloat32( float64ToFloat32( R - float64ToFloat32( k * LN2_LO ) ) - f ) ); // eslint-disable-line max-len } s = float64ToFloat32( f / float64ToFloat32( 2.0 + f ) ); - dk = k; z = float64ToFloat32( s * s ); - i = float64ToFloat32( ix - ( 0x6147a << 3 ) ); + i = ix - ( 0x6147a << 3 ); w = float64ToFloat32( z * z ); - j = float64ToFloat32( ( 0x6b851 << 3 ) - ix ); + j = ( 0x6b851 << 3 ) - ix; t1 = float64ToFloat32( w * float64ToFloat32( polyvalP( w ) ) ); t2 = float64ToFloat32( z * float64ToFloat32( polyvalQ( w ) ) ); i |= j; @@ -158,12 +154,12 @@ function lnf( x ) { if ( k === 0 ) { return float64ToFloat32( f - float64ToFloat32( hfsq - float64ToFloat32( s * float64ToFloat32( hfsq + R ) ) ) ); // eslint-disable-line max-len } - return float64ToFloat32( float64ToFloat32( dk * LN2_HI ) - float64ToFloat32( float64ToFloat32( hfsq - float64ToFloat32( ( s * float64ToFloat32( hfsq + R ) ) + float64ToFloat32( dk * LN2_LO ) ) ) - f ) ); // eslint-disable-line max-len + return float64ToFloat32( float64ToFloat32( k * LN2_HI ) - float64ToFloat32( float64ToFloat32( hfsq - float64ToFloat32( ( s * float64ToFloat32( hfsq + R ) ) + float64ToFloat32( k * LN2_LO ) ) ) - f ) ); // eslint-disable-line max-len } if ( k === 0 ) { return float64ToFloat32( f - float64ToFloat32( s * float64ToFloat32( f - R ) ) ); // eslint-disable-line max-len } - return float64ToFloat32( float64ToFloat32( dk * LN2_HI ) - float64ToFloat32( float64ToFloat32( float64ToFloat32( s * float64ToFloat32( f - R ) ) - float64ToFloat32( dk * LN2_LO ) ) - f ) ); // eslint-disable-line max-len + return float64ToFloat32( float64ToFloat32( k * LN2_HI ) - float64ToFloat32( float64ToFloat32( float64ToFloat32( s * float64ToFloat32( f - R ) ) - float64ToFloat32( k * LN2_LO ) ) - f ) ); // eslint-disable-line max-len } diff --git a/base/special/lnf/manifest.json b/base/special/lnf/manifest.json index c4694b703..fb2eb8b52 100644 --- a/base/special/lnf/manifest.json +++ b/base/special/lnf/manifest.json @@ -39,7 +39,6 @@ "@stdlib/math/base/napi/unary", "@stdlib/number/float32/base/to-word", "@stdlib/number/float32/base/from-word", - "@stdlib/math/base/assert/is-nan", "@stdlib/constants/float32/ninf", "@stdlib/constants/float32/exponent-bias", "@stdlib/constants/float32/exponent-mask", @@ -60,7 +59,6 @@ "dependencies": [ "@stdlib/number/float32/base/to-word", "@stdlib/number/float32/base/from-word", - "@stdlib/math/base/assert/is-nan", "@stdlib/constants/float32/ninf", "@stdlib/constants/float32/exponent-bias", "@stdlib/constants/float32/exponent-mask", @@ -81,7 +79,6 @@ "dependencies": [ "@stdlib/number/float32/base/to-word", "@stdlib/number/float32/base/from-word", - "@stdlib/math/base/assert/is-nan", "@stdlib/constants/float32/ninf", "@stdlib/constants/float32/exponent-bias", "@stdlib/constants/float32/exponent-mask", diff --git a/base/special/lnf/src/main.c b/base/special/lnf/src/main.c index 2ea0ef5ba..dcf5808c6 100644 --- a/base/special/lnf/src/main.c +++ b/base/special/lnf/src/main.c @@ -32,7 +32,6 @@ #include "stdlib/math/base/special/lnf.h" #include "stdlib/number/float32/base/to_word.h" #include "stdlib/number/float32/base/from_word.h" -#include "stdlib/math/base/assert/is_nan.h" #include "stdlib/constants/float32/ninf.h" #include "stdlib/constants/float32/exponent_bias.h" #include "stdlib/constants/float32/exponent_mask.h" @@ -152,18 +151,18 @@ float stdlib_base_lnf( const float x ) { if ( k == 0 ) { return 0.0f; } - dk = k; + dk = (float)k; return ( ( dk * LN2_HI ) + ( dk * LN2_LO ) ); } R = ( ( f * f ) * ( 0.5f - ( ONE_THIRD * f ) ) ); if ( k == 0 ) { return ( f - R ); } - dk = k; + dk = (float)k; return ( ( dk * LN2_HI ) - ( ( R - ( dk * LN2_LO ) ) - f ) ); } s = ( f / ( 2.0f + f ) ); - dk = k; + dk = (float)k; z = ( s * s ); i = ( ix - ( 0x6147a << 3 ) ); w = ( z * z ); diff --git a/base/special/lnf/test/fixtures/julia/runner.jl b/base/special/lnf/test/fixtures/julia/runner.jl index 4f4966772..167f66230 100644 --- a/base/special/lnf/test/fixtures/julia/runner.jl +++ b/base/special/lnf/test/fixtures/julia/runner.jl @@ -59,7 +59,7 @@ file = @__FILE__; dir = dirname( file ); # Subnormal values: -x = range( 1.0e-39, stop = 1.4e-45, length = 500 ); +x = range( 1.0e-39, stop = 1.40129846e-45, length = 500 ); out = joinpath( dir, "subnormal.json" ); gen( x, out ); diff --git a/base/special/lnf/test/fixtures/julia/subnormal.json b/base/special/lnf/test/fixtures/julia/subnormal.json index f59aa6835..499cdebd3 100644 --- a/base/special/lnf/test/fixtures/julia/subnormal.json +++ b/base/special/lnf/test/fixtures/julia/subnormal.json @@ -1 +1 @@ -{"expected":[-89.80082,-89.802826,-89.80483,-89.80685,-89.80887,-89.81089,-89.81291,-89.81495,-89.81698,-89.819016,-89.82106,-89.82311,-89.82516,-89.82722,-89.82928,-89.83134,-89.833405,-89.83548,-89.837555,-89.83964,-89.84172,-89.84381,-89.84591,-89.84801,-89.85011,-89.85222,-89.85433,-89.856445,-89.85857,-89.860695,-89.86282,-89.86496,-89.867096,-89.86924,-89.87138,-89.87354,-89.875694,-89.87786,-89.88003,-89.882195,-89.88438,-89.88656,-89.88874,-89.89093,-89.89313,-89.895325,-89.89753,-89.89974,-89.901955,-89.904175,-89.9064,-89.90863,-89.910866,-89.91311,-89.91535,-89.9176,-89.91985,-89.92211,-89.92438,-89.92665,-89.928925,-89.931206,-89.933495,-89.93578,-89.93808,-89.94038,-89.94269,-89.945,-89.94732,-89.94964,-89.951965,-89.9543,-89.95664,-89.958984,-89.961334,-89.96369,-89.96605,-89.96842,-89.970795,-89.97317,-89.975555,-89.97794,-89.98034,-89.98274,-89.985146,-89.98756,-89.989975,-89.9924,-89.994835,-89.99727,-89.99971,-90.00216,-90.00461,-90.00707,-90.00954,-90.01201,-90.01449,-90.016975,-90.01946,-90.02196,-90.02446,-90.02697,-90.02949,-90.03201,-90.03454,-90.03707,-90.03961,-90.04216,-90.044716,-90.04728,-90.04984,-90.05242,-90.055,-90.05759,-90.06018,-90.06278,-90.06539,-90.068,-90.070625,-90.07325,-90.07589,-90.07853,-90.08118,-90.08383,-90.086494,-90.089165,-90.09184,-90.09453,-90.09722,-90.09992,-90.10263,-90.10534,-90.10806,-90.110794,-90.113525,-90.11627,-90.11902,-90.12178,-90.12455,-90.12732,-90.130104,-90.13289,-90.13569,-90.1385,-90.141304,-90.14413,-90.14696,-90.149796,-90.15264,-90.155495,-90.158356,-90.161224,-90.1641,-90.166985,-90.169876,-90.17278,-90.1757,-90.17861,-90.18154,-90.18448,-90.18742,-90.19038,-90.193344,-90.19631,-90.199295,-90.202286,-90.205284,-90.20829,-90.2113,-90.21433,-90.21737,-90.22041,-90.223465,-90.226524,-90.2296,-90.23268,-90.23577,-90.23887,-90.24198,-90.2451,-90.24823,-90.25137,-90.254524,-90.25768,-90.26085,-90.26403,-90.26722,-90.270424,-90.27363,-90.27685,-90.28008,-90.283325,-90.286575,-90.28984,-90.29311,-90.296394,-90.29969,-90.30299,-90.30631,-90.30964,-90.31298,-90.31633,-90.319695,-90.32307,-90.32645,-90.32984,-90.33325,-90.33667,-90.3401,-90.343544,-90.347,-90.350464,-90.35394,-90.35743,-90.36093,-90.36445,-90.36797,-90.37151,-90.37507,-90.37863,-90.38221,-90.3858,-90.389404,-90.39302,-90.39665,-90.4003,-90.40395,-90.40762,-90.41131,-90.415,-90.41871,-90.42244,-90.42618,-90.429924,-90.43369,-90.43748,-90.44127,-90.445076,-90.448906,-90.45274,-90.4566,-90.460464,-90.46435,-90.46825,-90.47216,-90.47609,-90.480034,-90.48399,-90.48797,-90.49196,-90.49597,-90.49999,-90.504036,-90.508095,-90.51216,-90.51626,-90.52036,-90.52448,-90.528625,-90.53278,-90.53696,-90.54115,-90.545364,-90.54959,-90.55384,-90.558105,-90.562386,-90.56669,-90.57101,-90.57534,-90.579704,-90.584076,-90.58847,-90.59289,-90.59732,-90.601776,-90.606255,-90.61075,-90.61526,-90.6198,-90.62435,-90.62893,-90.63352,-90.638145,-90.642784,-90.647446,-90.65213,-90.65684,-90.66157,-90.66631,-90.67109,-90.67589,-90.6807,-90.68555,-90.690414,-90.695305,-90.70022,-90.705154,-90.71012,-90.7151,-90.720116,-90.72516,-90.73022,-90.735306,-90.740425,-90.74557,-90.75073,-90.75593,-90.76115,-90.766396,-90.771675,-90.77698,-90.78231,-90.787674,-90.79307,-90.798485,-90.80394,-90.80942,-90.814926,-90.820465,-90.826035,-90.83164,-90.83727,-90.84294,-90.84863,-90.85437,-90.86013,-90.86593,-90.87176,-90.877625,-90.88352,-90.88946,-90.89543,-90.901436,-90.90748,-90.91356,-90.91967,-90.92583,-90.932014,-90.93825,-90.94452,-90.95083,-90.95718,-90.96356,-90.96999,-90.97647,-90.98299,-90.98954,-90.99614,-91.002785,-91.009476,-91.01621,-91.02299,-91.029816,-91.03669,-91.04361,-91.050575,-91.057594,-91.06466,-91.07178,-91.07895,-91.08617,-91.09344,-91.10077,-91.10815,-91.11558,-91.12307,-91.130615,-91.13822,-91.14589,-91.15361,-91.16139,-91.169235,-91.17714,-91.185104,-91.19314,-91.20123,-91.2094,-91.21763,-91.22593,-91.2343,-91.24274,-91.25124,-91.25983,-91.268486,-91.27722,-91.28603,-91.29492,-91.30389,-91.31294,-91.322075,-91.33129,-91.34059,-91.34998,-91.35946,-91.369026,-91.37869,-91.38844,-91.3983,-91.40825,-91.4183,-91.42845,-91.438705,-91.44907,-91.45954,-91.47012,-91.48082,-91.49163,-91.502556,-91.51361,-91.52478,-91.53608,-91.54751,-91.559074,-91.57077,-91.5826,-91.594574,-91.6067,-91.618965,-91.63139,-91.64397,-91.65671,-91.66961,-91.682686,-91.69593,-91.70935,-91.72295,-91.73675,-91.75074,-91.76492,-91.77931,-91.79391,-91.80872,-91.82376,-91.83903,-91.85453,-91.87028,-91.886284,-91.90254,-91.91907,-91.935875,-91.95297,-91.97036,-91.98806,-92.00608,-92.02443,-92.04312,-92.06217,-92.08159,-92.10139,-92.12159,-92.14221,-92.16326,-92.18477,-92.20675,-92.22922,-92.25221,-92.27574,-92.299835,-92.32453,-92.349846,-92.375824,-92.40249,-92.429886,-92.45806,-92.487045,-92.5169,-92.54767,-92.579414,-92.612206,-92.6461,-92.6812,-92.71756,-92.7553,-92.794525,-92.83534,-92.8779,-92.922356,-92.96887,-93.01766,-93.06895,-93.12302,-93.18017,-93.24079,-93.30533,-93.37432,-93.448425,-93.52846,-93.61547,-93.71077,-93.816124,-93.9339,-94.06741,-94.22155,-94.40385,-94.62696,-94.91458,-95.31993,-96.012726,-103.279854],"x":[1.0e-39,9.97995994789579e-40,9.959919895791582e-40,9.939879843687375e-40,9.919839791583166e-40,9.899799739478957e-40,9.879759687374748e-40,9.85971963527054e-40,9.839679583166332e-40,9.819639531062124e-40,9.799599478957915e-40,9.779559426853706e-40,9.759519374749499e-40,9.73947932264529e-40,9.719439270541082e-40,9.699399218436873e-40,9.679359166332664e-40,9.659319114228457e-40,9.639279062124248e-40,9.61923901002004e-40,9.59919895791583e-40,9.579158905811622e-40,9.559118853707415e-40,9.539078801603206e-40,9.519038749498997e-40,9.498998697394788e-40,9.478958645290581e-40,9.458918593186373e-40,9.438878541082164e-40,9.418838488977955e-40,9.398798436873746e-40,9.378758384769539e-40,9.35871833266533e-40,9.338678280561122e-40,9.318638228456913e-40,9.298598176352704e-40,9.278558124248497e-40,9.258518072144288e-40,9.23847802004008e-40,9.21843796793587e-40,9.198397915831662e-40,9.178357863727455e-40,9.158317811623246e-40,9.138277759519037e-40,9.118237707414828e-40,9.098197655310621e-40,9.078157603206413e-40,9.058117551102204e-40,9.038077498997995e-40,9.018037446893786e-40,8.997997394789579e-40,8.97795734268537e-40,8.957917290581162e-40,8.937877238476953e-40,8.917837186372744e-40,8.897797134268537e-40,8.877757082164328e-40,8.85771703006012e-40,8.83767697795591e-40,8.817636925851704e-40,8.797596873747495e-40,8.777556821643286e-40,8.757516769539077e-40,8.737476717434869e-40,8.717436665330661e-40,8.697396613226453e-40,8.677356561122244e-40,8.657316509018035e-40,8.637276456913826e-40,8.61723640480962e-40,8.59719635270541e-40,8.577156300601202e-40,8.557116248496993e-40,8.537076196392784e-40,8.517036144288577e-40,8.496996092184368e-40,8.47695604008016e-40,8.45691598797595e-40,8.436875935871744e-40,8.416835883767535e-40,8.396795831663326e-40,8.376755779559117e-40,8.356715727454909e-40,8.336675675350701e-40,8.316635623246493e-40,8.296595571142284e-40,8.276555519038075e-40,8.256515466933866e-40,8.23647541482966e-40,8.21643536272545e-40,8.196395310621242e-40,8.176355258517033e-40,8.156315206412826e-40,8.136275154308617e-40,8.116235102204408e-40,8.0961950501002e-40,8.076154997995991e-40,8.056114945891784e-40,8.036074893787575e-40,8.016034841683366e-40,7.995994789579157e-40,7.975954737474949e-40,7.955914685370742e-40,7.935874633266533e-40,7.915834581162324e-40,7.895794529058115e-40,7.875754476953906e-40,7.8557144248497e-40,7.83567437274549e-40,7.815634320641282e-40,7.795594268537073e-40,7.775554216432866e-40,7.755514164328657e-40,7.735474112224448e-40,7.71543406012024e-40,7.695394008016031e-40,7.675353955911824e-40,7.655313903807615e-40,7.635273851703406e-40,7.615233799599197e-40,7.595193747494989e-40,7.575153695390782e-40,7.555113643286573e-40,7.535073591182364e-40,7.515033539078155e-40,7.494993486973948e-40,7.47495343486974e-40,7.45491338276553e-40,7.434873330661322e-40,7.414833278557113e-40,7.394793226452906e-40,7.374753174348697e-40,7.354713122244488e-40,7.33467307014028e-40,7.314633018036072e-40,7.294592965931863e-40,7.274552913827655e-40,7.254512861723446e-40,7.234472809619238e-40,7.2144327575150296e-40,7.194392705410821e-40,7.174352653306613e-40,7.154312601202404e-40,7.134272549098196e-40,7.114232496993987e-40,7.0941924448897795e-40,7.074152392785571e-40,7.054112340681362e-40,7.034072288577154e-40,7.014032236472945e-40,6.993992184368737e-40,6.9739521322645285e-40,6.95391208016032e-40,6.933872028056112e-40,6.913831975951903e-40,6.893791923847695e-40,6.873751871743486e-40,6.853711819639278e-40,6.83367176753507e-40,6.813631715430861e-40,6.793591663326653e-40,6.773551611222444e-40,6.753511559118236e-40,6.7334715070140275e-40,6.7134314549098195e-40,6.693391402805611e-40,6.673351350701402e-40,6.653311298597194e-40,6.633271246492985e-40,6.613231194388777e-40,6.5931911422845686e-40,6.573151090180361e-40,6.553111038076152e-40,6.533070985971943e-40,6.513030933867735e-40,6.492990881763526e-40,6.4729508296593185e-40,6.45291077755511e-40,6.432870725450902e-40,6.412830673346693e-40,6.392790621242484e-40,6.372750569138276e-40,6.3527105170340675e-40,6.3326704649298596e-40,6.312630412825651e-40,6.292590360721442e-40,6.272550308617234e-40,6.252510256513025e-40,6.232470204408817e-40,6.212430152304609e-40,6.192390100200401e-40,6.172350048096192e-40,6.152309995991983e-40,6.132269943887775e-40,6.1122298917835665e-40,6.0921898396793585e-40,6.07214978757515e-40,6.052109735470942e-40,6.032069683366733e-40,6.012029631262524e-40,5.991989579158316e-40,5.9719495270541076e-40,5.9519094749499e-40,5.931869422845691e-40,5.911829370741483e-40,5.891789318637274e-40,5.871749266533065e-40,5.8517092144288574e-40,5.831669162324649e-40,5.811629110220441e-40,5.791589058116232e-40,5.771549006012024e-40,5.751508953907815e-40,5.7314689018036065e-40,5.7114288496993986e-40,5.69138879759519e-40,5.671348745490982e-40,5.651308693386773e-40,5.631268641282564e-40,5.611228589178356e-40,5.591188537074148e-40,5.57114848496994e-40,5.551108432865731e-40,5.531068380761523e-40,5.511028328657314e-40,5.4909882765531055e-40,5.4709482244488975e-40,5.450908172344689e-40,5.430868120240481e-40,5.410828068136272e-40,5.390788016032064e-40,5.370747963927855e-40,5.3507079118236466e-40,5.330667859719439e-40,5.31062780761523e-40,5.290587755511022e-40,5.270547703406813e-40,5.250507651302605e-40,5.2304675991983964e-40,5.210427547094188e-40,5.19038749498998e-40,5.170347442885771e-40,5.150307390781563e-40,5.130267338677354e-40,5.110227286573146e-40,5.0901872344689376e-40,5.070147182364729e-40,5.050107130260521e-40,5.030067078156312e-40,5.010027026052104e-40,4.989986973947895e-40,4.969946921843687e-40,4.949906869739479e-40,4.92986681763527e-40,4.909826765531062e-40,4.889786713426853e-40,4.869746661322645e-40,4.8497066092184365e-40,4.829666557114228e-40,4.80962650501002e-40,4.789586452905811e-40,4.769546400801603e-40,4.749506348697394e-40,4.729466296593186e-40,4.709426244488978e-40,4.689386192384769e-40,4.669346140280561e-40,4.649306088176352e-40,4.629266036072144e-40,4.6092259839679354e-40,4.5891859318637275e-40,4.569145879759519e-40,4.54910582765531e-40,4.529065775551102e-40,4.509025723446893e-40,4.488985671342685e-40,4.4689456192384766e-40,4.448905567134269e-40,4.42886551503006e-40,4.408825462925851e-40,4.388785410821643e-40,4.368745358717434e-40,4.3487053066132264e-40,4.328665254509018e-40,4.308625202404809e-40,4.288585150300601e-40,4.268545098196392e-40,4.248505046092184e-40,4.2284649939879755e-40,4.2084249418837676e-40,4.188384889779559e-40,4.16834483767535e-40,4.148304785571142e-40,4.128264733466933e-40,4.108224681362725e-40,4.088184629258517e-40,4.068144577154309e-40,4.0481045250501e-40,4.028064472945891e-40,4.008024420841683e-40,3.9879843687374744e-40,3.9679443166332665e-40,3.947904264529058e-40,3.92786421242485e-40,3.907824160320641e-40,3.887784108216432e-40,3.867744056112224e-40,3.8477040040080156e-40,3.827663951903808e-40,3.807623899799599e-40,3.787583847695391e-40,3.767543795591182e-40,3.747503743486973e-40,3.7274636913827654e-40,3.707423639278557e-40,3.687383587174349e-40,3.66734353507014e-40,3.6473034829659316e-40,3.6272634308617233e-40,3.607223378757515e-40,3.5871833266533066e-40,3.5671432745490978e-40,3.5471032224448894e-40,3.527063170340681e-40,3.5070231182364727e-40,3.4869830661322644e-40,3.466943014028056e-40,3.4469029619238473e-40,3.426862909819639e-40,3.4068228577154306e-40,3.3867828056112222e-40,3.366742753507014e-40,3.3467027014028055e-40,3.326662649298597e-40,3.3066225971943884e-40,3.28658254509018e-40,3.2665424929859717e-40,3.2465024408817633e-40,3.226462388777555e-40,3.2064223366733466e-40,3.186382284569138e-40,3.1663422324649295e-40,3.146302180360721e-40,3.1262621282565128e-40,3.1062220761523044e-40,3.086182024048096e-40,3.0661419719438877e-40,3.046101919839679e-40,3.0260618677354706e-40,3.0060218156312623e-40,2.985981763527054e-40,2.9659417114228456e-40,2.945901659318637e-40,2.925861607214429e-40,2.90582155511022e-40,2.8857815030060117e-40,2.8657414509018034e-40,2.845701398797595e-40,2.8256613466933867e-40,2.8056212945891783e-40,2.7855812424849696e-40,2.765541190380761e-40,2.745501138276553e-40,2.7254610861723445e-40,2.705421034068136e-40,2.6853809819639278e-40,2.6653409298597194e-40,2.6453008777555107e-40,2.6252608256513023e-40,2.605220773547094e-40,2.5851807214428856e-40,2.5651406693386773e-40,2.545100617234469e-40,2.52506056513026e-40,2.5050205130260518e-40,2.4849804609218434e-40,2.464940408817635e-40,2.4449003567134267e-40,2.4248603046092184e-40,2.40482025250501e-40,2.3847802004008013e-40,2.364740148296593e-40,2.3447000961923846e-40,2.324660044088176e-40,2.304619991983968e-40,2.2845799398797595e-40,2.264539887775551e-40,2.2444998356713424e-40,2.224459783567134e-40,2.2044197314629257e-40,2.1843796793587173e-40,2.164339627254509e-40,2.1442995751503006e-40,2.124259523046092e-40,2.1042194709418835e-40,2.084179418837675e-40,2.0641393667334668e-40,2.0440993146292584e-40,2.02405926252505e-40,2.0040192104208417e-40,1.983979158316633e-40,1.9639391062124246e-40,1.9438990541082163e-40,1.923859002004008e-40,1.9038189498997996e-40,1.883778897795591e-40,1.8637388456913824e-40,1.843698793587174e-40,1.8236587414829657e-40,1.8036186893787574e-40,1.783578637274549e-40,1.7635385851703405e-40,1.7434985330661321e-40,1.7234584809619238e-40,1.7034184288577154e-40,1.6833783767535068e-40,1.6633383246492985e-40,1.6432982725450901e-40,1.6232582204408816e-40,1.6032181683366732e-40,1.5831781162324649e-40,1.5631380641282563e-40,1.543098012024048e-40,1.5230579599198396e-40,1.5030179078156313e-40,1.4829778557114227e-40,1.4629378036072143e-40,1.442897751503006e-40,1.4228576993987974e-40,1.402817647294589e-40,1.3827775951903807e-40,1.3627375430861722e-40,1.3426974909819638e-40,1.3226574388777555e-40,1.302617386773547e-40,1.2825773346693385e-40,1.2625372825651302e-40,1.2424972304609218e-40,1.2224571783567133e-40,1.202417126252505e-40,1.1823770741482966e-40,1.162337022044088e-40,1.1422969699398797e-40,1.1222569178356713e-40,1.1022168657314628e-40,1.0821768136272544e-40,1.062136761523046e-40,1.0420967094188377e-40,1.0220566573146291e-40,1.0020166052104208e-40,9.819765531062124e-41,9.619365010020039e-41,9.418964488977955e-41,9.218563967935872e-41,9.018163446893787e-41,8.817762925851703e-41,8.617362404809619e-41,8.416961883767534e-41,8.21656136272545e-41,8.016160841683366e-41,7.815760320641282e-41,7.615359799599198e-41,7.414959278557114e-41,7.214558757515029e-41,7.014158236472946e-41,6.813757715430861e-41,6.613357194388778e-41,6.412956673346693e-41,6.212556152304608e-41,6.012155631262525e-41,5.81175511022044e-41,5.611354589178357e-41,5.410954068136272e-41,5.210553547094188e-41,5.010153026052104e-41,4.80975250501002e-41,4.609351983967936e-41,4.4089514629258515e-41,4.2085509418837674e-41,4.008150420841683e-41,3.807749899799599e-41,3.607349378757515e-41,3.4069488577154307e-41,3.2065483366733467e-41,3.006147815631262e-41,2.805747294589178e-41,2.605346773547094e-41,2.40494625250501e-41,2.2045457314629257e-41,2.0041452104208416e-41,1.8037446893787573e-41,1.6033441683366733e-41,1.402943647294589e-41,1.202543126252505e-41,1.0021426052104208e-41,8.017420841683366e-42,6.013415631262524e-42,4.009410420841683e-42,2.0054052104208415e-42,1.4e-45]} +{"expected":[-89.80082,-89.802826,-89.80483,-89.80685,-89.80887,-89.81089,-89.81291,-89.81495,-89.81698,-89.819016,-89.82106,-89.82311,-89.82516,-89.82722,-89.82928,-89.83134,-89.833405,-89.83548,-89.837555,-89.83964,-89.84172,-89.84381,-89.84591,-89.84801,-89.85011,-89.85222,-89.85433,-89.856445,-89.85857,-89.860695,-89.86282,-89.86496,-89.867096,-89.86924,-89.87138,-89.87354,-89.875694,-89.87786,-89.88003,-89.882195,-89.88438,-89.88656,-89.88874,-89.89093,-89.89313,-89.895325,-89.89753,-89.89974,-89.901955,-89.904175,-89.9064,-89.90863,-89.910866,-89.91311,-89.91535,-89.9176,-89.91985,-89.92211,-89.92438,-89.92665,-89.928925,-89.931206,-89.933495,-89.93578,-89.93808,-89.94038,-89.94269,-89.945,-89.94732,-89.94964,-89.951965,-89.9543,-89.95664,-89.958984,-89.961334,-89.96369,-89.96605,-89.96842,-89.970795,-89.97317,-89.975555,-89.97794,-89.98034,-89.98274,-89.985146,-89.98756,-89.989975,-89.9924,-89.994835,-89.99727,-89.99971,-90.00216,-90.00461,-90.00707,-90.00954,-90.01201,-90.01449,-90.016975,-90.01946,-90.02196,-90.02446,-90.02697,-90.02949,-90.03201,-90.03454,-90.03707,-90.03961,-90.04216,-90.044716,-90.04728,-90.04984,-90.05242,-90.055,-90.05759,-90.06018,-90.06278,-90.06539,-90.068,-90.070625,-90.07325,-90.07589,-90.07853,-90.08118,-90.08383,-90.086494,-90.089165,-90.09184,-90.09453,-90.09722,-90.09992,-90.10263,-90.10534,-90.10806,-90.110794,-90.113525,-90.11627,-90.11902,-90.12178,-90.12455,-90.12732,-90.130104,-90.13289,-90.13569,-90.1385,-90.141304,-90.14413,-90.14696,-90.149796,-90.15264,-90.155495,-90.158356,-90.161224,-90.1641,-90.166985,-90.169876,-90.17278,-90.1757,-90.17861,-90.18154,-90.18448,-90.18742,-90.19038,-90.193344,-90.19631,-90.199295,-90.202286,-90.205284,-90.20829,-90.2113,-90.21433,-90.21737,-90.22041,-90.223465,-90.226524,-90.2296,-90.23268,-90.23577,-90.23887,-90.24198,-90.2451,-90.24823,-90.25137,-90.254524,-90.25768,-90.26085,-90.26403,-90.26722,-90.270424,-90.27363,-90.27685,-90.28008,-90.283325,-90.286575,-90.28984,-90.29311,-90.296394,-90.29969,-90.30299,-90.30631,-90.30964,-90.31298,-90.31633,-90.319695,-90.32307,-90.32645,-90.32984,-90.33325,-90.33667,-90.3401,-90.343544,-90.347,-90.350464,-90.35394,-90.35743,-90.36093,-90.36445,-90.36797,-90.37151,-90.37507,-90.37863,-90.38221,-90.3858,-90.389404,-90.39302,-90.39665,-90.4003,-90.40395,-90.40762,-90.41131,-90.415,-90.41871,-90.42244,-90.42618,-90.429924,-90.43369,-90.43748,-90.44127,-90.445076,-90.448906,-90.45274,-90.4566,-90.460464,-90.46435,-90.46825,-90.47216,-90.47609,-90.480034,-90.48399,-90.48797,-90.49196,-90.49597,-90.49999,-90.504036,-90.508095,-90.51216,-90.51626,-90.52036,-90.52448,-90.528625,-90.53278,-90.53696,-90.54115,-90.545364,-90.54959,-90.55384,-90.558105,-90.562386,-90.56669,-90.57101,-90.57534,-90.579704,-90.584076,-90.58847,-90.59289,-90.59732,-90.601776,-90.606255,-90.61075,-90.61526,-90.6198,-90.62435,-90.62893,-90.63352,-90.638145,-90.642784,-90.647446,-90.65213,-90.65684,-90.66157,-90.66631,-90.67109,-90.67589,-90.6807,-90.68555,-90.690414,-90.695305,-90.70022,-90.705154,-90.71012,-90.7151,-90.720116,-90.72516,-90.73022,-90.735306,-90.740425,-90.74557,-90.75073,-90.75593,-90.76115,-90.766396,-90.771675,-90.77698,-90.78231,-90.787674,-90.79307,-90.798485,-90.80394,-90.80942,-90.814926,-90.820465,-90.826035,-90.83164,-90.83727,-90.84294,-90.84863,-90.85437,-90.86013,-90.86593,-90.87176,-90.877625,-90.88352,-90.88946,-90.89543,-90.901436,-90.90748,-90.91356,-90.91967,-90.92583,-90.932014,-90.93825,-90.94452,-90.95083,-90.95718,-90.96356,-90.96999,-90.97647,-90.98299,-90.98954,-90.99614,-91.002785,-91.009476,-91.01621,-91.02299,-91.029816,-91.03669,-91.04361,-91.050575,-91.057594,-91.06466,-91.07178,-91.07895,-91.08617,-91.09344,-91.10077,-91.10815,-91.11558,-91.12307,-91.130615,-91.13822,-91.14589,-91.15361,-91.16139,-91.169235,-91.17714,-91.185104,-91.19314,-91.20123,-91.2094,-91.21763,-91.22593,-91.2343,-91.24274,-91.25124,-91.25983,-91.268486,-91.27722,-91.28603,-91.29492,-91.30389,-91.31294,-91.322075,-91.33129,-91.34059,-91.34998,-91.35946,-91.369026,-91.37869,-91.38844,-91.3983,-91.40825,-91.4183,-91.42845,-91.438705,-91.44907,-91.45954,-91.47012,-91.48082,-91.49163,-91.502556,-91.51361,-91.52478,-91.53608,-91.54751,-91.559074,-91.57077,-91.5826,-91.594574,-91.6067,-91.618965,-91.63139,-91.64397,-91.65671,-91.66961,-91.682686,-91.69593,-91.70935,-91.72295,-91.73675,-91.75074,-91.76492,-91.77931,-91.79391,-91.80872,-91.82376,-91.83903,-91.85453,-91.87028,-91.886284,-91.90254,-91.91907,-91.935875,-91.95297,-91.97036,-91.98806,-92.00608,-92.02443,-92.04312,-92.06217,-92.08159,-92.10139,-92.12159,-92.14221,-92.16326,-92.18477,-92.20675,-92.22922,-92.25221,-92.27574,-92.299835,-92.32453,-92.349846,-92.375824,-92.40249,-92.429886,-92.45806,-92.487045,-92.5169,-92.54767,-92.579414,-92.612206,-92.6461,-92.6812,-92.71756,-92.7553,-92.794525,-92.83534,-92.8779,-92.922356,-92.96887,-93.01766,-93.06895,-93.12302,-93.18017,-93.24079,-93.30533,-93.37432,-93.448425,-93.52846,-93.61547,-93.71077,-93.816124,-93.9339,-94.06741,-94.22155,-94.40385,-94.62696,-94.91458,-95.31993,-96.012726,-103.27893],"x":[1.0e-39,9.979959947921812e-40,9.959919895843624e-40,9.939879843765438e-40,9.919839791687251e-40,9.899799739609064e-40,9.879759687530876e-40,9.859719635452689e-40,9.839679583374501e-40,9.819639531296315e-40,9.799599479218128e-40,9.77955942713994e-40,9.759519375061753e-40,9.739479322983565e-40,9.71943927090538e-40,9.699399218827192e-40,9.679359166749005e-40,9.659319114670817e-40,9.63927906259263e-40,9.619239010514444e-40,9.599198958436256e-40,9.579158906358069e-40,9.559118854279881e-40,9.539078802201694e-40,9.519038750123506e-40,9.49899869804532e-40,9.478958645967133e-40,9.458918593888946e-40,9.438878541810758e-40,9.41883848973257e-40,9.398798437654385e-40,9.378758385576197e-40,9.35871833349801e-40,9.338678281419822e-40,9.318638229341635e-40,9.298598177263449e-40,9.278558125185261e-40,9.258518073107074e-40,9.238478021028887e-40,9.218437968950699e-40,9.198397916872512e-40,9.178357864794326e-40,9.158317812716138e-40,9.13827776063795e-40,9.118237708559763e-40,9.098197656481576e-40,9.07815760440339e-40,9.058117552325202e-40,9.038077500247015e-40,9.018037448168828e-40,8.99799739609064e-40,8.977957344012454e-40,8.957917291934267e-40,8.93787723985608e-40,8.917837187777892e-40,8.897797135699704e-40,8.877757083621517e-40,8.857717031543331e-40,8.837676979465143e-40,8.817636927386956e-40,8.797596875308769e-40,8.777556823230581e-40,8.757516771152395e-40,8.737476719074208e-40,8.71743666699602e-40,8.697396614917833e-40,8.677356562839645e-40,8.65731651076146e-40,8.637276458683272e-40,8.617236406605084e-40,8.597196354526897e-40,8.57715630244871e-40,8.557116250370522e-40,8.537076198292336e-40,8.517036146214149e-40,8.496996094135961e-40,8.476956042057774e-40,8.456915989979586e-40,8.4368759379014e-40,8.416835885823213e-40,8.396795833745025e-40,8.376755781666838e-40,8.35671572958865e-40,8.336675677510465e-40,8.316635625432277e-40,8.29659557335409e-40,8.276555521275902e-40,8.256515469197715e-40,8.236475417119527e-40,8.216435365041341e-40,8.196395312963154e-40,8.176355260884966e-40,8.156315208806779e-40,8.136275156728592e-40,8.116235104650406e-40,8.096195052572218e-40,8.07615500049403e-40,8.056114948415843e-40,8.036074896337656e-40,8.01603484425947e-40,7.995994792181282e-40,7.975954740103095e-40,7.955914688024907e-40,7.93587463594672e-40,7.915834583868533e-40,7.895794531790347e-40,7.87575447971216e-40,7.855714427633972e-40,7.835674375555784e-40,7.815634323477597e-40,7.795594271399411e-40,7.775554219321223e-40,7.755514167243036e-40,7.735474115164848e-40,7.715434063086661e-40,7.695394011008475e-40,7.675353958930288e-40,7.6553139068521e-40,7.635273854773913e-40,7.615233802695725e-40,7.595193750617538e-40,7.575153698539352e-40,7.555113646461164e-40,7.535073594382977e-40,7.51503354230479e-40,7.494993490226602e-40,7.474953438148416e-40,7.454913386070229e-40,7.434873333992041e-40,7.414833281913854e-40,7.394793229835666e-40,7.37475317775748e-40,7.354713125679293e-40,7.3346730736011054e-40,7.314633021522918e-40,7.294592969444731e-40,7.274552917366544e-40,7.254512865288356e-40,7.23447281321017e-40,7.214432761131982e-40,7.194392709053795e-40,7.174352656975608e-40,7.1543126048974206e-40,7.134272552819234e-40,7.1142325007410464e-40,7.094192448662859e-40,7.074152396584672e-40,7.054112344506485e-40,7.034072292428297e-40,7.014032240350111e-40,6.993992188271923e-40,6.9739521361937365e-40,6.953912084115549e-40,6.9338720320373616e-40,6.913831979959175e-40,6.8937919278809874e-40,6.8737518758028e-40,6.853711823724613e-40,6.833671771646426e-40,6.813631719568239e-40,6.793591667490052e-40,6.773551615411864e-40,6.7535115633336775e-40,6.73347151125549e-40,6.7134314591773026e-40,6.693391407099116e-40,6.6733513550209284e-40,6.653311302942742e-40,6.633271250864554e-40,6.613231198786367e-40,6.59319114670818e-40,6.573151094629993e-40,6.553111042551805e-40,6.5330709904736185e-40,6.513030938395431e-40,6.492990886317244e-40,6.472950834239057e-40,6.4529107821608694e-40,6.432870730082683e-40,6.412830678004495e-40,6.392790625926308e-40,6.372750573848121e-40,6.352710521769934e-40,6.332670469691747e-40,6.3126304176135595e-40,6.292590365535372e-40,6.272550313457185e-40,6.252510261378998e-40,6.2324702093008104e-40,6.212430157222624e-40,6.192390105144436e-40,6.17235005306625e-40,6.152310000988062e-40,6.132269948909875e-40,6.112229896831688e-40,6.0921898447535005e-40,6.072149792675313e-40,6.052109740597126e-40,6.032069688518939e-40,6.012029636440752e-40,5.991989584362565e-40,5.971949532284377e-40,5.951909480206191e-40,5.931869428128003e-40,5.911829376049816e-40,5.891789323971629e-40,5.8717492718934415e-40,5.851709219815255e-40,5.831669167737067e-40,5.81162911565888e-40,5.791589063580693e-40,5.771549011502506e-40,5.751508959424318e-40,5.731468907346132e-40,5.711428855267944e-40,5.6913888031897575e-40,5.67134875111157e-40,5.6513086990333825e-40,5.631268646955196e-40,5.611228594877008e-40,5.591188542798821e-40,5.571148490720634e-40,5.551108438642447e-40,5.53106838656426e-40,5.511028334486073e-40,5.490988282407885e-40,5.4709482303296985e-40,5.450908178251511e-40,5.4308681261733235e-40,5.410828074095137e-40,5.390788022016949e-40,5.370747969938763e-40,5.350707917860575e-40,5.330667865782388e-40,5.310627813704201e-40,5.290587761626014e-40,5.270547709547826e-40,5.2505076574696395e-40,5.230467605391452e-40,5.210427553313265e-40,5.190387501235078e-40,5.17034744915689e-40,5.150307397078704e-40,5.130267345000516e-40,5.110227292922329e-40,5.090187240844142e-40,5.070147188765955e-40,5.050107136687768e-40,5.0300670846095805e-40,5.010027032531393e-40,4.989986980453206e-40,4.969946928375019e-40,4.949906876296831e-40,4.929866824218645e-40,4.909826772140457e-40,4.8897867200622706e-40,4.869746667984083e-40,4.849706615905896e-40,4.829666563827709e-40,4.8096265117495215e-40,4.789586459671334e-40,4.769546407593147e-40,4.74950635551496e-40,4.729466303436773e-40,4.709426251358586e-40,4.689386199280398e-40,4.6693461472022116e-40,4.649306095124024e-40,4.629266043045837e-40,4.60922599096765e-40,4.5891859388894625e-40,4.569145886811276e-40,4.549105834733088e-40,4.529065782654901e-40,4.509025730576714e-40,4.488985678498527e-40,4.468945626420339e-40,4.4489055743421526e-40,4.428865522263965e-40,4.4088254701857784e-40,4.388785418107591e-40,4.3687453660294035e-40,4.348705313951217e-40,4.328665261873029e-40,4.308625209794842e-40,4.288585157716655e-40,4.268545105638468e-40,4.248505053560281e-40,4.2284650014820936e-40,4.208424949403906e-40,4.1883848973257194e-40,4.168344845247532e-40,4.1483047931693445e-40,4.128264741091158e-40,4.10822468901297e-40,4.088184636934784e-40,4.068144584856596e-40,4.048104532778409e-40,4.028064480700222e-40,4.0080244286220346e-40,3.987984376543847e-40,3.9679443244656604e-40,3.947904272387473e-40,3.927864220309286e-40,3.907824168231099e-40,3.887784116152911e-40,3.867744064074725e-40,3.847704011996537e-40,3.82766395991835e-40,3.807623907840163e-40,3.7875838557619756e-40,3.767543803683789e-40,3.7475037516056014e-40,3.727463699527414e-40,3.707423647449227e-40,3.68738359537104e-40,3.6673435432928527e-40,3.6473034912146657e-40,3.627263439136478e-40,3.607223387058291e-40,3.587183334980104e-40,3.567143282901917e-40,3.5471032308237295e-40,3.5270631787455424e-40,3.5070231266673553e-40,3.4869830745891683e-40,3.4669430225109808e-40,3.4469029704327937e-40,3.4268629183546067e-40,3.4068228662764196e-40,3.386782814198232e-40,3.366742762120045e-40,3.346702710041858e-40,3.326662657963671e-40,3.3066226058854834e-40,3.2865825538072963e-40,3.2665425017291093e-40,3.246502449650922e-40,3.2264623975727347e-40,3.2064223454945476e-40,3.1863822934163606e-40,3.1663422413381735e-40,3.146302189259986e-40,3.126262137181799e-40,3.106222085103612e-40,3.086182033025425e-40,3.0661419809472373e-40,3.0461019288690503e-40,3.026061876790863e-40,3.006021824712676e-40,2.9859817726344886e-40,2.9659417205563016e-40,2.9459016684781145e-40,2.9258616163999274e-40,2.90582156432174e-40,2.885781512243553e-40,2.865741460165366e-40,2.8457014080871787e-40,2.8256613560089913e-40,2.805621303930804e-40,2.785581251852617e-40,2.76554119977443e-40,2.7455011476962426e-40,2.7254610956180555e-40,2.7054210435398684e-40,2.6853809914616814e-40,2.665340939383494e-40,2.645300887305307e-40,2.6252608352271197e-40,2.6052207831489327e-40,2.585180731070745e-40,2.565140678992558e-40,2.545100626914371e-40,2.525060574836184e-40,2.5050205227579965e-40,2.4849804706798094e-40,2.4649404186016224e-40,2.4449003665234353e-40,2.424860314445248e-40,2.4048202623670607e-40,2.3847802102888737e-40,2.3647401582106866e-40,2.344700106132499e-40,2.324660054054312e-40,2.304620001976125e-40,2.284579949897938e-40,2.2645398978197504e-40,2.2444998457415634e-40,2.2244597936633763e-40,2.2044197415851892e-40,2.1843796895070017e-40,2.1643396374288147e-40,2.1442995853506276e-40,2.1242595332724405e-40,2.104219481194253e-40,2.084179429116066e-40,2.064139377037879e-40,2.044099324959692e-40,2.0240592728815044e-40,2.0040192208033173e-40,1.9839791687251302e-40,1.963939116646943e-40,1.9438990645687557e-40,1.9238590124905686e-40,1.9038189604123815e-40,1.8837789083341945e-40,1.863738856256007e-40,1.84369880417782e-40,1.8236587520996328e-40,1.8036187000214456e-40,1.7835786479432585e-40,1.7635385958650712e-40,1.7434985437868841e-40,1.7234584917086969e-40,1.7034184396305098e-40,1.6833783875523225e-40,1.6633383354741355e-40,1.6432982833959482e-40,1.6232582313177611e-40,1.6032181792395738e-40,1.5831781271613868e-40,1.5631380750831995e-40,1.5430980230050124e-40,1.5230579709268251e-40,1.503017918848638e-40,1.4829778667704508e-40,1.4629378146922635e-40,1.4428977626140765e-40,1.4228577105358892e-40,1.4028176584577021e-40,1.3827776063795148e-40,1.3627375543013278e-40,1.3426975022231405e-40,1.3226574501449534e-40,1.3026173980667661e-40,1.282577345988579e-40,1.2625372939103918e-40,1.2424972418322047e-40,1.2224571897540175e-40,1.2024171376758304e-40,1.1823770855976431e-40,1.162337033519456e-40,1.1422969814412688e-40,1.1222569293630817e-40,1.1022168772848944e-40,1.0821768252067073e-40,1.06213677312852e-40,1.042096721050333e-40,1.0220566689721457e-40,1.0020166168939587e-40,9.819765648157714e-41,9.619365127375843e-41,9.41896460659397e-41,9.2185640858121e-41,9.018163565030228e-41,8.817763044248356e-41,8.617362523466484e-41,8.416962002684613e-41,8.216561481902741e-41,8.016160961120869e-41,7.815760440338998e-41,7.615359919557126e-41,7.414959398775254e-41,7.214558877993382e-41,7.014158357211511e-41,6.813757836429639e-41,6.613357315647767e-41,6.412956794865895e-41,6.212556274084024e-41,6.012155753302152e-41,5.81175523252028e-41,5.611354711738409e-41,5.410954190956537e-41,5.210553670174665e-41,5.010153149392793e-41,4.809752628610922e-41,4.60935210782905e-41,4.408951587047178e-41,4.2085510662653064e-41,4.0081505454834347e-41,3.807750024701563e-41,3.6073495039196913e-41,3.4069489831378195e-41,3.206548462355948e-41,3.006147941574076e-41,2.8057474207922044e-41,2.6053469000103326e-41,2.404946379228461e-41,2.204545858446589e-41,2.0041453376647172e-41,1.8037448168828455e-41,1.6033442961009737e-41,1.402943775319102e-41,1.2025432545372303e-41,1.0021427337553587e-41,8.01742212973487e-42,6.013416921916152e-42,4.0094117140974344e-42,2.0054065062787172e-42,1.40129846e-45]} diff --git a/base/special/lnf/test/test.js b/base/special/lnf/test/test.js index 3df3cb072..1d5ac7c31 100644 --- a/base/special/lnf/test/test.js +++ b/base/special/lnf/test/test.js @@ -21,7 +21,7 @@ // MODULES // var tape = require( 'tape' ); -var isnan = require( './../../../../base/assert/is-nan' ); +var isnanf = require( './../../../../base/assert/is-nanf' ); var PINF = require( '@stdlib/constants/float32/pinf' ); var NINF = require( '@stdlib/constants/float32/ninf' ); var EPS = require( '@stdlib/constants/float32/eps' ); @@ -217,7 +217,7 @@ tape( 'the function evaluates the natural logarithm of `x` (subnormal values)', t.equal( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e ); } else { delta = abs( y - e ); - tol = 75.0 * EPS * abs( e ); + tol = 7.0 * EPS * abs( e ); t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. Tolerance: '+tol+'.' ); } } @@ -236,6 +236,6 @@ tape( 'the function returns `+infinity` if provided `+infinity`', function test( tape( 'the function returns `NaN` if provided a negative number', function test( t ) { var v = lnf( -1.0 ); - t.equal( isnan( v ), true, 'returns expected value' ); + t.equal( isnanf( v ), true, 'returns expected value' ); t.end(); }); diff --git a/base/special/lnf/test/test.native.js b/base/special/lnf/test/test.native.js index 07488ac4b..ace75fe69 100644 --- a/base/special/lnf/test/test.native.js +++ b/base/special/lnf/test/test.native.js @@ -22,7 +22,7 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); -var isnan = require( './../../../../base/assert/is-nan' ); +var isnanf = require( './../../../../base/assert/is-nanf' ); var PINF = require( '@stdlib/constants/float32/pinf' ); var NINF = require( '@stdlib/constants/float32/ninf' ); var EPS = require( '@stdlib/constants/float32/eps' ); @@ -226,7 +226,7 @@ tape( 'the function evaluates the natural logarithm of `x` (subnormal values)', t.equal( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e ); } else { delta = abs( y - e ); - tol = 75.0 * EPS * abs( e ); + tol = 7.0 * EPS * abs( e ); t.equal( delta <= tol, true, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. Tolerance: '+tol+'.' ); } } @@ -245,6 +245,6 @@ tape( 'the function returns `+infinity` if provided `+infinity`', opts, function tape( 'the function returns `NaN` if provided a negative number', opts, function test( t ) { var v = lnf( -1.0 ); - t.equal( isnan( v ), true, 'returns expected value' ); + t.equal( isnanf( v ), true, 'returns expected value' ); t.end(); });