From 0dc0a93ec5d7b84563d5ba5894ec1f177ec14958 Mon Sep 17 00:00:00 2001 From: DivyanshuVorrtex Date: Tue, 9 Dec 2025 16:27:24 +0000 Subject: [PATCH 1/5] feat: adding the value of pi-squared for float16 --- .../constants/float16/pi-squared/README.md | 133 ++++++++++++++++++ .../float16/pi-squared/docs/repl.txt | 12 ++ .../float16/pi-squared/docs/types/index.d.ts | 33 +++++ .../float16/pi-squared/docs/types/test.ts | 28 ++++ .../float16/pi-squared/examples/index.js | 24 ++++ .../stdlib/constants/float16/pi_squared.h | 27 ++++ .../constants/float16/pi-squared/lib/index.js | 52 +++++++ .../float16/pi-squared/manifest.json | 36 +++++ .../constants/float16/pi-squared/package.json | 65 +++++++++ .../constants/float16/pi-squared/test/test.js | 57 ++++++++ 10 files changed, 467 insertions(+) create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/README.md create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/examples/index.js create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/include/stdlib/constants/float16/pi_squared.h create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/lib/index.js create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/manifest.json create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/package.json create mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md b/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md new file mode 100644 index 000000000000..40a10d7d29fe --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md @@ -0,0 +1,133 @@ + + +# FLOAT16_PI_SQUARED + +> [π][@stdlib/constants/float16/pi]². + +
+ +## Usage + +```javascript +var FLOAT16_PI_SQUARED = require( '@stdlib/constants/float16/pi-squared' ); +``` + +#### FLOAT16_PI_SQUARED + +Square of the mathematical constant [π][@stdlib/constants/float16/pi]. + +```javascript +var bool = ( FLOAT16_PI_SQUARED === 9.859375 ); +// returns true +``` + +
+ + + +
+ +## Examples + + + + + +```javascript +var FLOAT16_PI_SQUARED = require( '@stdlib/constants/float16/pi-squared' ); + +console.log( FLOAT16_PI_SQUARED ); +// => 9.859375 +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/constants/float16/pi_squared.h" +``` + +#### STDLIB_CONSTANT_FLOAT16_PI_SQUARED + +Macro for the square of the mathematical constant [π][@stdlib/constants/float16/pi]. + +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/repl.txt b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/repl.txt new file mode 100644 index 000000000000..b68d3c1092b4 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/repl.txt @@ -0,0 +1,12 @@ + +{{alias}} + Square of the mathematical constant `π`. + + Examples + -------- + > {{alias}} + 9.859375 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/index.d.ts new file mode 100644 index 000000000000..0b8b897dcaa8 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/index.d.ts @@ -0,0 +1,33 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Square of the mathematical constant `π`. +* +* @example +* var val = FLOAT16_PI_SQUARED; +* // returns 9.859375 +*/ +declare const FLOAT16_PI_SQUARED: number; + + +// EXPORTS // + +export = FLOAT16_PI_SQUARED; diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/test.ts b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/test.ts new file mode 100644 index 000000000000..7a1147e5e3e9 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/test.ts @@ -0,0 +1,28 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import FLOAT16_PI_SQUARED = require( './index' ); + + +// TESTS // + +// The export is a number... +{ + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + FLOAT16_PI_SQUARED; // $ExpectType number +} diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/examples/index.js b/lib/node_modules/@stdlib/constants/float16/pi-squared/examples/index.js new file mode 100644 index 000000000000..830d97086abc --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/examples/index.js @@ -0,0 +1,24 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var FLOAT16_PI_SQUARED = require( './../lib' ); + +console.log( FLOAT16_PI_SQUARED ); +// => 9.859375 diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/include/stdlib/constants/float16/pi_squared.h b/lib/node_modules/@stdlib/constants/float16/pi-squared/include/stdlib/constants/float16/pi_squared.h new file mode 100644 index 000000000000..93434268c817 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/include/stdlib/constants/float16/pi_squared.h @@ -0,0 +1,27 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#ifndef STDLIB_CONSTANTS_FLOAT16_PI_SQUARED_H +#define STDLIB_CONSTANTS_FLOAT16_PI_SQUARED_H + +/** +* Macro for π². +*/ +#define STDLIB_CONSTANT_FLOAT16_PI_SQUARED 9.859375 + +#endif // !STDLIB_CONSTANTS_FLOAT16_PI_SQUARED_H diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/lib/index.js b/lib/node_modules/@stdlib/constants/float16/pi-squared/lib/index.js new file mode 100644 index 000000000000..a47b835be0bd --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/lib/index.js @@ -0,0 +1,52 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Square of the mathematical constant `π`. +* +* @module @stdlib/constants/float16/pi-squared +* @type {number} +* +* @example +* var FLOAT16_PI_SQUARED = require( '@stdlib/constants/float16/pi-squared' ); +* // returns 9.859375 +*/ + +// MODULES // + +var float64ToFloat16 = require( '@stdlib/number/float64/base/to-float16' ); + + +// MAIN // + +/** +* Square of the mathematical constant `π`. +* +* @constant +* @type {number} +* @default 9.859375 +* @see [Wikipedia]{@link https://en.wikipedia.org/wiki/Pi} +*/ +var FLOAT16_PI_SQUARED = float64ToFloat16( 9.859375 ); + + +// EXPORTS // + +module.exports = FLOAT16_PI_SQUARED; diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/manifest.json b/lib/node_modules/@stdlib/constants/float16/pi-squared/manifest.json new file mode 100644 index 000000000000..844d692f6439 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/manifest.json @@ -0,0 +1,36 @@ +{ + "options": {}, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": true + }, + { + "field": "include", + "resolve": true, + "relative": true + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "src": [], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [] + } + ] +} diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/package.json b/lib/node_modules/@stdlib/constants/float16/pi-squared/package.json new file mode 100644 index 000000000000..537afceb8237 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/package.json @@ -0,0 +1,65 @@ +{ + "name": "@stdlib/constants/float16/pi-squared", + "version": "0.0.0", + "description": "π².", + "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": { + "doc": "./docs", + "example": "./examples", + "include": "./include", + "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", + "constant", + "const", + "mathematics", + "math", + "pi", + "ieee754", + "floating-point", + "float", + "float16", + "squared" + ] +} diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js b/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js new file mode 100644 index 000000000000..d9ef2b30aaf6 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js @@ -0,0 +1,57 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var absf = require( '@stdlib/math/base/special/absf' ); +var float64ToFloat16 = require( '@stdlib/number/float64/base/to-float16' ); +var EPS = require( '@stdlib/constants/float16/eps' ); +var PI = require( '@stdlib/constants/float16/pi' ); +var FLOAT16_PI_SQUARED = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a number', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof FLOAT16_PI_SQUARED, 'number', 'main export is a number' ); + t.end(); +}); + +tape( 'export is a single-precision floating-point number equal to 9.859375', function test( t ) { + t.strictEqual( FLOAT16_PI_SQUARED, 9.859375, 'returns expected value' ); + t.end(); +}); + +tape( 'export equals π²', function test( t ) { + var delta; + var tol; + var v; + + v = float64ToFloat16( pow( PI, 2 ) ); + + delta = absf( FLOAT16_PI_SQUARED - v ); + tol = EPS * v; + + t.ok( delta <= tol, 'equals π² within tolerance '+tol+'. v: '+v+'. π²: '+FLOAT16_PI_SQUARED+'.' ); + t.end(); +}); From 25c3122466ed11e6845458ed591beab5173ef2e4 Mon Sep 17 00:00:00 2001 From: DivyanshuVorrtex Date: Tue, 9 Dec 2025 16:27:32 +0000 Subject: [PATCH 2/5] feat: adding the value of pi-squared for float16 --- lib/node_modules/@stdlib/constants/float16/pi-squared/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md b/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md index 40a10d7d29fe..8c65656fa406 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md @@ -128,6 +128,8 @@ Macro for the square of the mathematical constant [π][@stdlib/constants/float16 From a743ef08f139415b5f8bf77d1b87e41d92ff70d0 Mon Sep 17 00:00:00 2001 From: DivyanshuVorrtex Date: Wed, 10 Dec 2025 02:44:14 +0000 Subject: [PATCH 3/5] feat: adding the value of pi-squared for float16 --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../constants/float16/pi-squared/README.md | 58 ------------------- .../stdlib/constants/float16/pi_squared.h | 27 --------- .../float16/pi-squared/manifest.json | 36 ------------ .../constants/float16/pi-squared/package.json | 1 - 4 files changed, 122 deletions(-) delete mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/include/stdlib/constants/float16/pi_squared.h delete mode 100644 lib/node_modules/@stdlib/constants/float16/pi-squared/manifest.json diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md b/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md index 8c65656fa406..ac58bb275543 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md @@ -60,64 +60,6 @@ console.log( FLOAT16_PI_SQUARED ); - - - - -* * * - -
- -## C APIs - - - -
- -
- - - - - -
- -### Usage - -```c -#include "stdlib/constants/float16/pi_squared.h" -``` - -#### STDLIB_CONSTANT_FLOAT16_PI_SQUARED - -Macro for the square of the mathematical constant [π][@stdlib/constants/float16/pi]. - -
- - - - - -
- -
- - - - - -
- -
- - - -
- - - - - diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/include/stdlib/constants/float16/pi_squared.h b/lib/node_modules/@stdlib/constants/float16/pi-squared/include/stdlib/constants/float16/pi_squared.h deleted file mode 100644 index 93434268c817..000000000000 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/include/stdlib/constants/float16/pi_squared.h +++ /dev/null @@ -1,27 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -#ifndef STDLIB_CONSTANTS_FLOAT16_PI_SQUARED_H -#define STDLIB_CONSTANTS_FLOAT16_PI_SQUARED_H - -/** -* Macro for π². -*/ -#define STDLIB_CONSTANT_FLOAT16_PI_SQUARED 9.859375 - -#endif // !STDLIB_CONSTANTS_FLOAT16_PI_SQUARED_H diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/manifest.json b/lib/node_modules/@stdlib/constants/float16/pi-squared/manifest.json deleted file mode 100644 index 844d692f6439..000000000000 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "options": {}, - "fields": [ - { - "field": "src", - "resolve": true, - "relative": true - }, - { - "field": "include", - "resolve": true, - "relative": true - }, - { - "field": "libraries", - "resolve": false, - "relative": false - }, - { - "field": "libpath", - "resolve": true, - "relative": false - } - ], - "confs": [ - { - "src": [], - "include": [ - "./include" - ], - "libraries": [], - "libpath": [], - "dependencies": [] - } - ] -} diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/package.json b/lib/node_modules/@stdlib/constants/float16/pi-squared/package.json index 537afceb8237..4ea65bbea97b 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/package.json +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/package.json @@ -17,7 +17,6 @@ "directories": { "doc": "./docs", "example": "./examples", - "include": "./include", "lib": "./lib", "test": "./test" }, From 9d68b72cd2f32f555aabf4c25ed5dd289a916401 Mon Sep 17 00:00:00 2001 From: DivyanshuVorrtex Date: Wed, 10 Dec 2025 03:07:01 +0000 Subject: [PATCH 4/5] feat: adding the value of pi-squared for float16 chores --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed --- --- .../@stdlib/constants/float16/pi-squared/README.md | 4 ++-- .../@stdlib/constants/float16/pi-squared/docs/repl.txt | 2 +- .../constants/float16/pi-squared/docs/types/index.d.ts | 2 +- .../@stdlib/constants/float16/pi-squared/examples/index.js | 2 +- .../@stdlib/constants/float16/pi-squared/lib/index.js | 6 +++--- .../@stdlib/constants/float16/pi-squared/test/test.js | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md b/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md index ac58bb275543..d8563aef32d1 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/README.md @@ -35,7 +35,7 @@ var FLOAT16_PI_SQUARED = require( '@stdlib/constants/float16/pi-squared' ); Square of the mathematical constant [π][@stdlib/constants/float16/pi]. ```javascript -var bool = ( FLOAT16_PI_SQUARED === 9.859375 ); +var bool = ( FLOAT16_PI_SQUARED === 9.8671875 ); // returns true ``` @@ -55,7 +55,7 @@ var bool = ( FLOAT16_PI_SQUARED === 9.859375 ); var FLOAT16_PI_SQUARED = require( '@stdlib/constants/float16/pi-squared' ); console.log( FLOAT16_PI_SQUARED ); -// => 9.859375 +// => 9.8671875 ``` diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/repl.txt b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/repl.txt index b68d3c1092b4..c65e4c267bb1 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/repl.txt +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/repl.txt @@ -5,7 +5,7 @@ Examples -------- > {{alias}} - 9.859375 + 9.8671875 See Also -------- diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/index.d.ts index 0b8b897dcaa8..b879e2da42bf 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/docs/types/index.d.ts @@ -23,7 +23,7 @@ * * @example * var val = FLOAT16_PI_SQUARED; -* // returns 9.859375 +* // returns 9.8671875 */ declare const FLOAT16_PI_SQUARED: number; diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/examples/index.js b/lib/node_modules/@stdlib/constants/float16/pi-squared/examples/index.js index 830d97086abc..753d302051e6 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/examples/index.js +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/examples/index.js @@ -21,4 +21,4 @@ var FLOAT16_PI_SQUARED = require( './../lib' ); console.log( FLOAT16_PI_SQUARED ); -// => 9.859375 +// => 9.8671875 diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/lib/index.js b/lib/node_modules/@stdlib/constants/float16/pi-squared/lib/index.js index a47b835be0bd..8b43a86985e9 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/lib/index.js @@ -26,7 +26,7 @@ * * @example * var FLOAT16_PI_SQUARED = require( '@stdlib/constants/float16/pi-squared' ); -* // returns 9.859375 +* // returns 9.8671875 */ // MODULES // @@ -41,10 +41,10 @@ var float64ToFloat16 = require( '@stdlib/number/float64/base/to-float16' ); * * @constant * @type {number} -* @default 9.859375 +* @default 9.8671875 * @see [Wikipedia]{@link https://en.wikipedia.org/wiki/Pi} */ -var FLOAT16_PI_SQUARED = float64ToFloat16( 9.859375 ); +var FLOAT16_PI_SQUARED = float64ToFloat16( 9.8671875 ); // EXPORTS // diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js b/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js index d9ef2b30aaf6..1955bb8ece9c 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js @@ -37,8 +37,8 @@ tape( 'main export is a number', function test( t ) { t.end(); }); -tape( 'export is a single-precision floating-point number equal to 9.859375', function test( t ) { - t.strictEqual( FLOAT16_PI_SQUARED, 9.859375, 'returns expected value' ); +tape( 'export is a single-precision floating-point number equal to 9.8671875', function test( t ) { + t.strictEqual( FLOAT16_PI_SQUARED, 9.8671875, 'returns expected value' ); t.end(); }); From 70c7c708400dadc7baadb3c2dc8b5fc67c82a7e3 Mon Sep 17 00:00:00 2001 From: DivyanshuVorrtex Date: Wed, 10 Dec 2025 03:18:49 +0000 Subject: [PATCH 5/5] feat: adding the value of pi-squared for float16 chores --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/constants/float16/pi-squared/test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js b/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js index 1955bb8ece9c..0b2503a834cf 100644 --- a/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js +++ b/lib/node_modules/@stdlib/constants/float16/pi-squared/test/test.js @@ -25,7 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var absf = require( '@stdlib/math/base/special/absf' ); var float64ToFloat16 = require( '@stdlib/number/float64/base/to-float16' ); var EPS = require( '@stdlib/constants/float16/eps' ); -var PI = require( '@stdlib/constants/float16/pi' ); +var PI = require( '@stdlib/constants/float32/pi' ); var FLOAT16_PI_SQUARED = require( './../lib' ); @@ -37,7 +37,7 @@ tape( 'main export is a number', function test( t ) { t.end(); }); -tape( 'export is a single-precision floating-point number equal to 9.8671875', function test( t ) { +tape( 'export is a half-precision floating-point number equal to 9.8671875', function test( t ) { t.strictEqual( FLOAT16_PI_SQUARED, 9.8671875, 'returns expected value' ); t.end(); });