From ad76d33ab5f91f5d79c739efc65413f6a4efe82b Mon Sep 17 00:00:00 2001 From: the-r3aper7 Date: Fri, 8 Mar 2024 20:15:36 +0530 Subject: [PATCH 1/7] feat: add math/base/special/cosd --- .../@stdlib/math/base/special/cosd/README.md | 109 ++++++++++++++++++ .../base/special/cosd/benchmark/benchmark.js | 51 ++++++++ .../math/base/special/cosd/docs/repl.txt | 28 +++++ .../base/special/cosd/docs/types/index.d.ts | 48 ++++++++ .../math/base/special/cosd/docs/types/test.ts | 44 +++++++ .../math/base/special/cosd/examples/index.js | 29 +++++ .../math/base/special/cosd/lib/index.js | 49 ++++++++ .../math/base/special/cosd/lib/main.js | 67 +++++++++++ .../math/base/special/cosd/package.json | 69 +++++++++++ .../math/base/special/cosd/test/test.js | 54 +++++++++ 10 files changed, 548 insertions(+) create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/README.md create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/examples/index.js create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/package.json create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/test/test.js diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/README.md b/lib/node_modules/@stdlib/math/base/special/cosd/README.md new file mode 100644 index 000000000000..9abeb7f31c32 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/README.md @@ -0,0 +1,109 @@ + + +# Cosine + +> Evaluate the [cosine][trigonometric-functions] of degree. + +
+ +
+ +
+ +## Usage + +```javascript +var cosd = require( '@stdlib/math/base/special/cosd' ); +``` + +#### cosd( x ) + +Evaluates the [cosine][trigonometric-functions] of `x` (in degree). + +```javascript +var v = cosd( 0.0 ); +// returns 1.0 + +v = cosd( 60 ); +// returns 0.5000000000000001 + +v = cosd( 90 ); +// returns 0.0 + +v = cosd( NaN ); +// returns NaN +``` + +
+ + + +
+ +## Examples + + + +```javascript +var linspace = require( '@stdlib/array/base/linspace' ); +var cosd = require( '@stdlib/math/base/special/cosd' ); + +var x = linspace( -180, 180, 100 ); + +var i; +for ( i = 0; i < x.length; i++ ) { + console.log( cosd( x[ i ] ) ); +} +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/benchmark/benchmark.js b/lib/node_modules/@stdlib/math/base/special/cosd/benchmark/benchmark.js new file mode 100644 index 000000000000..add5c2b55e67 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/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 isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pkg = require( './../package.json' ).name; +var cosd = 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()*10.0 ) - 5.0; + y = cosd( x ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt new file mode 100644 index 000000000000..b6b612fa2a1f --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt @@ -0,0 +1,28 @@ + +{{alias}}( x ) + Computes the cosine of degree. + + Parameters + ---------- + x: number + Input value (in degree). + + Returns + ------- + y: number + Cosine. + + Examples + -------- + > var y = {{alias}}( 0.0 ) + 1.0 + > y = {{alias}}( 90 ) + 0.0 + > y = {{alias}}( 60 ) + 0.5000000000000001 + > y = {{alias}}( NaN ) + NaN + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts new file mode 100644 index 000000000000..a99cf98afd33 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts @@ -0,0 +1,48 @@ +/* +* @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 + +/** +* Evaluates the cosine of degree. +* +* @param x - input value (in degree) +* @returns cosine + * + * @example + * var v = cosd( 0.0 ); + * // returns 1.0 + * + * @example + * var v = cosd( 60 ); + * // returns 0.5000000000000001 + * + * @example + * var v = cosd( 90 ); + * // returns 0 + * + * @example + * var v = cosd( NaN ); + * // returns NaN +*/ +declare function cosd( x: number ): number; + + +// EXPORTS // + +export = cosd; diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts new file mode 100644 index 000000000000..98ca1e4e20cf --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/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 cosd = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + cosd( 2 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + cosd( true ); // $ExpectError + cosd( false ); // $ExpectError + cosd( null ); // $ExpectError + cosd( undefined ); // $ExpectError + cosd( '5' ); // $ExpectError + cosd( [] ); // $ExpectError + cosd( {} ); // $ExpectError + cosd( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + cosd(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/examples/index.js b/lib/node_modules/@stdlib/math/base/special/cosd/examples/index.js new file mode 100644 index 000000000000..2684fa18be4a --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/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 cosd = require( './../lib' ); + +var x = linspace( -180, 180, 100 ); + +var i; +for ( i = 0; i < x.length; i++ ) { + console.log( 'cosd(%d) = %d', x[ i ], cosd( x[ i ] ) ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js new file mode 100644 index 000000000000..f621bc97a56c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js @@ -0,0 +1,49 @@ +/** +* @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'; + +/** +* Evaluate the cosine of degree. +* +* @module @stdlib/math/base/special/cosd +* +* @example +* var cosd = require( '@stdlib/math/base/special/cosd' ); +* +* var v = cosd( 0.0 ); +* // returns 1.0 +* +* v = cosd( 90 ); +* // returns 0.0 +* +* v = cosd( 60 ); +* // returns 0.5000000000000001 +* +* v = cosd( NaN ); +* // returns NaN +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js new file mode 100644 index 000000000000..dd0773fd1314 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js @@ -0,0 +1,67 @@ +/** +* @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 cos = require( '@stdlib/math/base/special/cos' ); +var deg2rad = require( '@stdlib/math/base/special/deg2rad' ); +var isInteger = require( '@stdlib/math/base/assert/is-integer' ); + + +// MAIN // + +/** +* Evaluates the cosine of degree. +* +* @param {number} x - input value (in degree) +* @returns {number} cosine +* +* @example +* var v = cosd( 0.0 ); +* // returns 1.0 +* +* @example +* var v = cosd( 90 ); +* // returns 0.0 +* +* @example +* var v = cosd( 60 ); +* // returns 0.5000000000000001 +* +* @example +* var v = cosd( NaN ); +* // returns NaN +*/ +function cosd( x ) { + var xRad; + + if (isInteger(((x / 90) + 1) / 2)) { + return 0; + } + + xRad = deg2rad(x); + + return cos(xRad); +} + + +// EXPORTS // + +module.exports = cosd; diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/package.json b/lib/node_modules/@stdlib/math/base/special/cosd/package.json new file mode 100644 index 000000000000..fae71d764c8c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/package.json @@ -0,0 +1,69 @@ +{ + "name": "@stdlib/math/base/special/cosd", + "version": "0.0.0", + "description": "Evaluate the cosine of degree.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "degree", + "cot", + "cotd", + "cotangent", + "tan", + "tangent", + "sin", + "sine", + "cos", + "cosine", + "trig", + "trigonometry" + ] +} diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js new file mode 100644 index 000000000000..825375c521c8 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js @@ -0,0 +1,54 @@ +/** +* @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 isnan = require( '@stdlib/math/base/assert/is-nan' ); +var PINF = require( '@stdlib/constants/float64/pinf' ); +var NINF = require( '@stdlib/constants/float64/ninf' ); +var cosd = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.true( typeof cosd, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided a `NaN`, the function returns `NaN`', function test( t ) { + var v = cosd( NaN ); + t.equal( isnan( v ), true, 'returns NaN' ); + t.end(); +}); + +tape( 'if provided `+infinity`, the function returns `NaN`', function test( t ) { + var v = cosd( PINF ); + t.equal( isnan( v ), true, 'returns NaN' ); + t.end(); +}); + +tape( 'if provided `-infinity`, the function returns `NaN`', function test( t ) { + var v = cosd( NINF ); + t.equal( isnan( v ), true, 'returns NaN' ); + t.end(); +}); From b3ec0e314ce77c7cc9582227e9481ded66fe7de0 Mon Sep 17 00:00:00 2001 From: the-r3aper7 Date: Sun, 10 Mar 2024 00:52:39 +0530 Subject: [PATCH 2/7] feat: add math/base/special/cosd --- .../@stdlib/math/base/special/cosd/README.md | 14 +--- .../math/base/special/cosd/docs/repl.txt | 4 +- .../base/special/cosd/docs/types/index.d.ts | 4 +- .../math/base/special/cosd/docs/types/test.ts | 2 +- .../math/base/special/cosd/lib/index.js | 4 +- .../math/base/special/cosd/lib/main.js | 6 +- .../math/base/special/cosd/package.json | 3 +- .../special/cosd/test/fixtures/julia/REQUIRE | 2 + .../cosd/test/fixtures/julia/negative.json | 1 + .../cosd/test/fixtures/julia/positive.json | 1 + .../cosd/test/fixtures/julia/runner.jl | 69 +++++++++++++++++++ .../math/base/special/cosd/test/test.js | 56 +++++++++++++++ 12 files changed, 143 insertions(+), 23 deletions(-) create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/REQUIRE create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/negative.json create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/positive.json create mode 100644 lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/runner.jl diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/README.md b/lib/node_modules/@stdlib/math/base/special/cosd/README.md index 9abeb7f31c32..518309baa98e 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/README.md +++ b/lib/node_modules/@stdlib/math/base/special/cosd/README.md @@ -18,9 +18,9 @@ limitations under the License. --> -# Cosine +# cosd -> Evaluate the [cosine][trigonometric-functions] of degree. +> Evaluate the [cosine][trigonometric-functions] of a degree.
@@ -43,7 +43,7 @@ var v = cosd( 0.0 ); // returns 1.0 v = cosd( 60 ); -// returns 0.5000000000000001 +// returns ~0.5 v = cosd( 90 ); // returns 0.0 @@ -82,12 +82,6 @@ for ( i = 0; i < x.length; i++ ) { @@ -100,8 +94,6 @@ for ( i = 0; i < x.length; i++ ) { -[@stdlib/math/base/special/cos]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cos -
diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt index b6b612fa2a1f..4aa375a29838 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt @@ -1,6 +1,6 @@ {{alias}}( x ) - Computes the cosine of degree. + Computes the cosine of a degree. Parameters ---------- @@ -19,7 +19,7 @@ > y = {{alias}}( 90 ) 0.0 > y = {{alias}}( 60 ) - 0.5000000000000001 + ~0.5 > y = {{alias}}( NaN ) NaN diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts index a99cf98afd33..99f8a2bc50ba 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts @@ -19,7 +19,7 @@ // TypeScript Version: 4.1 /** -* Evaluates the cosine of degree. +* Evaluates the cosine of a degree. * * @param x - input value (in degree) * @returns cosine @@ -30,7 +30,7 @@ * * @example * var v = cosd( 60 ); - * // returns 0.5000000000000001 + * // returns ~0.5 * * @example * var v = cosd( 90 ); diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts index 98ca1e4e20cf..e2a8099c7555 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts @@ -23,7 +23,7 @@ import cosd = require( './index' ); // The function returns a number... { - cosd( 2 ); // $ExpectType number + cosd( 60 ); // $ExpectType number } // The compiler throws an error if the function is provided a value other than a number... diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js index f621bc97a56c..d49bccd18d40 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js @@ -19,7 +19,7 @@ 'use strict'; /** -* Evaluate the cosine of degree. +* Evaluate the cosine of a degree. * * @module @stdlib/math/base/special/cosd * @@ -33,7 +33,7 @@ * // returns 0.0 * * v = cosd( 60 ); -* // returns 0.5000000000000001 +* // returns ~0.5 * * v = cosd( NaN ); * // returns NaN diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js index dd0773fd1314..e8e5718878b6 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js @@ -28,7 +28,7 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' ); // MAIN // /** -* Evaluates the cosine of degree. +* Evaluates the cosine of a degree. * * @param {number} x - input value (in degree) * @returns {number} cosine @@ -43,7 +43,7 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' ); * * @example * var v = cosd( 60 ); -* // returns 0.5000000000000001 +* // returns ~0.5 * * @example * var v = cosd( NaN ); @@ -52,7 +52,7 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' ); function cosd( x ) { var xRad; - if (isInteger(((x / 90) + 1) / 2)) { + if (isInteger(((x / 90) + 1) / 2) || Infinity < x || -Infinity > x) { return 0; } diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/package.json b/lib/node_modules/@stdlib/math/base/special/cosd/package.json index fae71d764c8c..45e4a27630d9 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cosd/package.json @@ -1,7 +1,7 @@ { "name": "@stdlib/math/base/special/cosd", "version": "0.0.0", - "description": "Evaluate the cosine of degree.", + "description": "Evaluate the cosine of a degree.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors", @@ -56,7 +56,6 @@ "degree", "cot", "cotd", - "cotangent", "tan", "tangent", "sin", diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000000..ae40bf736408 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/REQUIRE @@ -0,0 +1,2 @@ +julia 1.5 +JSON 0.21 \ No newline at end of file diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/negative.json b/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/negative.json new file mode 100644 index 000000000000..ee398a5c4c54 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/negative.json @@ -0,0 +1 @@ +{"expected":[0.984807753012208,0.9848380756445957,0.9848683682170103,0.984898630728527,0.9849288631782223,0.9849590655651733,0.9849892378884583,0.9850193801471561,0.9850494923403469,0.9850795744671115,0.9851096265265318,0.9851396485176903,0.9851696404396709,0.9851996022915581,0.9852295340724374,0.9852594357813951,0.9852893074175184,0.9853191489798959,0.9853489604676164,0.9853787418797703,0.9854084932154483,0.9854382144737425,0.9854679056537456,0.9854975667545514,0.9855271977752545,0.9855567987149506,0.9855863695727362,0.9856159103477085,0.985645421038966,0.985674901645608,0.9857043521667345,0.9857337726014468,0.9857631629488467,0.9857925232080373,0.9858218533781223,0.9858511534582066,0.9858804234473958,0.9859096633447965,0.9859388731495162,0.9859680528606635,0.9859972024773475,0.9860263219986786,0.986055411423768,0.9860844707517277,0.9861134999816709,0.9861424991127115,0.9861714681439643,0.9862004070745451,0.9862293159035707,0.9862581946301586,0.9862870432534274,0.9863158617724966,0.9863446501864864,0.9863734084945184,0.9864021366957145,0.9864308347891981,0.9864595027740931,0.9864881406495245,0.9865167484146182,0.9865453260685011,0.9865738736103008,0.9866023910391459,0.9866308783541662,0.986659335554492,0.9866877626392547,0.9867161596075869,0.9867445264586214,0.9867728631914927,0.9868011698053358,0.9868294462992867,0.9868576926724824,0.9868859089240605,0.98691409505316,0.9869422510589205,0.9869703769404826,0.9869984726969878,0.9870265383275786,0.9870545738313983,0.9870825792075912,0.9871105544553025,0.9871384995736784,0.9871664145618657,0.9871942994190126,0.987222154144268,0.9872499787367814,0.9872777731957039,0.9873055375201868,0.9873332717093828,0.9873609757624454,0.987388649678529,0.9874162934567889,0.9874439070963813,0.9874714905964634,0.9874990439561933,0.9875265671747299,0.987554060251233,0.9875815231848638,0.9876089559747838,0.9876363586201558,0.9876637311201433,0.9876910734739108,0.9877183856806238,0.9877456677394486,0.9877729196495526,0.9878001414101037,0.9878273330202715,0.9878544944792256,0.9878816257861371,0.9879087269401781,0.987935797940521,0.9879628387863397,0.987989849476809,0.9880168300111042,0.9880437803884019,0.9880707006078796,0.9880975906687154,0.9881244505700887,0.9881512803111796,0.9881780798911691,0.9882048493092395,0.9882315885645734,0.9882582976563548,0.9882849765837685,0.9883116253459999,0.988338243942236,0.9883648323716642,0.9883913906334728,0.9884179187268513,0.9884444166509899,0.98847088440508,0.9884973219883135,0.9885237293998835,0.9885501066389841,0.9885764537048102,0.9886027705965574,0.9886290573134227,0.9886553138546035,0.9886815402192985,0.9887077364067074,0.9887339024160302,0.9887600382464686,0.9887861438972246,0.9888122193675016,0.9888382646565037,0.9888642797634357,0.9888902646875037,0.9889162194279146,0.9889421439838761,0.9889680383545971,0.988993902539287,0.9890197365371565,0.9890455403474169,0.9890713139692807,0.9890970574019614,0.9891227706446729,0.9891484536966306,0.9891741065570506,0.9891997292251498,0.9892253217001461,0.9892508839812584,0.9892764160677064,0.9893019179587109,0.9893273896534935,0.9893528311512767,0.9893782424512839,0.9894036235527396,0.989428974454869,0.9894542951568983,0.9894795856580548,0.9895048459575664,0.9895300760546621,0.989555275948572,0.9895804456385265,0.9896055851237578,0.9896306944034985,0.989655773476982,0.9896808223434429,0.9897058410021168,0.9897308294522398,0.9897557876930493,0.9897807157237835,0.9898056135436816,0.9898304811519835,0.9898553185479303,0.9898801257307639,0.989904902699727,0.9899296494540635,0.9899543659930178,0.9899790523158358,0.9900037084217638,0.9900283343100493,0.9900529299799407,0.9900774954306871,0.9901020306615388,0.990126535671747,0.9901510104605636,0.9901754550272417,0.990199869371035,0.9902242534911985,0.9902486073869878,0.9902729310576597,0.9902972245024715,0.990321487720682,0.9903457207115504,0.990369923474337,0.9903940960083034,0.9904182383127116,0.9904423503868246,0.9904664322299065,0.9904904838412223,0.9905145052200379,0.9905384963656201,0.9905624572772365,0.9905863879541558,0.9906102883956477,0.9906341586009825,0.9906579985694317,0.9906818083002678,0.9907055877927637,0.9907293370461939,0.9907530560598334,0.9907767448329582,0.9908004033648453,0.9908240316547726,0.9908476297020188,0.9908711975058637,0.9908947350655879,0.9909182423804731,0.9909417194498016,0.9909651662728569,0.9909885828489233,0.9910119691772862,0.9910353252572316,0.9910586510880468,0.9910819466690196,0.9911052119994392,0.9911284470785953,0.9911516519057788,0.9911748264802813,0.9911979708013956,0.9912210848684152,0.9912441686806346,0.9912672222373492,0.9912902455378554,0.9913132385814504,0.9913362013674324,0.9913591338951006,0.9913820361637549,0.9914049081726963,0.9914277499212267,0.991450561408649,0.9914733426342668,0.9914960935973848,0.9915188142973085,0.9915415047333446,0.9915641649048004,0.9915867948109841,0.9916093944512052,0.9916319638247739,0.9916545029310011,0.9916770117691991,0.9916994903386808,0.9917219386387599,0.9917443566687515,0.9917667444279711,0.9917891019157354,0.9918114291313622,0.9918337260741699,0.9918559927434778,0.9918782291386063,0.9919004352588768,0.9919226111036116,0.9919447566721336,0.9919668719637669,0.9919889569778365,0.9920110117136683,0.9920330361705892,0.992055030347927,0.9920769942450102,0.9920989278611685,0.9921208311957324,0.9921427042480333,0.9921645470174038,0.9921863595031769,0.992208141704687,0.9922298936212691,0.9922516152522595,0.9922733065969951,0.9922949676548137,0.9923165984250543,0.9923381989070565,0.9923597691001612,0.9923813090037099,0.9924028186170452,0.9924242979395105,0.9924457469704502,0.9924671657092096,0.992488554155135,0.9925099123075736,0.9925312401658734,0.9925525377293835,0.9925738049974536,0.9925950419694349,0.9926162486446791,0.9926374250225387,0.9926585711023677,0.9926796868835203,0.9927007723653521,0.9927218275472197,0.9927428524284803,0.992763847008492,0.9927848112866142,0.992805745262207,0.9928266489346315,0.9928475223032494,0.9928683653674237,0.9928891781265184,0.9929099605798981,0.9929307127269285,0.992951434566976,0.9929721260994082,0.9929927873235938,0.9930134182389019,0.9930340188447028,0.9930545891403677,0.9930751291252689,0.9930956387987793,0.9931161181602729,0.9931365672091248,0.9931569859447106,0.9931773743664072,0.9931977324735922,0.9932180602656443,0.993238357741943,0.9932586249018688,0.993278861744803,0.993299068270128,0.9933192444772271,0.9933393903654842,0.9933595059342848,0.9933795911830146,0.9933996461110606,0.9934196707178107,0.9934396650026537,0.9934596289649793,0.9934795626041782,0.993499465919642,0.993519338910763,0.9935391815769349,0.9935589939175518,0.993578775932009,0.9935985276197029,0.9936182489800305,0.9936379400123898,0.9936576007161798,0.9936772310908004,0.9936968311356525,0.9937164008501378,0.993735940233659,0.9937554492856195,0.9937749280054242,0.9937943763924784,0.9938137944461883,0.9938331821659614,0.9938525395512059,0.993871866601331,0.9938911633157467,0.993910429693864,0.9939296657350949,0.9939488714388522,0.9939680468045499,0.9939871918316023,0.9940063065194256,0.9940253908674358,0.9940444448750507,0.9940634685416887,0.9940824618667692,0.9941014248497123,0.9941203574899393,0.9941392597868722,0.9941581317399343,0.9941769733485494,0.9941957846121424,0.9942145655301392,0.9942333161019665,0.9942520363270521,0.9942707262048243,0.9942893857347129,0.9943080149161484,0.994326613748562,0.9943451822313861,0.994363720364054,0.9943822281459997,0.9944007055766585,0.9944191526554663,0.99443756938186,0.9944559557552776,0.9944743117751578,0.9944926374409402,0.9945109327520657,0.9945291977079758,0.9945474323081129,0.9945656365519207,0.9945838104388431,0.9946019539683258,0.9946200671398149,0.9946381499527573,0.9946562024066015,0.994674224500796,0.9946922162347911,0.9947101776080375,0.994728108619987,0.9947460092700922,0.9947638795578068,0.9947817194825853,0.9947995290438832,0.994817308241157,0.9948350570738639,0.9948527755414622,0.9948704636434111,0.9948881213791708,0.9949057487482021,0.9949233457499672,0.9949409123839288,0.9949584486495509,0.9949759545462981,0.994993430073636,0.9950108752310316,0.9950282900179519,0.9950456744338657,0.9950630284782424,0.995080352150552,0.995097645450266,0.9951149083768566,0.9951321409297966,0.9951493431085602,0.9951665149126224,0.995183656341459,0.9952007673945468,0.9952178480713634,0.9952348983713877,0.9952519182940991,0.9952689078389781,0.9952858670055063,0.9953027957931658,0.9953196942014402,0.9953365622298134,0.9953533998777707,0.9953702071447982,0.9953869840303828,0.9954037305340125,0.9954204466551761,0.9954371323933635,0.9954537877480653,0.995470412718773,0.9954870073049794,0.9955035715061779,0.9955201053218629,0.9955366087515297,0.9955530817946746,0.9955695244507948,0.9955859367193886,0.9956023185999546,0.9956186700919933,0.9956349911950053,0.9956512819084925,0.9956675422319577,0.9956837721649046,0.9956999717068377,0.9957161408572627,0.9957322796156859,0.9957483879816149,0.9957644659545578,0.9957805135340241,0.9957965307195239,0.9958125175105682,0.9958284739066691,0.9958443999073396,0.9958602955120937,0.9958761607204459,0.9958919955319122,0.9959077999460093,0.9959235739622547,0.9959393175801671,0.9959550307992656,0.995970713619071,0.9959863660391044,0.996001988058888,0.9960175796779451,0.9960331408957998,0.996048671711977,0.9960641721260027,0.996079642137404,0.9960950817457085,0.9961104909504449,0.9961258697511429,0.9961412181473333,0.9961565361385474,0.9961718237243177,0.9961870809041775,0.9962023076776614,0.9962175040443043,0.9962326700036426,0.9962478055552133,0.9962629106985544,0.9962779854332049,0.9962930297587046,0.9963080436745944,0.996323027180416,0.9963379802757121,0.9963529029600261,0.9963677952329028,0.9963826570938874,0.9963974885425265,0.9964122895783672,0.996427060200958,0.9964418004098476,0.9964565102045866,0.9964711895847257,0.9964858385498169,0.9965004570994132,0.9965150452330681,0.9965296029503368,0.9965441302507745,0.9965586271339381,0.9965730935993848,0.9965875296466734,0.9966019352753631,0.9966163104850142,0.996630655275188,0.9966449696454465,0.9966592535953529,0.9966735071244712,0.9966877302323663,0.9967019229186043,0.9967160851827517,0.9967302170243763,0.9967443184430468,0.9967583894383328,0.9967724300098049,0.9967864401570343,0.9968004198795936,0.9968143691770559,0.9968282880489956,0.9968421764949879,0.9968560345146087,0.9968698621074351,0.996883659273045,0.9968974260110174,0.996911162320932,0.9969248682023696,0.9969385436549117,0.9969521886781411,0.9969658032716411,0.9969793874349964,0.996992941167792,0.9970064644696146,0.9970199573400513,0.9970334197786902,0.9970468517851203,0.9970602533589319,0.9970736244997157,0.9970869652070636,0.9971002754805686,0.9971135553198242,0.997126804724425,0.997140023693967,0.9971532122280464,0.9971663703262607,0.9971794979882083,0.9971925952134885,0.9972056620017016,0.9972186983524486,0.9972317042653318,0.997244679739954,0.9972576247759194,0.9972705393728327,0.9972834235302998,0.9972962772479274,0.9973091005253232,0.9973218933620958,0.9973346557578546,0.9973473877122102,0.997360089224774,0.9973727602951582,0.9973854009229762,0.997398011107842,0.9974105908493708,0.9974231401471786,0.9974356590008825,0.9974481474101001,0.9974606053744505,0.9974730328935533,0.997485429967029,0.9974977965944997,0.9975101327755875,0.9975224385099162,0.9975347137971098,0.997546958636794,0.9975591730285948,0.9975713569721395,0.9975835104670562,0.9975956335129739,0.9976077261095226,0.9976197882563332,0.9976318199530376,0.9976438211992684,0.9976557919946595,0.9976677323388453,0.9976796422314614,0.9976915216721445,0.9977033706605317,0.9977151891962615,0.9977269772789731,0.9977387349083068,0.9977504620839036,0.9977621588054055,0.9977738250724558,0.9977854608846981,0.9977970662417773,0.9978086411433393,0.9978201855890307,0.9978316995784992,0.9978431831113932,0.9978546361873624,0.997866058806057,0.9978774509671287,0.9978888126702294,0.9979001439150125,0.997911444701132,0.9979227150282433,0.997933954896002,0.9979451643040652,0.9979563432520908,0.9979674917397375,0.9979786097666652,0.9979896973325343,0.9980007544370065,0.9980117810797443,0.9980227772604111,0.9980337429786713,0.9980446782341903,0.9980555830266341,0.99806645735567,0.9980773012209662,0.9980881146221914,0.9980988975590157,0.9981096500311101,0.9981203720381463,0.998131063579797,0.9981417246557359,0.9981523552656376,0.9981629554091775,0.9981735250860324,0.9981840642958794,0.9981945730383968,0.9982050513132639,0.9982154991201608,0.9982259164587689,0.9982363033287699,0.9982466597298469,0.9982569856616839,0.9982672811239656,0.9982775461163776,0.9982877806386069,0.9982979846903409,0.9983081582712682,0.9983183013810784,0.9983284140194616,0.9983384961861094,0.998348547880714,0.9983585691029686,0.9983685598525672,0.998378520129205,0.998388449932578,0.9983983492623831,0.998408218118318,0.9984180565000816,0.9984278644073736,0.9984376418398947,0.9984473887973463,0.998457105279431,0.9984667912858521,0.9984764468163142,0.9984860718705224,0.998495666448183,0.9985052305490031,0.9985147641726908,0.9985242673189552,0.9985337399875059,0.9985431821780542,0.9985525938903116,0.998561975123991,0.9985713258788059,0.9985806461544711,0.9985899359507019,0.998599195267215,0.9986084241037274,0.9986176224599578,0.9986267903356253,0.99863592773045,0.998645034644153,0.9986541110764564,0.9986631570270832,0.9986721724957572,0.9986811574822033,0.9986901119861473,0.9986990360073157,0.9987079295454362,0.9987167926002374,0.9987256251714487,0.9987344272588006,0.9987431988620243,0.9987519399808522,0.9987606506150174,0.9987693307642541,0.9987779804282974,0.9987865996068831,0.9987951882997482,0.9988037465066306,0.9988122742272691,0.9988207714614035,0.9988292382087741,0.9988376744691229,0.998846080242192,0.9988544555277251,0.9988628003254665,0.9988711146351614,0.9988793984565562,0.9988876517893979,0.9988958746334345,0.9989040669884154,0.9989122288540901,0.9989203602302099,0.9989284611165262,0.998936531512792,0.998944571418761,0.9989525808341876,0.9989605597588275,0.998968508192437,0.9989764261347736,0.9989843135855956,0.9989921705446623,0.9989999970117337,0.9990077929865712,0.9990155584689366,0.9990232934585931,0.9990309979553044,0.9990386719588354,0.999046315468952,0.9990539284854207,0.9990615110080093,0.9990690630364862,0.999076584570621,0.9990840756101841,0.9990915361549468,0.9990989662046815,0.9991063657591612,0.9991137348181603,0.9991210733814538,0.9991283814488177,0.9991356590200288,0.9991429060948651,0.9991501226731054,0.9991573087545293,0.9991644643389178,0.9991715894260521,0.9991786840157149,0.9991857481076897,0.9991927817017607,0.9991997847977134,0.9992067573953339,0.9992136994944096,0.9992206110947285,0.9992274921960794,0.9992343427982526,0.9992411629010389,0.99924795250423,0.9992547116076189,0.9992614402109992,0.9992681383141653,0.9992748059169131,0.9992814430190389,0.99928804962034,0.9992946257206151,0.9993011713196631,0.9993076864172845,0.9993141710132804,0.9993206251074527,0.9993270486996044,0.9993334417895396,0.9993398043770633,0.9993461364619809,0.9993524380440993,0.9993587091232263,0.9993649496991703,0.999371159771741,0.9993773393407486,0.9993834884060047,0.9993896069673215,0.9993956950245123,0.9994017525773913,0.9994077796257735,0.9994137761694751,0.999419742208313,0.999425677742105,0.99943158277067,0.9994374572938277,0.999443301311399,0.9994491148232053,0.9994548978290693,0.9994606503288144,0.9994663723222651,0.9994720638092466,0.9994777247895853,0.9994833552631084,0.9994889552296441,0.9994945246890213,0.9995000636410701,0.9995055720856215,0.9995110500225073,0.9995164974515603,0.9995219143726143,0.9995273007855038,0.9995326566900645,0.999537982086133,0.9995432769735466,0.9995485413521438,0.9995537752217638,0.9995589785822471,0.9995641514334345,0.9995692937751683,0.9995744056072917,0.9995794869296484,0.9995845377420834,0.9995895580444427,0.9995945478365729,0.9995995071183217,0.9996044358895376,0.9996093341500705,0.9996142018997707,0.9996190391384896,0.9996238458660796,0.9996286220823939,0.9996333677872868,0.9996380829806134,0.9996427676622299,0.9996474218319932,0.9996520454897613,0.999656638635393,0.9996612012687481,0.9996657333896874,0.9996702349980726,0.9996747060937662,0.9996791466766318,0.9996835567465339,0.9996879363033376,0.9996922853469097,0.9996966038771171,0.999700891893828,0.9997051493969118,0.9997093763862382,0.9997135728616785,0.9997177388231043,0.9997218742703887,0.9997259792034053,0.9997300536220289,0.9997340975261352,0.9997381109156006,0.9997420937903028,0.99974604615012,0.9997499679949317,0.9997538593246181,0.9997577201390606,0.9997615504381412,0.9997653502217431,0.9997691194897502,0.9997728582420476,0.9997765664785211,0.9997802441990574,0.9997838914035445,0.9997875080918709,0.9997910942639262,0.999794649919601,0.9997981750587868,0.9998016696813758,0.9998051337872617,0.9998085673763385,0.9998119704485015,0.9998153430036466,0.9998186850416713,0.9998219965624732,0.9998252775659513,0.9998285280520056,0.9998317480205368,0.9998349374714467,0.9998380964046377,0.9998412248200137,0.999844322717479,0.9998473900969391,0.9998504269583004,0.9998534333014703,0.9998564091263568,0.9998593544328691,0.9998622692209176,0.999865153490413,0.9998680072412675,0.9998708304733938,0.9998736231867058,0.9998763853811183,0.9998791170565471,0.9998818182129086,0.9998844888501204,0.9998871289681011,0.9998897385667699,0.9998923176460474,0.9998948662058548,0.9998973842461142,0.9998998717667489,0.9999023287676828,0.999904755248841,0.9999071512101496,0.9999095166515352,0.9999118515729257,0.9999141559742498,0.9999164298554373,0.9999186732164187,0.9999208860571255,0.9999230683774901,0.9999252201774461,0.9999273414569276,0.99992943221587,0.9999314924542094,0.999933522171883,0.9999355213688288,0.9999374900449857,0.9999394282002937,0.9999413358346936,0.9999432129481273,0.9999450595405374,0.9999468756118673,0.999948661162062,0.999950416191067,0.9999521406988282,0.9999538346852935,0.999955498150411,0.9999571310941299,0.9999587335164003,0.9999603054171735,0.9999618467964013,0.9999633576540368,0.9999648379900338,0.9999662878043472,0.9999677070969326,0.9999690958677468,0.9999704541167476,0.9999717818438931,0.999973079049143,0.9999743457324578,0.9999755818937988,0.9999767875331281,0.9999779626504091,0.9999791072456058,0.9999802213186832,0.9999813048696076,0.9999823578983457,0.9999833804048652,0.9999843723891353,0.9999853338511254,0.9999862647908063,0.9999871652081496,0.9999880351031277,0.999988874475714,0.9999896833258832,0.9999904616536103,0.9999912094588717,0.9999919267416444,0.9999926135019067,0.9999932697396375,0.999993895454817,0.9999944906474257,0.9999950553174459,0.99999558946486,0.9999960930896519,0.9999965661918061,0.9999970087713081,0.9999974208281447,0.9999978023623031,0.9999981533737716,0.9999984738625397,0.9999987638285974,0.999999023271936,0.9999992521925475,0.9999994505904248,0.9999996184655622,0.9999997558179542,0.9999998626475968,0.9999999389544867,0.9999999847386215,1.0],"x":[-10.0,-9.98998998998999,-9.97997997997998,-9.96996996996997,-9.95995995995996,-9.94994994994995,-9.93993993993994,-9.92992992992993,-9.91991991991992,-9.90990990990991,-9.8998998998999,-9.88988988988989,-9.87987987987988,-9.86986986986987,-9.85985985985986,-9.84984984984985,-9.83983983983984,-9.82982982982983,-9.81981981981982,-9.80980980980981,-9.7997997997998,-9.78978978978979,-9.77977977977978,-9.76976976976977,-9.75975975975976,-9.74974974974975,-9.73973973973974,-9.72972972972973,-9.71971971971972,-9.70970970970971,-9.6996996996997,-9.68968968968969,-9.67967967967968,-9.66966966966967,-9.65965965965966,-9.64964964964965,-9.63963963963964,-9.62962962962963,-9.61961961961962,-9.60960960960961,-9.5995995995996,-9.58958958958959,-9.57957957957958,-9.56956956956957,-9.55955955955956,-9.54954954954955,-9.53953953953954,-9.52952952952953,-9.51951951951952,-9.50950950950951,-9.4994994994995,-9.48948948948949,-9.47947947947948,-9.46946946946947,-9.45945945945946,-9.44944944944945,-9.43943943943944,-9.42942942942943,-9.41941941941942,-9.40940940940941,-9.3993993993994,-9.38938938938939,-9.37937937937938,-9.36936936936937,-9.35935935935936,-9.34934934934935,-9.33933933933934,-9.32932932932933,-9.31931931931932,-9.30930930930931,-9.2992992992993,-9.28928928928929,-9.27927927927928,-9.26926926926927,-9.25925925925926,-9.24924924924925,-9.23923923923924,-9.22922922922923,-9.21921921921922,-9.20920920920921,-9.1991991991992,-9.18918918918919,-9.17917917917918,-9.16916916916917,-9.15915915915916,-9.14914914914915,-9.13913913913914,-9.12912912912913,-9.11911911911912,-9.10910910910911,-9.0990990990991,-9.08908908908909,-9.07907907907908,-9.06906906906907,-9.05905905905906,-9.04904904904905,-9.03903903903904,-9.02902902902903,-9.01901901901902,-9.00900900900901,-8.998998998999,-8.98898898898899,-8.97897897897898,-8.96896896896897,-8.95895895895896,-8.94894894894895,-8.93893893893894,-8.92892892892893,-8.91891891891892,-8.90890890890891,-8.8988988988989,-8.88888888888889,-8.87887887887888,-8.86886886886887,-8.85885885885886,-8.84884884884885,-8.83883883883884,-8.82882882882883,-8.81881881881882,-8.80880880880881,-8.7987987987988,-8.78878878878879,-8.77877877877878,-8.76876876876877,-8.75875875875876,-8.74874874874875,-8.73873873873874,-8.72872872872873,-8.71871871871872,-8.70870870870871,-8.6986986986987,-8.68868868868869,-8.67867867867868,-8.66866866866867,-8.65865865865866,-8.64864864864865,-8.63863863863864,-8.62862862862863,-8.618618618618619,-8.608608608608609,-8.598598598598599,-8.588588588588589,-8.578578578578579,-8.568568568568569,-8.558558558558559,-8.548548548548549,-8.538538538538539,-8.528528528528529,-8.518518518518519,-8.508508508508509,-8.498498498498499,-8.488488488488489,-8.478478478478479,-8.468468468468469,-8.458458458458459,-8.448448448448449,-8.438438438438439,-8.428428428428429,-8.418418418418419,-8.408408408408409,-8.398398398398399,-8.388388388388389,-8.378378378378379,-8.368368368368369,-8.358358358358359,-8.348348348348349,-8.338338338338339,-8.328328328328329,-8.318318318318319,-8.308308308308309,-8.298298298298299,-8.288288288288289,-8.278278278278279,-8.268268268268269,-8.258258258258259,-8.248248248248249,-8.238238238238239,-8.228228228228229,-8.218218218218219,-8.208208208208209,-8.198198198198199,-8.188188188188189,-8.178178178178179,-8.168168168168169,-8.158158158158159,-8.148148148148149,-8.138138138138139,-8.128128128128129,-8.118118118118119,-8.108108108108109,-8.098098098098099,-8.088088088088089,-8.078078078078079,-8.068068068068069,-8.058058058058059,-8.048048048048049,-8.038038038038039,-8.028028028028029,-8.018018018018019,-8.008008008008009,-7.997997997997998,-7.987987987987988,-7.977977977977978,-7.967967967967968,-7.957957957957958,-7.947947947947948,-7.937937937937938,-7.927927927927928,-7.917917917917918,-7.907907907907908,-7.897897897897898,-7.887887887887888,-7.877877877877878,-7.867867867867868,-7.857857857857858,-7.847847847847848,-7.837837837837838,-7.827827827827828,-7.817817817817818,-7.807807807807808,-7.797797797797798,-7.787787787787788,-7.777777777777778,-7.767767767767768,-7.757757757757758,-7.747747747747748,-7.737737737737738,-7.727727727727728,-7.717717717717718,-7.707707707707708,-7.697697697697698,-7.687687687687688,-7.677677677677678,-7.667667667667668,-7.657657657657658,-7.647647647647648,-7.637637637637638,-7.627627627627628,-7.617617617617618,-7.607607607607608,-7.597597597597598,-7.587587587587588,-7.5775775775775776,-7.5675675675675675,-7.5575575575575575,-7.5475475475475475,-7.5375375375375375,-7.5275275275275275,-7.5175175175175175,-7.5075075075075075,-7.4974974974974975,-7.4874874874874875,-7.4774774774774775,-7.4674674674674675,-7.4574574574574575,-7.4474474474474475,-7.4374374374374375,-7.4274274274274275,-7.4174174174174174,-7.407407407407407,-7.397397397397397,-7.387387387387387,-7.377377377377377,-7.367367367367367,-7.357357357357357,-7.347347347347347,-7.337337337337337,-7.327327327327327,-7.317317317317317,-7.307307307307307,-7.297297297297297,-7.287287287287287,-7.277277277277277,-7.267267267267267,-7.257257257257257,-7.247247247247247,-7.237237237237237,-7.227227227227227,-7.217217217217217,-7.207207207207207,-7.197197197197197,-7.187187187187187,-7.177177177177177,-7.167167167167167,-7.157157157157157,-7.147147147147147,-7.137137137137137,-7.127127127127127,-7.117117117117117,-7.107107107107107,-7.097097097097097,-7.087087087087087,-7.077077077077077,-7.067067067067067,-7.057057057057057,-7.047047047047047,-7.037037037037037,-7.027027027027027,-7.017017017017017,-7.007007007007007,-6.996996996996997,-6.986986986986987,-6.976976976976977,-6.966966966966967,-6.956956956956957,-6.946946946946947,-6.936936936936937,-6.926926926926927,-6.916916916916917,-6.906906906906907,-6.896896896896897,-6.886886886886887,-6.876876876876877,-6.866866866866867,-6.856856856856857,-6.846846846846847,-6.836836836836837,-6.826826826826827,-6.816816816816817,-6.806806806806807,-6.796796796796797,-6.786786786786787,-6.776776776776777,-6.766766766766767,-6.756756756756757,-6.746746746746747,-6.736736736736737,-6.726726726726727,-6.716716716716717,-6.706706706706707,-6.696696696696697,-6.686686686686687,-6.676676676676677,-6.666666666666667,-6.656656656656657,-6.646646646646647,-6.636636636636637,-6.626626626626627,-6.616616616616617,-6.606606606606607,-6.596596596596597,-6.586586586586587,-6.576576576576577,-6.566566566566567,-6.556556556556557,-6.546546546546547,-6.536536536536537,-6.526526526526527,-6.516516516516517,-6.506506506506507,-6.496496496496497,-6.486486486486487,-6.476476476476477,-6.466466466466467,-6.456456456456457,-6.446446446446447,-6.436436436436437,-6.426426426426427,-6.416416416416417,-6.406406406406407,-6.396396396396397,-6.386386386386387,-6.376376376376377,-6.366366366366367,-6.356356356356357,-6.346346346346347,-6.336336336336337,-6.326326326326327,-6.316316316316317,-6.306306306306307,-6.296296296296297,-6.286286286286287,-6.276276276276277,-6.266266266266267,-6.256256256256257,-6.246246246246246,-6.236236236236236,-6.226226226226226,-6.216216216216216,-6.206206206206206,-6.196196196196196,-6.186186186186186,-6.176176176176176,-6.166166166166166,-6.156156156156156,-6.146146146146146,-6.136136136136136,-6.126126126126126,-6.116116116116116,-6.106106106106106,-6.096096096096096,-6.086086086086086,-6.076076076076076,-6.066066066066066,-6.056056056056056,-6.046046046046046,-6.036036036036036,-6.026026026026026,-6.016016016016016,-6.006006006006006,-5.995995995995996,-5.985985985985986,-5.975975975975976,-5.965965965965966,-5.955955955955956,-5.945945945945946,-5.935935935935936,-5.925925925925926,-5.915915915915916,-5.905905905905906,-5.895895895895896,-5.885885885885886,-5.875875875875876,-5.865865865865866,-5.8558558558558556,-5.8458458458458455,-5.8358358358358355,-5.8258258258258255,-5.8158158158158155,-5.8058058058058055,-5.7957957957957955,-5.7857857857857855,-5.7757757757757755,-5.7657657657657655,-5.7557557557557555,-5.7457457457457455,-5.7357357357357355,-5.7257257257257255,-5.7157157157157155,-5.7057057057057055,-5.6956956956956954,-5.685685685685685,-5.675675675675675,-5.665665665665665,-5.655655655655655,-5.645645645645645,-5.635635635635635,-5.625625625625625,-5.615615615615615,-5.605605605605605,-5.595595595595595,-5.585585585585585,-5.575575575575575,-5.565565565565565,-5.555555555555555,-5.545545545545545,-5.535535535535535,-5.525525525525525,-5.515515515515515,-5.505505505505505,-5.495495495495495,-5.485485485485485,-5.475475475475475,-5.465465465465465,-5.455455455455455,-5.445445445445445,-5.435435435435435,-5.425425425425425,-5.415415415415415,-5.405405405405405,-5.395395395395395,-5.385385385385385,-5.375375375375375,-5.365365365365365,-5.355355355355355,-5.345345345345345,-5.335335335335335,-5.325325325325325,-5.315315315315315,-5.305305305305305,-5.295295295295295,-5.285285285285285,-5.275275275275275,-5.265265265265265,-5.255255255255255,-5.245245245245245,-5.235235235235235,-5.225225225225225,-5.215215215215215,-5.205205205205205,-5.195195195195195,-5.185185185185185,-5.175175175175175,-5.165165165165165,-5.155155155155155,-5.145145145145145,-5.135135135135135,-5.125125125125125,-5.115115115115115,-5.105105105105105,-5.095095095095095,-5.085085085085085,-5.075075075075075,-5.065065065065065,-5.055055055055055,-5.045045045045045,-5.035035035035035,-5.025025025025025,-5.015015015015015,-5.005005005005005,-4.994994994994995,-4.984984984984985,-4.974974974974975,-4.964964964964965,-4.954954954954955,-4.944944944944945,-4.934934934934935,-4.924924924924925,-4.914914914914915,-4.904904904904905,-4.894894894894895,-4.884884884884885,-4.874874874874875,-4.864864864864865,-4.854854854854855,-4.844844844844845,-4.834834834834835,-4.824824824824825,-4.814814814814815,-4.804804804804805,-4.794794794794795,-4.784784784784785,-4.774774774774775,-4.764764764764765,-4.754754754754755,-4.744744744744745,-4.734734734734735,-4.724724724724725,-4.714714714714715,-4.704704704704705,-4.694694694694695,-4.684684684684685,-4.674674674674675,-4.664664664664665,-4.654654654654655,-4.644644644644645,-4.634634634634635,-4.624624624624625,-4.614614614614615,-4.604604604604605,-4.594594594594595,-4.584584584584585,-4.574574574574575,-4.564564564564565,-4.554554554554555,-4.544544544544545,-4.534534534534535,-4.524524524524525,-4.514514514514515,-4.504504504504505,-4.494494494494495,-4.484484484484485,-4.474474474474475,-4.464464464464465,-4.454454454454455,-4.444444444444445,-4.434434434434435,-4.424424424424425,-4.414414414414415,-4.404404404404405,-4.394394394394395,-4.384384384384385,-4.374374374374375,-4.364364364364365,-4.354354354354355,-4.344344344344345,-4.334334334334335,-4.324324324324325,-4.314314314314315,-4.3043043043043046,-4.2942942942942945,-4.2842842842842845,-4.2742742742742745,-4.2642642642642645,-4.2542542542542545,-4.2442442442442445,-4.2342342342342345,-4.2242242242242245,-4.2142142142142145,-4.2042042042042045,-4.1941941941941945,-4.1841841841841845,-4.1741741741741745,-4.1641641641641645,-4.1541541541541545,-4.1441441441441444,-4.134134134134134,-4.124124124124124,-4.114114114114114,-4.104104104104104,-4.094094094094094,-4.084084084084084,-4.074074074074074,-4.064064064064064,-4.054054054054054,-4.044044044044044,-4.034034034034034,-4.024024024024024,-4.014014014014014,-4.004004004004004,-3.993993993993994,-3.983983983983984,-3.973973973973974,-3.963963963963964,-3.953953953953954,-3.943943943943944,-3.933933933933934,-3.923923923923924,-3.913913913913914,-3.903903903903904,-3.893893893893894,-3.883883883883884,-3.873873873873874,-3.863863863863864,-3.853853853853854,-3.843843843843844,-3.833833833833834,-3.823823823823824,-3.813813813813814,-3.803803803803804,-3.793793793793794,-3.7837837837837838,-3.7737737737737738,-3.7637637637637638,-3.7537537537537538,-3.7437437437437437,-3.7337337337337337,-3.7237237237237237,-3.7137137137137137,-3.7037037037037037,-3.6936936936936937,-3.6836836836836837,-3.6736736736736737,-3.6636636636636637,-3.6536536536536537,-3.6436436436436437,-3.6336336336336337,-3.6236236236236237,-3.6136136136136137,-3.6036036036036037,-3.5935935935935936,-3.5835835835835836,-3.5735735735735736,-3.5635635635635636,-3.5535535535535536,-3.5435435435435436,-3.5335335335335336,-3.5235235235235236,-3.5135135135135136,-3.5035035035035036,-3.4934934934934936,-3.4834834834834836,-3.4734734734734736,-3.4634634634634636,-3.4534534534534536,-3.4434434434434436,-3.4334334334334335,-3.4234234234234235,-3.4134134134134135,-3.4034034034034035,-3.3933933933933935,-3.3833833833833835,-3.3733733733733735,-3.3633633633633635,-3.3533533533533535,-3.3433433433433435,-3.3333333333333335,-3.3233233233233235,-3.3133133133133135,-3.3033033033033035,-3.2932932932932935,-3.2832832832832834,-3.2732732732732734,-3.2632632632632634,-3.2532532532532534,-3.2432432432432434,-3.2332332332332334,-3.2232232232232234,-3.2132132132132134,-3.2032032032032034,-3.1931931931931934,-3.1831831831831834,-3.1731731731731734,-3.1631631631631634,-3.1531531531531534,-3.1431431431431434,-3.1331331331331334,-3.123123123123123,-3.113113113113113,-3.103103103103103,-3.093093093093093,-3.083083083083083,-3.073073073073073,-3.063063063063063,-3.053053053053053,-3.043043043043043,-3.033033033033033,-3.023023023023023,-3.013013013013013,-3.003003003003003,-2.992992992992993,-2.982982982982983,-2.972972972972973,-2.962962962962963,-2.952952952952953,-2.942942942942943,-2.932932932932933,-2.9229229229229228,-2.9129129129129128,-2.9029029029029028,-2.8928928928928928,-2.8828828828828827,-2.8728728728728727,-2.8628628628628627,-2.8528528528528527,-2.8428428428428427,-2.8328328328328327,-2.8228228228228227,-2.8128128128128127,-2.8028028028028027,-2.7927927927927927,-2.7827827827827827,-2.7727727727727727,-2.7627627627627627,-2.7527527527527527,-2.7427427427427427,-2.7327327327327327,-2.7227227227227226,-2.7127127127127126,-2.7027027027027026,-2.6926926926926926,-2.6826826826826826,-2.6726726726726726,-2.6626626626626626,-2.6526526526526526,-2.6426426426426426,-2.6326326326326326,-2.6226226226226226,-2.6126126126126126,-2.6026026026026026,-2.5925925925925926,-2.5825825825825826,-2.5725725725725725,-2.5625625625625625,-2.5525525525525525,-2.5425425425425425,-2.5325325325325325,-2.5225225225225225,-2.5125125125125125,-2.5025025025025025,-2.4924924924924925,-2.4824824824824825,-2.4724724724724725,-2.4624624624624625,-2.4524524524524525,-2.4424424424424425,-2.4324324324324325,-2.4224224224224224,-2.4124124124124124,-2.4024024024024024,-2.3923923923923924,-2.3823823823823824,-2.3723723723723724,-2.3623623623623624,-2.3523523523523524,-2.3423423423423424,-2.3323323323323324,-2.3223223223223224,-2.3123123123123124,-2.3023023023023024,-2.2922922922922924,-2.2822822822822824,-2.2722722722722724,-2.2622622622622623,-2.2522522522522523,-2.2422422422422423,-2.2322322322322323,-2.2222222222222223,-2.2122122122122123,-2.2022022022022023,-2.1921921921921923,-2.1821821821821823,-2.1721721721721723,-2.1621621621621623,-2.1521521521521523,-2.1421421421421423,-2.1321321321321323,-2.1221221221221223,-2.1121121121121122,-2.1021021021021022,-2.0920920920920922,-2.0820820820820822,-2.0720720720720722,-2.062062062062062,-2.052052052052052,-2.042042042042042,-2.032032032032032,-2.022022022022022,-2.012012012012012,-2.002002002002002,-1.991991991991992,-1.981981981981982,-1.971971971971972,-1.961961961961962,-1.951951951951952,-1.941941941941942,-1.931931931931932,-1.921921921921922,-1.911911911911912,-1.901901901901902,-1.8918918918918919,-1.8818818818818819,-1.8718718718718719,-1.8618618618618619,-1.8518518518518519,-1.8418418418418419,-1.8318318318318318,-1.8218218218218218,-1.8118118118118118,-1.8018018018018018,-1.7917917917917918,-1.7817817817817818,-1.7717717717717718,-1.7617617617617618,-1.7517517517517518,-1.7417417417417418,-1.7317317317317318,-1.7217217217217218,-1.7117117117117118,-1.7017017017017018,-1.6916916916916918,-1.6816816816816818,-1.6716716716716717,-1.6616616616616617,-1.6516516516516517,-1.6416416416416417,-1.6316316316316317,-1.6216216216216217,-1.6116116116116117,-1.6016016016016017,-1.5915915915915917,-1.5815815815815817,-1.5715715715715717,-1.5615615615615615,-1.5515515515515514,-1.5415415415415414,-1.5315315315315314,-1.5215215215215214,-1.5115115115115114,-1.5015015015015014,-1.4914914914914914,-1.4814814814814814,-1.4714714714714714,-1.4614614614614614,-1.4514514514514514,-1.4414414414414414,-1.4314314314314314,-1.4214214214214214,-1.4114114114114114,-1.4014014014014013,-1.3913913913913913,-1.3813813813813813,-1.3713713713713713,-1.3613613613613613,-1.3513513513513513,-1.3413413413413413,-1.3313313313313313,-1.3213213213213213,-1.3113113113113113,-1.3013013013013013,-1.2912912912912913,-1.2812812812812813,-1.2712712712712713,-1.2612612612612613,-1.2512512512512513,-1.2412412412412412,-1.2312312312312312,-1.2212212212212212,-1.2112112112112112,-1.2012012012012012,-1.1911911911911912,-1.1811811811811812,-1.1711711711711712,-1.1611611611611612,-1.1511511511511512,-1.1411411411411412,-1.1311311311311312,-1.1211211211211212,-1.1111111111111112,-1.1011011011011012,-1.0910910910910911,-1.0810810810810811,-1.0710710710710711,-1.0610610610610611,-1.0510510510510511,-1.0410410410410411,-1.031031031031031,-1.021021021021021,-1.011011011011011,-1.001001001001001,-0.990990990990991,-0.980980980980981,-0.970970970970971,-0.960960960960961,-0.950950950950951,-0.9409409409409409,-0.9309309309309309,-0.9209209209209209,-0.9109109109109109,-0.9009009009009009,-0.8908908908908909,-0.8808808808808809,-0.8708708708708709,-0.8608608608608609,-0.8508508508508509,-0.8408408408408409,-0.8308308308308309,-0.8208208208208209,-0.8108108108108109,-0.8008008008008008,-0.7907907907907908,-0.7807807807807807,-0.7707707707707707,-0.7607607607607607,-0.7507507507507507,-0.7407407407407407,-0.7307307307307307,-0.7207207207207207,-0.7107107107107107,-0.7007007007007007,-0.6906906906906907,-0.6806806806806807,-0.6706706706706707,-0.6606606606606606,-0.6506506506506506,-0.6406406406406406,-0.6306306306306306,-0.6206206206206206,-0.6106106106106106,-0.6006006006006006,-0.5905905905905906,-0.5805805805805806,-0.5705705705705706,-0.5605605605605606,-0.5505505505505506,-0.5405405405405406,-0.5305305305305306,-0.5205205205205206,-0.5105105105105106,-0.5005005005005005,-0.4904904904904905,-0.4804804804804805,-0.47047047047047047,-0.46046046046046046,-0.45045045045045046,-0.44044044044044045,-0.43043043043043044,-0.42042042042042044,-0.41041041041041043,-0.4004004004004004,-0.39039039039039036,-0.38038038038038036,-0.37037037037037035,-0.36036036036036034,-0.35035035035035034,-0.34034034034034033,-0.3303303303303303,-0.3203203203203203,-0.3103103103103103,-0.3003003003003003,-0.2902902902902903,-0.2802802802802803,-0.2702702702702703,-0.2602602602602603,-0.2502502502502503,-0.24024024024024024,-0.23023023023023023,-0.22022022022022023,-0.21021021021021022,-0.2002002002002002,-0.19019019019019018,-0.18018018018018017,-0.17017017017017017,-0.16016016016016016,-0.15015015015015015,-0.14014014014014015,-0.13013013013013014,-0.12012012012012012,-0.11011011011011011,-0.1001001001001001,-0.09009009009009009,-0.08008008008008008,-0.07007007007007007,-0.06006006006006006,-0.05005005005005005,-0.04004004004004004,-0.03003003003003003,-0.02002002002002002,-0.01001001001001001,0.0]} \ No newline at end of file diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/positive.json b/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/positive.json new file mode 100644 index 000000000000..c5b674366922 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/positive.json @@ -0,0 +1 @@ +{"expected":[0.984807753012208,0.9848380756445957,0.9848683682170103,0.984898630728527,0.9849288631782223,0.9849590655651733,0.9849892378884583,0.9850193801471561,0.9850494923403469,0.9850795744671115,0.9851096265265318,0.9851396485176903,0.9851696404396709,0.9851996022915581,0.9852295340724374,0.9852594357813951,0.9852893074175184,0.9853191489798959,0.9853489604676164,0.9853787418797703,0.9854084932154483,0.9854382144737425,0.9854679056537456,0.9854975667545514,0.9855271977752545,0.9855567987149506,0.9855863695727362,0.9856159103477085,0.985645421038966,0.985674901645608,0.9857043521667345,0.9857337726014468,0.9857631629488467,0.9857925232080373,0.9858218533781223,0.9858511534582066,0.9858804234473958,0.9859096633447965,0.9859388731495162,0.9859680528606635,0.9859972024773475,0.9860263219986786,0.986055411423768,0.9860844707517277,0.9861134999816709,0.9861424991127115,0.9861714681439643,0.9862004070745451,0.9862293159035707,0.9862581946301586,0.9862870432534274,0.9863158617724966,0.9863446501864864,0.9863734084945184,0.9864021366957145,0.9864308347891981,0.9864595027740931,0.9864881406495245,0.9865167484146182,0.9865453260685011,0.9865738736103008,0.9866023910391459,0.9866308783541662,0.986659335554492,0.9866877626392547,0.9867161596075869,0.9867445264586214,0.9867728631914927,0.9868011698053358,0.9868294462992867,0.9868576926724824,0.9868859089240605,0.98691409505316,0.9869422510589205,0.9869703769404826,0.9869984726969878,0.9870265383275786,0.9870545738313983,0.9870825792075912,0.9871105544553025,0.9871384995736784,0.9871664145618657,0.9871942994190126,0.987222154144268,0.9872499787367814,0.9872777731957039,0.9873055375201868,0.9873332717093828,0.9873609757624454,0.987388649678529,0.9874162934567889,0.9874439070963813,0.9874714905964634,0.9874990439561933,0.9875265671747299,0.987554060251233,0.9875815231848638,0.9876089559747838,0.9876363586201558,0.9876637311201433,0.9876910734739108,0.9877183856806238,0.9877456677394486,0.9877729196495526,0.9878001414101037,0.9878273330202715,0.9878544944792256,0.9878816257861371,0.9879087269401781,0.987935797940521,0.9879628387863397,0.987989849476809,0.9880168300111042,0.9880437803884019,0.9880707006078796,0.9880975906687154,0.9881244505700887,0.9881512803111796,0.9881780798911691,0.9882048493092395,0.9882315885645734,0.9882582976563548,0.9882849765837685,0.9883116253459999,0.988338243942236,0.9883648323716642,0.9883913906334728,0.9884179187268513,0.9884444166509899,0.98847088440508,0.9884973219883135,0.9885237293998835,0.9885501066389841,0.9885764537048102,0.9886027705965574,0.9886290573134227,0.9886553138546035,0.9886815402192985,0.9887077364067074,0.9887339024160302,0.9887600382464686,0.9887861438972246,0.9888122193675016,0.9888382646565037,0.9888642797634357,0.9888902646875037,0.9889162194279146,0.9889421439838761,0.9889680383545971,0.988993902539287,0.9890197365371565,0.9890455403474169,0.9890713139692807,0.9890970574019614,0.9891227706446729,0.9891484536966306,0.9891741065570506,0.9891997292251498,0.9892253217001461,0.9892508839812584,0.9892764160677064,0.9893019179587109,0.9893273896534935,0.9893528311512767,0.9893782424512839,0.9894036235527396,0.989428974454869,0.9894542951568983,0.9894795856580548,0.9895048459575664,0.9895300760546621,0.989555275948572,0.9895804456385265,0.9896055851237578,0.9896306944034985,0.989655773476982,0.9896808223434429,0.9897058410021168,0.9897308294522398,0.9897557876930493,0.9897807157237835,0.9898056135436816,0.9898304811519835,0.9898553185479303,0.9898801257307639,0.989904902699727,0.9899296494540635,0.9899543659930178,0.9899790523158358,0.9900037084217638,0.9900283343100493,0.9900529299799407,0.9900774954306871,0.9901020306615388,0.990126535671747,0.9901510104605636,0.9901754550272417,0.990199869371035,0.9902242534911985,0.9902486073869878,0.9902729310576597,0.9902972245024715,0.990321487720682,0.9903457207115504,0.990369923474337,0.9903940960083034,0.9904182383127116,0.9904423503868246,0.9904664322299065,0.9904904838412223,0.9905145052200379,0.9905384963656201,0.9905624572772365,0.9905863879541558,0.9906102883956477,0.9906341586009825,0.9906579985694317,0.9906818083002678,0.9907055877927637,0.9907293370461939,0.9907530560598334,0.9907767448329582,0.9908004033648453,0.9908240316547726,0.9908476297020188,0.9908711975058637,0.9908947350655879,0.9909182423804731,0.9909417194498016,0.9909651662728569,0.9909885828489233,0.9910119691772862,0.9910353252572316,0.9910586510880468,0.9910819466690196,0.9911052119994392,0.9911284470785953,0.9911516519057788,0.9911748264802813,0.9911979708013956,0.9912210848684152,0.9912441686806346,0.9912672222373492,0.9912902455378554,0.9913132385814504,0.9913362013674324,0.9913591338951006,0.9913820361637549,0.9914049081726963,0.9914277499212267,0.991450561408649,0.9914733426342668,0.9914960935973848,0.9915188142973085,0.9915415047333446,0.9915641649048004,0.9915867948109841,0.9916093944512052,0.9916319638247739,0.9916545029310011,0.9916770117691991,0.9916994903386808,0.9917219386387599,0.9917443566687515,0.9917667444279711,0.9917891019157354,0.9918114291313622,0.9918337260741699,0.9918559927434778,0.9918782291386063,0.9919004352588768,0.9919226111036116,0.9919447566721336,0.9919668719637669,0.9919889569778365,0.9920110117136683,0.9920330361705892,0.992055030347927,0.9920769942450102,0.9920989278611685,0.9921208311957324,0.9921427042480333,0.9921645470174038,0.9921863595031769,0.992208141704687,0.9922298936212691,0.9922516152522595,0.9922733065969951,0.9922949676548137,0.9923165984250543,0.9923381989070565,0.9923597691001612,0.9923813090037099,0.9924028186170452,0.9924242979395105,0.9924457469704502,0.9924671657092096,0.992488554155135,0.9925099123075736,0.9925312401658734,0.9925525377293835,0.9925738049974536,0.9925950419694349,0.9926162486446791,0.9926374250225387,0.9926585711023677,0.9926796868835203,0.9927007723653521,0.9927218275472197,0.9927428524284803,0.992763847008492,0.9927848112866142,0.992805745262207,0.9928266489346315,0.9928475223032494,0.9928683653674237,0.9928891781265184,0.9929099605798981,0.9929307127269285,0.992951434566976,0.9929721260994082,0.9929927873235938,0.9930134182389019,0.9930340188447028,0.9930545891403677,0.9930751291252689,0.9930956387987793,0.9931161181602729,0.9931365672091248,0.9931569859447106,0.9931773743664072,0.9931977324735922,0.9932180602656443,0.993238357741943,0.9932586249018688,0.993278861744803,0.993299068270128,0.9933192444772271,0.9933393903654842,0.9933595059342848,0.9933795911830146,0.9933996461110606,0.9934196707178107,0.9934396650026537,0.9934596289649793,0.9934795626041782,0.993499465919642,0.993519338910763,0.9935391815769349,0.9935589939175518,0.993578775932009,0.9935985276197029,0.9936182489800305,0.9936379400123898,0.9936576007161798,0.9936772310908004,0.9936968311356525,0.9937164008501378,0.993735940233659,0.9937554492856195,0.9937749280054242,0.9937943763924784,0.9938137944461883,0.9938331821659614,0.9938525395512059,0.993871866601331,0.9938911633157467,0.993910429693864,0.9939296657350949,0.9939488714388522,0.9939680468045499,0.9939871918316023,0.9940063065194256,0.9940253908674358,0.9940444448750507,0.9940634685416887,0.9940824618667692,0.9941014248497123,0.9941203574899393,0.9941392597868722,0.9941581317399343,0.9941769733485494,0.9941957846121424,0.9942145655301392,0.9942333161019665,0.9942520363270521,0.9942707262048243,0.9942893857347129,0.9943080149161484,0.994326613748562,0.9943451822313861,0.994363720364054,0.9943822281459997,0.9944007055766585,0.9944191526554663,0.99443756938186,0.9944559557552776,0.9944743117751578,0.9944926374409402,0.9945109327520657,0.9945291977079758,0.9945474323081129,0.9945656365519207,0.9945838104388431,0.9946019539683258,0.9946200671398149,0.9946381499527573,0.9946562024066015,0.994674224500796,0.9946922162347911,0.9947101776080375,0.994728108619987,0.9947460092700922,0.9947638795578068,0.9947817194825853,0.9947995290438832,0.994817308241157,0.9948350570738639,0.9948527755414622,0.9948704636434111,0.9948881213791708,0.9949057487482021,0.9949233457499672,0.9949409123839288,0.9949584486495509,0.9949759545462981,0.994993430073636,0.9950108752310316,0.9950282900179519,0.9950456744338657,0.9950630284782424,0.995080352150552,0.995097645450266,0.9951149083768566,0.9951321409297966,0.9951493431085602,0.9951665149126224,0.995183656341459,0.9952007673945468,0.9952178480713634,0.9952348983713877,0.9952519182940991,0.9952689078389781,0.9952858670055063,0.9953027957931658,0.9953196942014402,0.9953365622298134,0.9953533998777707,0.9953702071447982,0.9953869840303828,0.9954037305340125,0.9954204466551761,0.9954371323933635,0.9954537877480653,0.995470412718773,0.9954870073049794,0.9955035715061779,0.9955201053218629,0.9955366087515297,0.9955530817946746,0.9955695244507948,0.9955859367193886,0.9956023185999546,0.9956186700919933,0.9956349911950053,0.9956512819084925,0.9956675422319577,0.9956837721649046,0.9956999717068377,0.9957161408572627,0.9957322796156859,0.9957483879816149,0.9957644659545578,0.9957805135340241,0.9957965307195239,0.9958125175105682,0.9958284739066691,0.9958443999073396,0.9958602955120937,0.9958761607204459,0.9958919955319122,0.9959077999460093,0.9959235739622547,0.9959393175801671,0.9959550307992656,0.995970713619071,0.9959863660391044,0.996001988058888,0.9960175796779451,0.9960331408957998,0.996048671711977,0.9960641721260027,0.996079642137404,0.9960950817457085,0.9961104909504449,0.9961258697511429,0.9961412181473333,0.9961565361385474,0.9961718237243177,0.9961870809041775,0.9962023076776614,0.9962175040443043,0.9962326700036426,0.9962478055552133,0.9962629106985544,0.9962779854332049,0.9962930297587046,0.9963080436745944,0.996323027180416,0.9963379802757121,0.9963529029600261,0.9963677952329028,0.9963826570938874,0.9963974885425265,0.9964122895783672,0.996427060200958,0.9964418004098476,0.9964565102045866,0.9964711895847257,0.9964858385498169,0.9965004570994132,0.9965150452330681,0.9965296029503368,0.9965441302507745,0.9965586271339381,0.9965730935993848,0.9965875296466734,0.9966019352753631,0.9966163104850142,0.996630655275188,0.9966449696454465,0.9966592535953529,0.9966735071244712,0.9966877302323663,0.9967019229186043,0.9967160851827517,0.9967302170243763,0.9967443184430468,0.9967583894383328,0.9967724300098049,0.9967864401570343,0.9968004198795936,0.9968143691770559,0.9968282880489956,0.9968421764949879,0.9968560345146087,0.9968698621074351,0.996883659273045,0.9968974260110174,0.996911162320932,0.9969248682023696,0.9969385436549117,0.9969521886781411,0.9969658032716411,0.9969793874349964,0.996992941167792,0.9970064644696146,0.9970199573400513,0.9970334197786902,0.9970468517851203,0.9970602533589319,0.9970736244997157,0.9970869652070636,0.9971002754805686,0.9971135553198242,0.997126804724425,0.997140023693967,0.9971532122280464,0.9971663703262607,0.9971794979882083,0.9971925952134885,0.9972056620017016,0.9972186983524486,0.9972317042653318,0.997244679739954,0.9972576247759194,0.9972705393728327,0.9972834235302998,0.9972962772479274,0.9973091005253232,0.9973218933620958,0.9973346557578546,0.9973473877122102,0.997360089224774,0.9973727602951582,0.9973854009229762,0.997398011107842,0.9974105908493708,0.9974231401471786,0.9974356590008825,0.9974481474101001,0.9974606053744505,0.9974730328935533,0.997485429967029,0.9974977965944997,0.9975101327755875,0.9975224385099162,0.9975347137971098,0.997546958636794,0.9975591730285948,0.9975713569721395,0.9975835104670562,0.9975956335129739,0.9976077261095226,0.9976197882563332,0.9976318199530376,0.9976438211992684,0.9976557919946595,0.9976677323388453,0.9976796422314614,0.9976915216721445,0.9977033706605317,0.9977151891962615,0.9977269772789731,0.9977387349083068,0.9977504620839036,0.9977621588054055,0.9977738250724558,0.9977854608846981,0.9977970662417773,0.9978086411433393,0.9978201855890307,0.9978316995784992,0.9978431831113932,0.9978546361873624,0.997866058806057,0.9978774509671287,0.9978888126702294,0.9979001439150125,0.997911444701132,0.9979227150282433,0.997933954896002,0.9979451643040652,0.9979563432520908,0.9979674917397375,0.9979786097666652,0.9979896973325343,0.9980007544370065,0.9980117810797443,0.9980227772604111,0.9980337429786713,0.9980446782341903,0.9980555830266341,0.99806645735567,0.9980773012209662,0.9980881146221914,0.9980988975590157,0.9981096500311101,0.9981203720381463,0.998131063579797,0.9981417246557359,0.9981523552656376,0.9981629554091775,0.9981735250860324,0.9981840642958794,0.9981945730383968,0.9982050513132639,0.9982154991201608,0.9982259164587689,0.9982363033287699,0.9982466597298469,0.9982569856616839,0.9982672811239656,0.9982775461163776,0.9982877806386069,0.9982979846903409,0.9983081582712682,0.9983183013810784,0.9983284140194616,0.9983384961861094,0.998348547880714,0.9983585691029686,0.9983685598525672,0.998378520129205,0.998388449932578,0.9983983492623831,0.998408218118318,0.9984180565000816,0.9984278644073736,0.9984376418398947,0.9984473887973463,0.998457105279431,0.9984667912858521,0.9984764468163142,0.9984860718705224,0.998495666448183,0.9985052305490031,0.9985147641726908,0.9985242673189552,0.9985337399875059,0.9985431821780542,0.9985525938903116,0.998561975123991,0.9985713258788059,0.9985806461544711,0.9985899359507019,0.998599195267215,0.9986084241037274,0.9986176224599578,0.9986267903356253,0.99863592773045,0.998645034644153,0.9986541110764564,0.9986631570270832,0.9986721724957572,0.9986811574822033,0.9986901119861473,0.9986990360073157,0.9987079295454362,0.9987167926002374,0.9987256251714487,0.9987344272588006,0.9987431988620243,0.9987519399808522,0.9987606506150174,0.9987693307642541,0.9987779804282974,0.9987865996068831,0.9987951882997482,0.9988037465066306,0.9988122742272691,0.9988207714614035,0.9988292382087741,0.9988376744691229,0.998846080242192,0.9988544555277251,0.9988628003254665,0.9988711146351614,0.9988793984565562,0.9988876517893979,0.9988958746334345,0.9989040669884154,0.9989122288540901,0.9989203602302099,0.9989284611165262,0.998936531512792,0.998944571418761,0.9989525808341876,0.9989605597588275,0.998968508192437,0.9989764261347736,0.9989843135855956,0.9989921705446623,0.9989999970117337,0.9990077929865712,0.9990155584689366,0.9990232934585931,0.9990309979553044,0.9990386719588354,0.999046315468952,0.9990539284854207,0.9990615110080093,0.9990690630364862,0.999076584570621,0.9990840756101841,0.9990915361549468,0.9990989662046815,0.9991063657591612,0.9991137348181603,0.9991210733814538,0.9991283814488177,0.9991356590200288,0.9991429060948651,0.9991501226731054,0.9991573087545293,0.9991644643389178,0.9991715894260521,0.9991786840157149,0.9991857481076897,0.9991927817017607,0.9991997847977134,0.9992067573953339,0.9992136994944096,0.9992206110947285,0.9992274921960794,0.9992343427982526,0.9992411629010389,0.99924795250423,0.9992547116076189,0.9992614402109992,0.9992681383141653,0.9992748059169131,0.9992814430190389,0.99928804962034,0.9992946257206151,0.9993011713196631,0.9993076864172845,0.9993141710132804,0.9993206251074527,0.9993270486996044,0.9993334417895396,0.9993398043770633,0.9993461364619809,0.9993524380440993,0.9993587091232263,0.9993649496991703,0.999371159771741,0.9993773393407486,0.9993834884060047,0.9993896069673215,0.9993956950245123,0.9994017525773913,0.9994077796257735,0.9994137761694751,0.999419742208313,0.999425677742105,0.99943158277067,0.9994374572938277,0.999443301311399,0.9994491148232053,0.9994548978290693,0.9994606503288144,0.9994663723222651,0.9994720638092466,0.9994777247895853,0.9994833552631084,0.9994889552296441,0.9994945246890213,0.9995000636410701,0.9995055720856215,0.9995110500225073,0.9995164974515603,0.9995219143726143,0.9995273007855038,0.9995326566900645,0.999537982086133,0.9995432769735466,0.9995485413521438,0.9995537752217638,0.9995589785822471,0.9995641514334345,0.9995692937751683,0.9995744056072917,0.9995794869296484,0.9995845377420834,0.9995895580444427,0.9995945478365729,0.9995995071183217,0.9996044358895376,0.9996093341500705,0.9996142018997707,0.9996190391384896,0.9996238458660796,0.9996286220823939,0.9996333677872868,0.9996380829806134,0.9996427676622299,0.9996474218319932,0.9996520454897613,0.999656638635393,0.9996612012687481,0.9996657333896874,0.9996702349980726,0.9996747060937662,0.9996791466766318,0.9996835567465339,0.9996879363033376,0.9996922853469097,0.9996966038771171,0.999700891893828,0.9997051493969118,0.9997093763862382,0.9997135728616785,0.9997177388231043,0.9997218742703887,0.9997259792034053,0.9997300536220289,0.9997340975261352,0.9997381109156006,0.9997420937903028,0.99974604615012,0.9997499679949317,0.9997538593246181,0.9997577201390606,0.9997615504381412,0.9997653502217431,0.9997691194897502,0.9997728582420476,0.9997765664785211,0.9997802441990574,0.9997838914035445,0.9997875080918709,0.9997910942639262,0.999794649919601,0.9997981750587868,0.9998016696813758,0.9998051337872617,0.9998085673763385,0.9998119704485015,0.9998153430036466,0.9998186850416713,0.9998219965624732,0.9998252775659513,0.9998285280520056,0.9998317480205368,0.9998349374714467,0.9998380964046377,0.9998412248200137,0.999844322717479,0.9998473900969391,0.9998504269583004,0.9998534333014703,0.9998564091263568,0.9998593544328691,0.9998622692209176,0.999865153490413,0.9998680072412675,0.9998708304733938,0.9998736231867058,0.9998763853811183,0.9998791170565471,0.9998818182129086,0.9998844888501204,0.9998871289681011,0.9998897385667699,0.9998923176460474,0.9998948662058548,0.9998973842461142,0.9998998717667489,0.9999023287676828,0.999904755248841,0.9999071512101496,0.9999095166515352,0.9999118515729257,0.9999141559742498,0.9999164298554373,0.9999186732164187,0.9999208860571255,0.9999230683774901,0.9999252201774461,0.9999273414569276,0.99992943221587,0.9999314924542094,0.999933522171883,0.9999355213688288,0.9999374900449857,0.9999394282002937,0.9999413358346936,0.9999432129481273,0.9999450595405374,0.9999468756118673,0.999948661162062,0.999950416191067,0.9999521406988282,0.9999538346852935,0.999955498150411,0.9999571310941299,0.9999587335164003,0.9999603054171735,0.9999618467964013,0.9999633576540368,0.9999648379900338,0.9999662878043472,0.9999677070969326,0.9999690958677468,0.9999704541167476,0.9999717818438931,0.999973079049143,0.9999743457324578,0.9999755818937988,0.9999767875331281,0.9999779626504091,0.9999791072456058,0.9999802213186832,0.9999813048696076,0.9999823578983457,0.9999833804048652,0.9999843723891353,0.9999853338511254,0.9999862647908063,0.9999871652081496,0.9999880351031277,0.999988874475714,0.9999896833258832,0.9999904616536103,0.9999912094588717,0.9999919267416444,0.9999926135019067,0.9999932697396375,0.999993895454817,0.9999944906474257,0.9999950553174459,0.99999558946486,0.9999960930896519,0.9999965661918061,0.9999970087713081,0.9999974208281447,0.9999978023623031,0.9999981533737716,0.9999984738625397,0.9999987638285974,0.999999023271936,0.9999992521925475,0.9999994505904248,0.9999996184655622,0.9999997558179542,0.9999998626475968,0.9999999389544867,0.9999999847386215,1.0],"x":[10.0,9.98998998998999,9.97997997997998,9.96996996996997,9.95995995995996,9.94994994994995,9.93993993993994,9.92992992992993,9.91991991991992,9.90990990990991,9.8998998998999,9.88988988988989,9.87987987987988,9.86986986986987,9.85985985985986,9.84984984984985,9.83983983983984,9.82982982982983,9.81981981981982,9.80980980980981,9.7997997997998,9.78978978978979,9.77977977977978,9.76976976976977,9.75975975975976,9.74974974974975,9.73973973973974,9.72972972972973,9.71971971971972,9.70970970970971,9.6996996996997,9.68968968968969,9.67967967967968,9.66966966966967,9.65965965965966,9.64964964964965,9.63963963963964,9.62962962962963,9.61961961961962,9.60960960960961,9.5995995995996,9.58958958958959,9.57957957957958,9.56956956956957,9.55955955955956,9.54954954954955,9.53953953953954,9.52952952952953,9.51951951951952,9.50950950950951,9.4994994994995,9.48948948948949,9.47947947947948,9.46946946946947,9.45945945945946,9.44944944944945,9.43943943943944,9.42942942942943,9.41941941941942,9.40940940940941,9.3993993993994,9.38938938938939,9.37937937937938,9.36936936936937,9.35935935935936,9.34934934934935,9.33933933933934,9.32932932932933,9.31931931931932,9.30930930930931,9.2992992992993,9.28928928928929,9.27927927927928,9.26926926926927,9.25925925925926,9.24924924924925,9.23923923923924,9.22922922922923,9.21921921921922,9.20920920920921,9.1991991991992,9.18918918918919,9.17917917917918,9.16916916916917,9.15915915915916,9.14914914914915,9.13913913913914,9.12912912912913,9.11911911911912,9.10910910910911,9.0990990990991,9.08908908908909,9.07907907907908,9.06906906906907,9.05905905905906,9.04904904904905,9.03903903903904,9.02902902902903,9.01901901901902,9.00900900900901,8.998998998999,8.98898898898899,8.97897897897898,8.96896896896897,8.95895895895896,8.94894894894895,8.93893893893894,8.92892892892893,8.91891891891892,8.90890890890891,8.8988988988989,8.88888888888889,8.87887887887888,8.86886886886887,8.85885885885886,8.84884884884885,8.83883883883884,8.82882882882883,8.81881881881882,8.80880880880881,8.7987987987988,8.78878878878879,8.77877877877878,8.76876876876877,8.75875875875876,8.74874874874875,8.73873873873874,8.72872872872873,8.71871871871872,8.70870870870871,8.6986986986987,8.68868868868869,8.67867867867868,8.66866866866867,8.65865865865866,8.64864864864865,8.63863863863864,8.62862862862863,8.618618618618619,8.608608608608609,8.598598598598599,8.588588588588589,8.578578578578579,8.568568568568569,8.558558558558559,8.548548548548549,8.538538538538539,8.528528528528529,8.518518518518519,8.508508508508509,8.498498498498499,8.488488488488489,8.478478478478479,8.468468468468469,8.458458458458459,8.448448448448449,8.438438438438439,8.428428428428429,8.418418418418419,8.408408408408409,8.398398398398399,8.388388388388389,8.378378378378379,8.368368368368369,8.358358358358359,8.348348348348349,8.338338338338339,8.328328328328329,8.318318318318319,8.308308308308309,8.298298298298299,8.288288288288289,8.278278278278279,8.268268268268269,8.258258258258259,8.248248248248249,8.238238238238239,8.228228228228229,8.218218218218219,8.208208208208209,8.198198198198199,8.188188188188189,8.178178178178179,8.168168168168169,8.158158158158159,8.148148148148149,8.138138138138139,8.128128128128129,8.118118118118119,8.108108108108109,8.098098098098099,8.088088088088089,8.078078078078079,8.068068068068069,8.058058058058059,8.048048048048049,8.038038038038039,8.028028028028029,8.018018018018019,8.008008008008009,7.997997997997998,7.987987987987988,7.977977977977978,7.967967967967968,7.957957957957958,7.947947947947948,7.937937937937938,7.927927927927928,7.917917917917918,7.907907907907908,7.897897897897898,7.887887887887888,7.877877877877878,7.867867867867868,7.857857857857858,7.847847847847848,7.837837837837838,7.827827827827828,7.817817817817818,7.807807807807808,7.797797797797798,7.787787787787788,7.777777777777778,7.767767767767768,7.757757757757758,7.747747747747748,7.737737737737738,7.727727727727728,7.717717717717718,7.707707707707708,7.697697697697698,7.687687687687688,7.677677677677678,7.667667667667668,7.657657657657658,7.647647647647648,7.637637637637638,7.627627627627628,7.617617617617618,7.607607607607608,7.597597597597598,7.587587587587588,7.5775775775775776,7.5675675675675675,7.5575575575575575,7.5475475475475475,7.5375375375375375,7.5275275275275275,7.5175175175175175,7.5075075075075075,7.4974974974974975,7.4874874874874875,7.4774774774774775,7.4674674674674675,7.4574574574574575,7.4474474474474475,7.4374374374374375,7.4274274274274275,7.4174174174174174,7.407407407407407,7.397397397397397,7.387387387387387,7.377377377377377,7.367367367367367,7.357357357357357,7.347347347347347,7.337337337337337,7.327327327327327,7.317317317317317,7.307307307307307,7.297297297297297,7.287287287287287,7.277277277277277,7.267267267267267,7.257257257257257,7.247247247247247,7.237237237237237,7.227227227227227,7.217217217217217,7.207207207207207,7.197197197197197,7.187187187187187,7.177177177177177,7.167167167167167,7.157157157157157,7.147147147147147,7.137137137137137,7.127127127127127,7.117117117117117,7.107107107107107,7.097097097097097,7.087087087087087,7.077077077077077,7.067067067067067,7.057057057057057,7.047047047047047,7.037037037037037,7.027027027027027,7.017017017017017,7.007007007007007,6.996996996996997,6.986986986986987,6.976976976976977,6.966966966966967,6.956956956956957,6.946946946946947,6.936936936936937,6.926926926926927,6.916916916916917,6.906906906906907,6.896896896896897,6.886886886886887,6.876876876876877,6.866866866866867,6.856856856856857,6.846846846846847,6.836836836836837,6.826826826826827,6.816816816816817,6.806806806806807,6.796796796796797,6.786786786786787,6.776776776776777,6.766766766766767,6.756756756756757,6.746746746746747,6.736736736736737,6.726726726726727,6.716716716716717,6.706706706706707,6.696696696696697,6.686686686686687,6.676676676676677,6.666666666666667,6.656656656656657,6.646646646646647,6.636636636636637,6.626626626626627,6.616616616616617,6.606606606606607,6.596596596596597,6.586586586586587,6.576576576576577,6.566566566566567,6.556556556556557,6.546546546546547,6.536536536536537,6.526526526526527,6.516516516516517,6.506506506506507,6.496496496496497,6.486486486486487,6.476476476476477,6.466466466466467,6.456456456456457,6.446446446446447,6.436436436436437,6.426426426426427,6.416416416416417,6.406406406406407,6.396396396396397,6.386386386386387,6.376376376376377,6.366366366366367,6.356356356356357,6.346346346346347,6.336336336336337,6.326326326326327,6.316316316316317,6.306306306306307,6.296296296296297,6.286286286286287,6.276276276276277,6.266266266266267,6.256256256256257,6.246246246246246,6.236236236236236,6.226226226226226,6.216216216216216,6.206206206206206,6.196196196196196,6.186186186186186,6.176176176176176,6.166166166166166,6.156156156156156,6.146146146146146,6.136136136136136,6.126126126126126,6.116116116116116,6.106106106106106,6.096096096096096,6.086086086086086,6.076076076076076,6.066066066066066,6.056056056056056,6.046046046046046,6.036036036036036,6.026026026026026,6.016016016016016,6.006006006006006,5.995995995995996,5.985985985985986,5.975975975975976,5.965965965965966,5.955955955955956,5.945945945945946,5.935935935935936,5.925925925925926,5.915915915915916,5.905905905905906,5.895895895895896,5.885885885885886,5.875875875875876,5.865865865865866,5.8558558558558556,5.8458458458458455,5.8358358358358355,5.8258258258258255,5.8158158158158155,5.8058058058058055,5.7957957957957955,5.7857857857857855,5.7757757757757755,5.7657657657657655,5.7557557557557555,5.7457457457457455,5.7357357357357355,5.7257257257257255,5.7157157157157155,5.7057057057057055,5.6956956956956954,5.685685685685685,5.675675675675675,5.665665665665665,5.655655655655655,5.645645645645645,5.635635635635635,5.625625625625625,5.615615615615615,5.605605605605605,5.595595595595595,5.585585585585585,5.575575575575575,5.565565565565565,5.555555555555555,5.545545545545545,5.535535535535535,5.525525525525525,5.515515515515515,5.505505505505505,5.495495495495495,5.485485485485485,5.475475475475475,5.465465465465465,5.455455455455455,5.445445445445445,5.435435435435435,5.425425425425425,5.415415415415415,5.405405405405405,5.395395395395395,5.385385385385385,5.375375375375375,5.365365365365365,5.355355355355355,5.345345345345345,5.335335335335335,5.325325325325325,5.315315315315315,5.305305305305305,5.295295295295295,5.285285285285285,5.275275275275275,5.265265265265265,5.255255255255255,5.245245245245245,5.235235235235235,5.225225225225225,5.215215215215215,5.205205205205205,5.195195195195195,5.185185185185185,5.175175175175175,5.165165165165165,5.155155155155155,5.145145145145145,5.135135135135135,5.125125125125125,5.115115115115115,5.105105105105105,5.095095095095095,5.085085085085085,5.075075075075075,5.065065065065065,5.055055055055055,5.045045045045045,5.035035035035035,5.025025025025025,5.015015015015015,5.005005005005005,4.994994994994995,4.984984984984985,4.974974974974975,4.964964964964965,4.954954954954955,4.944944944944945,4.934934934934935,4.924924924924925,4.914914914914915,4.904904904904905,4.894894894894895,4.884884884884885,4.874874874874875,4.864864864864865,4.854854854854855,4.844844844844845,4.834834834834835,4.824824824824825,4.814814814814815,4.804804804804805,4.794794794794795,4.784784784784785,4.774774774774775,4.764764764764765,4.754754754754755,4.744744744744745,4.734734734734735,4.724724724724725,4.714714714714715,4.704704704704705,4.694694694694695,4.684684684684685,4.674674674674675,4.664664664664665,4.654654654654655,4.644644644644645,4.634634634634635,4.624624624624625,4.614614614614615,4.604604604604605,4.594594594594595,4.584584584584585,4.574574574574575,4.564564564564565,4.554554554554555,4.544544544544545,4.534534534534535,4.524524524524525,4.514514514514515,4.504504504504505,4.494494494494495,4.484484484484485,4.474474474474475,4.464464464464465,4.454454454454455,4.444444444444445,4.434434434434435,4.424424424424425,4.414414414414415,4.404404404404405,4.394394394394395,4.384384384384385,4.374374374374375,4.364364364364365,4.354354354354355,4.344344344344345,4.334334334334335,4.324324324324325,4.314314314314315,4.3043043043043046,4.2942942942942945,4.2842842842842845,4.2742742742742745,4.2642642642642645,4.2542542542542545,4.2442442442442445,4.2342342342342345,4.2242242242242245,4.2142142142142145,4.2042042042042045,4.1941941941941945,4.1841841841841845,4.1741741741741745,4.1641641641641645,4.1541541541541545,4.1441441441441444,4.134134134134134,4.124124124124124,4.114114114114114,4.104104104104104,4.094094094094094,4.084084084084084,4.074074074074074,4.064064064064064,4.054054054054054,4.044044044044044,4.034034034034034,4.024024024024024,4.014014014014014,4.004004004004004,3.993993993993994,3.983983983983984,3.973973973973974,3.963963963963964,3.953953953953954,3.943943943943944,3.933933933933934,3.923923923923924,3.913913913913914,3.903903903903904,3.893893893893894,3.883883883883884,3.873873873873874,3.863863863863864,3.853853853853854,3.843843843843844,3.833833833833834,3.823823823823824,3.813813813813814,3.803803803803804,3.793793793793794,3.7837837837837838,3.7737737737737738,3.7637637637637638,3.7537537537537538,3.7437437437437437,3.7337337337337337,3.7237237237237237,3.7137137137137137,3.7037037037037037,3.6936936936936937,3.6836836836836837,3.6736736736736737,3.6636636636636637,3.6536536536536537,3.6436436436436437,3.6336336336336337,3.6236236236236237,3.6136136136136137,3.6036036036036037,3.5935935935935936,3.5835835835835836,3.5735735735735736,3.5635635635635636,3.5535535535535536,3.5435435435435436,3.5335335335335336,3.5235235235235236,3.5135135135135136,3.5035035035035036,3.4934934934934936,3.4834834834834836,3.4734734734734736,3.4634634634634636,3.4534534534534536,3.4434434434434436,3.4334334334334335,3.4234234234234235,3.4134134134134135,3.4034034034034035,3.3933933933933935,3.3833833833833835,3.3733733733733735,3.3633633633633635,3.3533533533533535,3.3433433433433435,3.3333333333333335,3.3233233233233235,3.3133133133133135,3.3033033033033035,3.2932932932932935,3.2832832832832834,3.2732732732732734,3.2632632632632634,3.2532532532532534,3.2432432432432434,3.2332332332332334,3.2232232232232234,3.2132132132132134,3.2032032032032034,3.1931931931931934,3.1831831831831834,3.1731731731731734,3.1631631631631634,3.1531531531531534,3.1431431431431434,3.1331331331331334,3.123123123123123,3.113113113113113,3.103103103103103,3.093093093093093,3.083083083083083,3.073073073073073,3.063063063063063,3.053053053053053,3.043043043043043,3.033033033033033,3.023023023023023,3.013013013013013,3.003003003003003,2.992992992992993,2.982982982982983,2.972972972972973,2.962962962962963,2.952952952952953,2.942942942942943,2.932932932932933,2.9229229229229228,2.9129129129129128,2.9029029029029028,2.8928928928928928,2.8828828828828827,2.8728728728728727,2.8628628628628627,2.8528528528528527,2.8428428428428427,2.8328328328328327,2.8228228228228227,2.8128128128128127,2.8028028028028027,2.7927927927927927,2.7827827827827827,2.7727727727727727,2.7627627627627627,2.7527527527527527,2.7427427427427427,2.7327327327327327,2.7227227227227226,2.7127127127127126,2.7027027027027026,2.6926926926926926,2.6826826826826826,2.6726726726726726,2.6626626626626626,2.6526526526526526,2.6426426426426426,2.6326326326326326,2.6226226226226226,2.6126126126126126,2.6026026026026026,2.5925925925925926,2.5825825825825826,2.5725725725725725,2.5625625625625625,2.5525525525525525,2.5425425425425425,2.5325325325325325,2.5225225225225225,2.5125125125125125,2.5025025025025025,2.4924924924924925,2.4824824824824825,2.4724724724724725,2.4624624624624625,2.4524524524524525,2.4424424424424425,2.4324324324324325,2.4224224224224224,2.4124124124124124,2.4024024024024024,2.3923923923923924,2.3823823823823824,2.3723723723723724,2.3623623623623624,2.3523523523523524,2.3423423423423424,2.3323323323323324,2.3223223223223224,2.3123123123123124,2.3023023023023024,2.2922922922922924,2.2822822822822824,2.2722722722722724,2.2622622622622623,2.2522522522522523,2.2422422422422423,2.2322322322322323,2.2222222222222223,2.2122122122122123,2.2022022022022023,2.1921921921921923,2.1821821821821823,2.1721721721721723,2.1621621621621623,2.1521521521521523,2.1421421421421423,2.1321321321321323,2.1221221221221223,2.1121121121121122,2.1021021021021022,2.0920920920920922,2.0820820820820822,2.0720720720720722,2.062062062062062,2.052052052052052,2.042042042042042,2.032032032032032,2.022022022022022,2.012012012012012,2.002002002002002,1.991991991991992,1.981981981981982,1.971971971971972,1.961961961961962,1.951951951951952,1.941941941941942,1.931931931931932,1.921921921921922,1.911911911911912,1.901901901901902,1.8918918918918919,1.8818818818818819,1.8718718718718719,1.8618618618618619,1.8518518518518519,1.8418418418418419,1.8318318318318318,1.8218218218218218,1.8118118118118118,1.8018018018018018,1.7917917917917918,1.7817817817817818,1.7717717717717718,1.7617617617617618,1.7517517517517518,1.7417417417417418,1.7317317317317318,1.7217217217217218,1.7117117117117118,1.7017017017017018,1.6916916916916918,1.6816816816816818,1.6716716716716717,1.6616616616616617,1.6516516516516517,1.6416416416416417,1.6316316316316317,1.6216216216216217,1.6116116116116117,1.6016016016016017,1.5915915915915917,1.5815815815815817,1.5715715715715717,1.5615615615615615,1.5515515515515514,1.5415415415415414,1.5315315315315314,1.5215215215215214,1.5115115115115114,1.5015015015015014,1.4914914914914914,1.4814814814814814,1.4714714714714714,1.4614614614614614,1.4514514514514514,1.4414414414414414,1.4314314314314314,1.4214214214214214,1.4114114114114114,1.4014014014014013,1.3913913913913913,1.3813813813813813,1.3713713713713713,1.3613613613613613,1.3513513513513513,1.3413413413413413,1.3313313313313313,1.3213213213213213,1.3113113113113113,1.3013013013013013,1.2912912912912913,1.2812812812812813,1.2712712712712713,1.2612612612612613,1.2512512512512513,1.2412412412412412,1.2312312312312312,1.2212212212212212,1.2112112112112112,1.2012012012012012,1.1911911911911912,1.1811811811811812,1.1711711711711712,1.1611611611611612,1.1511511511511512,1.1411411411411412,1.1311311311311312,1.1211211211211212,1.1111111111111112,1.1011011011011012,1.0910910910910911,1.0810810810810811,1.0710710710710711,1.0610610610610611,1.0510510510510511,1.0410410410410411,1.031031031031031,1.021021021021021,1.011011011011011,1.001001001001001,0.990990990990991,0.980980980980981,0.970970970970971,0.960960960960961,0.950950950950951,0.9409409409409409,0.9309309309309309,0.9209209209209209,0.9109109109109109,0.9009009009009009,0.8908908908908909,0.8808808808808809,0.8708708708708709,0.8608608608608609,0.8508508508508509,0.8408408408408409,0.8308308308308309,0.8208208208208209,0.8108108108108109,0.8008008008008008,0.7907907907907908,0.7807807807807807,0.7707707707707707,0.7607607607607607,0.7507507507507507,0.7407407407407407,0.7307307307307307,0.7207207207207207,0.7107107107107107,0.7007007007007007,0.6906906906906907,0.6806806806806807,0.6706706706706707,0.6606606606606606,0.6506506506506506,0.6406406406406406,0.6306306306306306,0.6206206206206206,0.6106106106106106,0.6006006006006006,0.5905905905905906,0.5805805805805806,0.5705705705705706,0.5605605605605606,0.5505505505505506,0.5405405405405406,0.5305305305305306,0.5205205205205206,0.5105105105105106,0.5005005005005005,0.4904904904904905,0.4804804804804805,0.47047047047047047,0.46046046046046046,0.45045045045045046,0.44044044044044045,0.43043043043043044,0.42042042042042044,0.41041041041041043,0.4004004004004004,0.39039039039039036,0.38038038038038036,0.37037037037037035,0.36036036036036034,0.35035035035035034,0.34034034034034033,0.3303303303303303,0.3203203203203203,0.3103103103103103,0.3003003003003003,0.2902902902902903,0.2802802802802803,0.2702702702702703,0.2602602602602603,0.2502502502502503,0.24024024024024024,0.23023023023023023,0.22022022022022023,0.21021021021021022,0.2002002002002002,0.19019019019019018,0.18018018018018017,0.17017017017017017,0.16016016016016016,0.15015015015015015,0.14014014014014015,0.13013013013013014,0.12012012012012012,0.11011011011011011,0.1001001001001001,0.09009009009009009,0.08008008008008008,0.07007007007007007,0.06006006006006006,0.05005005005005005,0.04004004004004004,0.03003003003003003,0.02002002002002002,0.01001001001001001,0.0]} \ No newline at end of file diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/runner.jl new file mode 100644 index 000000000000..927894ccc16c --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/fixtures/julia/runner.jl @@ -0,0 +1,69 @@ +#!/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( -1, stop = 1, length = 2001 ); +julia> gen( x, \"data.json\" ); +``` +""" +function gen( domain, name ) + x = collect( domain ); + y = cosd.( 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 ); + +# Generate fixture data for negative values: +x = range( -10.0, stop = 0, length = 1000 ); +gen( x, "negative.json" ); + +# Generate fixture data for positive values: +x = range( 10.0, stop = 0, length = 1000 ); +gen( x, "positive.json" ); \ No newline at end of file diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js index 825375c521c8..6d7c607dba25 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js @@ -22,11 +22,19 @@ var tape = require( 'tape' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var abs = require( '@stdlib/math/base/special/abs' ); +var EPS = require( '@stdlib/constants/float64/eps' ); var PINF = require( '@stdlib/constants/float64/pinf' ); var NINF = require( '@stdlib/constants/float64/ninf' ); var cosd = require( './../lib' ); +// FIXTURES // + +var negative = require( './fixtures/julia/negative.json' ); +var positive = require( './fixtures/julia/positive.json' ); + + // TESTS // tape( 'main export is a function', function test( t ) { @@ -41,6 +49,54 @@ tape( 'if provided a `NaN`, the function returns `NaN`', function test( t ) { t.end(); }); +tape( 'the function computes the cosine (negative values)', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + + x = negative.x; + expected = negative.expected; + + for ( i = 0; i < x.length; i++ ) { + y = cosd( x[i] ); + if ( y === expected[ i ] ) { + t.equal( y, expected[ i ], 'x: '+x[i]+'. E: '+expected[i] ); + } else { + delta = abs( y - expected[i] ); + tol = EPS * abs( expected[i] ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + +tape( 'the function computes the cosine (positive values)', function test( t ) { + var expected; + var delta; + var tol; + var x; + var y; + var i; + + x = positive.x; + expected = positive.expected; + + for ( i = 0; i < x.length; i++ ) { + y = cosd( x[i] ); + if ( y === expected[ i ] ) { + t.equal( y, expected[ i ], 'x: '+x[i]+'. E: '+expected[i] ); + } else { + delta = abs( y - expected[i] ); + tol = EPS * abs( expected[i] ); + t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+expected[i]+'. tol: '+tol+'. Δ: '+delta+'.' ); + } + } + t.end(); +}); + tape( 'if provided `+infinity`, the function returns `NaN`', function test( t ) { var v = cosd( PINF ); t.equal( isnan( v ), true, 'returns NaN' ); From 9c9e2e4b065e9f8adf582d577ef809af96b21add Mon Sep 17 00:00:00 2001 From: the-r3aper7 Date: Sun, 10 Mar 2024 01:32:10 +0530 Subject: [PATCH 3/7] feat: add math/base/special/cosd --- lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js index e8e5718878b6..5e0a0c6d1d88 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js @@ -52,7 +52,11 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' ); function cosd( x ) { var xRad; - if (isInteger(((x / 90) + 1) / 2) || Infinity < x || -Infinity > x) { + if (x === Infinity || x === -Infinity) { + return NaN; + } + + if (isInteger(((x / 90) - 1) / 2)) { return 0; } From f4a39fa6eb9c82988f07d15fabc11c74bbcf8bf6 Mon Sep 17 00:00:00 2001 From: Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com> Date: Mon, 11 Mar 2024 07:48:51 +0530 Subject: [PATCH 4/7] Update test.js Signed-off-by: Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com> --- lib/node_modules/@stdlib/math/base/special/cosd/test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js index 6d7c607dba25..d4dc53be7508 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js @@ -49,7 +49,7 @@ tape( 'if provided a `NaN`, the function returns `NaN`', function test( t ) { t.end(); }); -tape( 'the function computes the cosine (negative values)', function test( t ) { +tape( 'the function computes the cosine in degrees (negative values)', function test( t ) { var expected; var delta; var tol; @@ -73,7 +73,7 @@ tape( 'the function computes the cosine (negative values)', function test( t ) { t.end(); }); -tape( 'the function computes the cosine (positive values)', function test( t ) { +tape( 'the function computes the cosine in degrees (positive values)', function test( t ) { var expected; var delta; var tol; From b3c11088918313904878ab3e67f7f5b43d411bda Mon Sep 17 00:00:00 2001 From: the-r3aper7 Date: Tue, 12 Mar 2024 22:05:24 +0530 Subject: [PATCH 5/7] feat: add math/base/special/cosd --- .../@stdlib/math/base/special/cosd/README.md | 4 ++-- .../@stdlib/math/base/special/cosd/docs/repl.txt | 4 ++-- .../math/base/special/cosd/docs/types/index.d.ts | 4 ++-- .../@stdlib/math/base/special/cosd/lib/index.js | 2 +- .../@stdlib/math/base/special/cosd/lib/main.js | 12 ++++++------ .../@stdlib/math/base/special/cosd/package.json | 2 +- .../@stdlib/math/base/special/cosd/test/test.js | 4 ++-- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/README.md b/lib/node_modules/@stdlib/math/base/special/cosd/README.md index 518309baa98e..a086c5b10349 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/README.md +++ b/lib/node_modules/@stdlib/math/base/special/cosd/README.md @@ -20,7 +20,7 @@ limitations under the License. # cosd -> Evaluate the [cosine][trigonometric-functions] of a degree. +> Computes the [cosine][trigonometric-functions] of an angle measured in degrees.
@@ -36,7 +36,7 @@ var cosd = require( '@stdlib/math/base/special/cosd' ); #### cosd( x ) -Evaluates the [cosine][trigonometric-functions] of `x` (in degree). +Computes the [cosine][trigonometric-functions] of `x` (in degrees). ```javascript var v = cosd( 0.0 ); diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt index 4aa375a29838..7f07f8a57fdc 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt @@ -1,11 +1,11 @@ {{alias}}( x ) - Computes the cosine of a degree. + Computes the cosine of an angle measured in degrees. Parameters ---------- x: number - Input value (in degree). + Input value (in degrees). Returns ------- diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts index 99f8a2bc50ba..e227f8947863 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts @@ -19,9 +19,9 @@ // TypeScript Version: 4.1 /** -* Evaluates the cosine of a degree. +* Computes the cosine of an angle measured in degrees. * -* @param x - input value (in degree) +* @param x - input value (in degrees) * @returns cosine * * @example diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js index d49bccd18d40..f2143a6ea3bd 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js @@ -19,7 +19,7 @@ 'use strict'; /** -* Evaluate the cosine of a degree. +* Compute the cosine of an angle measured in degrees. * * @module @stdlib/math/base/special/cosd * diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js index 5e0a0c6d1d88..2bbfdf7ae297 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js @@ -28,9 +28,9 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' ); // MAIN // /** -* Evaluates the cosine of a degree. +* Computes the cosine of an angle measured in degrees. * -* @param {number} x - input value (in degree) +* @param {number} x - input value (in degrees) * @returns {number} cosine * * @example @@ -52,17 +52,17 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' ); function cosd( x ) { var xRad; - if (x === Infinity || x === -Infinity) { + if ( x === Infinity || x === -Infinity ) { return NaN; } - if (isInteger(((x / 90) - 1) / 2)) { + if ( isInteger( ( ( x / 90 ) - 1 ) / 2 ) ) { return 0; } - xRad = deg2rad(x); + xRad = deg2rad( x ); - return cos(xRad); + return cos( xRad ); } diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/package.json b/lib/node_modules/@stdlib/math/base/special/cosd/package.json index 45e4a27630d9..c49c90436982 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/package.json +++ b/lib/node_modules/@stdlib/math/base/special/cosd/package.json @@ -1,7 +1,7 @@ { "name": "@stdlib/math/base/special/cosd", "version": "0.0.0", - "description": "Evaluate the cosine of a degree.", + "description": "Compute the cosine of an angle measured in degrees.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors", diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js index d4dc53be7508..8e548ce54733 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js @@ -49,7 +49,7 @@ tape( 'if provided a `NaN`, the function returns `NaN`', function test( t ) { t.end(); }); -tape( 'the function computes the cosine in degrees (negative values)', function test( t ) { +tape( 'the function computes the cosine of an angle measured in degrees.(negative values)', function test( t ) { var expected; var delta; var tol; @@ -73,7 +73,7 @@ tape( 'the function computes the cosine in degrees (negative values)', function t.end(); }); -tape( 'the function computes the cosine in degrees (positive values)', function test( t ) { +tape( 'the function computes the cosine of an angle measured in degrees. (positive values)', function test( t ) { var expected; var delta; var tol; From eb1305fc052b32ac1ccfadb37a7e83363b1b49cf Mon Sep 17 00:00:00 2001 From: the-r3aper7 Date: Wed, 13 Mar 2024 08:20:20 +0530 Subject: [PATCH 6/7] feat: add math/base/special/cosd --- .../@stdlib/math/base/special/cosd/README.md | 4 ++-- .../@stdlib/math/base/special/cosd/docs/repl.txt | 4 ++-- .../@stdlib/math/base/special/cosd/docs/types/index.d.ts | 4 ++-- .../@stdlib/math/base/special/cosd/docs/types/test.ts | 2 +- .../@stdlib/math/base/special/cosd/lib/index.js | 4 ++-- .../@stdlib/math/base/special/cosd/lib/main.js | 9 +++++---- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/README.md b/lib/node_modules/@stdlib/math/base/special/cosd/README.md index a086c5b10349..075e7711c4e3 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/README.md +++ b/lib/node_modules/@stdlib/math/base/special/cosd/README.md @@ -42,10 +42,10 @@ Computes the [cosine][trigonometric-functions] of `x` (in degrees). var v = cosd( 0.0 ); // returns 1.0 -v = cosd( 60 ); +v = cosd( 60.0 ); // returns ~0.5 -v = cosd( 90 ); +v = cosd( 90.0 ); // returns 0.0 v = cosd( NaN ); diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt b/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt index 7f07f8a57fdc..f787117ef912 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/repl.txt @@ -16,9 +16,9 @@ -------- > var y = {{alias}}( 0.0 ) 1.0 - > y = {{alias}}( 90 ) + > y = {{alias}}( 90.0 ) 0.0 - > y = {{alias}}( 60 ) + > y = {{alias}}( 60.0 ) ~0.5 > y = {{alias}}( NaN ) NaN diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts index e227f8947863..e3fced8bcede 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/index.d.ts @@ -29,11 +29,11 @@ * // returns 1.0 * * @example - * var v = cosd( 60 ); + * var v = cosd( 60.0 ); * // returns ~0.5 * * @example - * var v = cosd( 90 ); + * var v = cosd( 90.0); * // returns 0 * * @example diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts index e2a8099c7555..417ef6af9526 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts +++ b/lib/node_modules/@stdlib/math/base/special/cosd/docs/types/test.ts @@ -23,7 +23,7 @@ import cosd = require( './index' ); // The function returns a number... { - cosd( 60 ); // $ExpectType number + cosd( 60.0 ); // $ExpectType number } // The compiler throws an error if the function is provided a value other than a number... diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js index f2143a6ea3bd..4a2afdf399ef 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/index.js @@ -29,10 +29,10 @@ * var v = cosd( 0.0 ); * // returns 1.0 * -* v = cosd( 90 ); +* v = cosd( 90.0 ); * // returns 0.0 * -* v = cosd( 60 ); +* v = cosd( 60.0 ); * // returns ~0.5 * * v = cosd( NaN ); diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js index 2bbfdf7ae297..8f52d5379ece 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js @@ -23,6 +23,7 @@ var cos = require( '@stdlib/math/base/special/cos' ); var deg2rad = require( '@stdlib/math/base/special/deg2rad' ); var isInteger = require( '@stdlib/math/base/assert/is-integer' ); +var isInfinite = require( '@stdlib/assert/is-infinite' ); // MAIN // @@ -38,11 +39,11 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' ); * // returns 1.0 * * @example -* var v = cosd( 90 ); +* var v = cosd( 90.0 ); * // returns 0.0 * * @example -* var v = cosd( 60 ); +* var v = cosd( 60.0 ); * // returns ~0.5 * * @example @@ -52,11 +53,11 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' ); function cosd( x ) { var xRad; - if ( x === Infinity || x === -Infinity ) { + if ( isInfinite( x ) ) { return NaN; } - if ( isInteger( ( ( x / 90 ) - 1 ) / 2 ) ) { + if ( isInteger( ( ( x / 90.0 ) - 1.0 ) / 2.0 ) ) { return 0; } From 63161a72d60c2c1b9df643177de4e30d25bd40a3 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Sun, 17 Mar 2024 15:48:12 -0400 Subject: [PATCH 7/7] Apply suggestions from code review Signed-off-by: Philipp Burckhardt --- lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js | 2 +- lib/node_modules/@stdlib/math/base/special/cosd/test/test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js index 8f52d5379ece..45dded4b3936 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/lib/main.js @@ -58,7 +58,7 @@ function cosd( x ) { } if ( isInteger( ( ( x / 90.0 ) - 1.0 ) / 2.0 ) ) { - return 0; + return 0.0; } xRad = deg2rad( x ); diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js index 8e548ce54733..b33df0f1f22a 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js +++ b/lib/node_modules/@stdlib/math/base/special/cosd/test/test.js @@ -49,7 +49,7 @@ tape( 'if provided a `NaN`, the function returns `NaN`', function test( t ) { t.end(); }); -tape( 'the function computes the cosine of an angle measured in degrees.(negative values)', function test( t ) { +tape( 'the function computes the cosine of an angle measured in degrees (negative values)', function test( t ) { var expected; var delta; var tol; @@ -73,7 +73,7 @@ tape( 'the function computes the cosine of an angle measured in degrees.(negativ t.end(); }); -tape( 'the function computes the cosine of an angle measured in degrees. (positive values)', function test( t ) { +tape( 'the function computes the cosine of an angle measured in degrees (positive values)', function test( t ) { var expected; var delta; var tol;