From dc563733404b2ed9050be45c0cae2acb67c125cc Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Sat, 15 Mar 2025 20:25:27 +0530 Subject: [PATCH 1/7] feat: add JS implementation --- .../float32/ln-sqrt-two-pi/README.md | 149 ++++++++++++++++++ .../float32/ln-sqrt-two-pi/docs/repl.txt | 12 ++ .../ln-sqrt-two-pi/docs/types/index.d.ts | 33 ++++ .../float32/ln-sqrt-two-pi/docs/types/test.ts | 28 ++++ .../float32/ln-sqrt-two-pi/examples/index.js | 24 +++ .../stdlib/constants/float32/ln_sqrt_two_pi.h | 27 ++++ .../float32/ln-sqrt-two-pi/lib/index.js | 55 +++++++ .../float32/ln-sqrt-two-pi/manifest.json | 36 +++++ .../float32/ln-sqrt-two-pi/package.json | 73 +++++++++ .../float32/ln-sqrt-two-pi/test/test.js | 58 +++++++ 10 files changed, 495 insertions(+) create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/examples/index.js create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/manifest.json create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/package.json create mode 100644 lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/test/test.js diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md new file mode 100644 index 000000000000..2174c6d6edb0 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md @@ -0,0 +1,149 @@ + + +# FLOAT32_LN_SQRT_TWO_PI + +> [Natural logarithm][@stdlib/math/base/special/lnf] of the [square root][@stdlib/math/base/special/sqrtf] of [2π][@stdlib/constants/float32/pi]. + +
+ +## Usage + +```javascript +var FLOAT32_LN_SQRT_TWO_PI = require( '@stdlib/constants/float32/ln-sqrt-two-pi' ); +``` + +#### FLOAT32_LN_SQRT_TWO_PI + +[Natural logarithm][@stdlib/math/base/special/lnf] of the [square root][@stdlib/math/base/special/sqrtf] of [2π][@stdlib/constants/float32/pi]. + +```javascript +var bool = ( FLOAT32_LN_SQRT_TWO_PI === 0.9189385175704956 ); +// returns true +``` + +
+ + + +
+ +## Examples + + + + + +```javascript +var FLOAT32_LN_SQRT_TWO_PI = require( '@stdlib/constants/float32/ln-sqrt-two-pi' ); + +console.log( FLOAT32_LN_SQRT_TWO_PI ); +// => 0.9189385175704956 +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/constants/float32/ln_sqrt_two_pi.h" +``` + +#### STDLIB_CONSTANT_FLOAT32_LN_SQRT_TWO_PI + +Macro for the [natural logarithm][@stdlib/math/base/special/lnf] of the [square root][@stdlib/math/base/special/sqrtf] of [2π][@stdlib/constants/float32/pi]. + +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/repl.txt b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/repl.txt new file mode 100644 index 000000000000..11ffdef99005 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/repl.txt @@ -0,0 +1,12 @@ + +{{alias}} + Natural logarithm of the square root of `2π`. + + Examples + -------- + > {{alias}} + 0.9189385175704956 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/types/index.d.ts new file mode 100644 index 000000000000..b49b2475f7d9 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/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 + +/** +* Natural logarithm of the square root of `2π`. +* +* @example +* var val = FLOAT32_LN_SQRT_TWO_PI; +* // returns 0.9189385332046728 +*/ +declare const FLOAT32_LN_SQRT_TWO_PI: number; + + +// EXPORTS // + +export = FLOAT32_LN_SQRT_TWO_PI; diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/types/test.ts b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/docs/types/test.ts new file mode 100644 index 000000000000..29d4bfda19a6 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/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 FLOAT32_LN_SQRT_TWO_PI = require( './index' ); + + +// TESTS // + +// The export is a number... +{ + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + FLOAT32_LN_SQRT_TWO_PI; // $ExpectType number +} diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/examples/index.js b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/examples/index.js new file mode 100644 index 000000000000..fbeb8633edc8 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/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 FLOAT32_LN_SQRT_TWO_PI = require( './../lib' ); + +console.log( FLOAT32_LN_SQRT_TWO_PI ); +// => 0.9189385175704956 diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h new file mode 100644 index 000000000000..81bde003b6a9 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.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_FLOAT32_LN_SQRT_TWO_PI_H +#define STDLIB_CONSTANTS_FLOAT32_LN_SQRT_TWO_PI_H + +/** +* Macro for the natural logarithm of the square root of 2π. +*/ +#define STDLIB_CONSTANT_FLOAT32_LN_SQRT_TWO_PI 0.9189385175704956 + +#endif // !STDLIB_CONSTANTS_FLOAT32_LN_SQRT_TWO_PI_H diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js new file mode 100644 index 000000000000..b3b8b1b6ec4e --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js @@ -0,0 +1,55 @@ +/** +* @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'; + +/** +* Natural logarithm of the square root of `2π`. +* +* @module @stdlib/constants/float32/ln-sqrt-two-pi +* @type {number} +* +* @example +* var FLOAT32_LN_SQRT_TWO_PI = require( '@stdlib/constants/float32/ln-sqrt-two-pi' ); +* // returns 0.9189385175704956 +*/ + +// MODULES // + +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); + + +// MAIN // + +/** +* Natural logarithm of the square root of `2π`. +* +* ```tex +* \ln \sqrt{2\pi} +* ``` +* +* @constant +* @type {number} +* @default 0.9189385175704956 +*/ +var FLOAT32_LN_SQRT_TWO_PI = float64ToFloat32( 0.9189385332046728 ); // eslint-disable-line max-len + + +// EXPORTS // + +module.exports = FLOAT32_LN_SQRT_TWO_PI; diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/manifest.json b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/manifest.json new file mode 100644 index 000000000000..844d692f6439 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/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/float32/ln-sqrt-two-pi/package.json b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/package.json new file mode 100644 index 000000000000..a64716fbe2a3 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/package.json @@ -0,0 +1,73 @@ +{ + "name": "@stdlib/constants/float32/ln-sqrt-two-pi", + "version": "0.0.0", + "description": "Natural logarithm of the square root of 2π.", + "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", + "2pi", + "sqrt", + "ln", + "natural", + "logarithm", + "log", + "square", + "root", + "ieee754", + "precision", + "floating-point", + "float", + "float32" + ] +} diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/test/test.js b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/test/test.js new file mode 100644 index 000000000000..aa2ae3cdbd4c --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/test/test.js @@ -0,0 +1,58 @@ +/** +* @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 lnf = require( '@stdlib/math/base/special/lnf' ); +var sqrtf = require( '@stdlib/math/base/special/sqrtf' ); +var absf = require( '@stdlib/math/base/special/absf' ); +var FLOAT32_TWO_PI = require( '@stdlib/constants/float32/two-pi' ); +var EPS = require( '@stdlib/constants/float32/eps' ); +var FLOAT32_LN_SQRT_TWO_PI = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a number', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof FLOAT32_LN_SQRT_TWO_PI, 'number', 'main export is a number' ); + t.end(); +}); + +tape( 'export is a single-precision floating-point number equal to 0.9189385175704956', function test( t ) { + t.equal( FLOAT32_LN_SQRT_TWO_PI, 0.9189385175704956, 'equals 0.9189385175704956' ); + t.end(); +}); + +tape( 'export equals ln(sqrt(2π))', function test( t ) { + var delta; + var tol; + var v; + + v = lnf( sqrtf( FLOAT32_TWO_PI ) ); + + delta = absf( v - FLOAT32_LN_SQRT_TWO_PI ); + tol = EPS * FLOAT32_LN_SQRT_TWO_PI; + + t.ok( delta <= tol, 'equals ln(sqrt(2π)) within tolerance '+tol ); + + t.end(); +}); From 9b6dbf6e6eb3f0461b5c712e59e735c2205cf74f Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Sat, 15 Mar 2025 20:32:05 +0530 Subject: [PATCH 2/7] chore: removing unecessary eslint-disable --- .../@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js index b3b8b1b6ec4e..25de04f07a42 100644 --- a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/lib/index.js @@ -47,7 +47,7 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); * @type {number} * @default 0.9189385175704956 */ -var FLOAT32_LN_SQRT_TWO_PI = float64ToFloat32( 0.9189385332046728 ); // eslint-disable-line max-len +var FLOAT32_LN_SQRT_TWO_PI = float64ToFloat32( 0.9189385332046728 ); // EXPORTS // From d1b5fcd628a626e4502138cee10bcc1a32976b2e Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Sun, 16 Mar 2025 15:19:19 +0530 Subject: [PATCH 3/7] chore: stuff from code review --- .../constants/float32/ln-sqrt-two-pi/README.md | 12 ------------ .../stdlib/constants/float32/ln_sqrt_two_pi.h | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md index 2174c6d6edb0..766e3f3817d7 100644 --- a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md @@ -120,12 +120,6 @@ Macro for the [natural logarithm][@stdlib/math/base/special/lnf] of the [square @@ -138,12 +132,6 @@ Macro for the [natural logarithm][@stdlib/math/base/special/lnf] of the [square [@stdlib/math/base/special/sqrtf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sqrtf - - -[@stdlib/constants/float32/pi]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/constants/float32/pi - - - diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h index 81bde003b6a9..34f68848ecca 100644 --- a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h @@ -22,6 +22,6 @@ /** * Macro for the natural logarithm of the square root of 2π. */ -#define STDLIB_CONSTANT_FLOAT32_LN_SQRT_TWO_PI 0.9189385175704956 +#define STDLIB_CONSTANT_FLOAT32_LN_SQRT_TWO_PI 0.9189385175704956f #endif // !STDLIB_CONSTANTS_FLOAT32_LN_SQRT_TWO_PI_H From a88a91d28fedd5f8e2b79ea36757955cd94cc245 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Sun, 16 Mar 2025 15:24:15 +0530 Subject: [PATCH 4/7] fix: readme pi --- .../constants/float32/ln-sqrt-two-pi/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md index 766e3f3817d7..2174c6d6edb0 100644 --- a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md @@ -120,6 +120,12 @@ Macro for the [natural logarithm][@stdlib/math/base/special/lnf] of the [square @@ -132,6 +138,12 @@ Macro for the [natural logarithm][@stdlib/math/base/special/lnf] of the [square [@stdlib/math/base/special/sqrtf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sqrtf + + +[@stdlib/constants/float32/pi]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/constants/float32/pi + + + From 04e7c05166a04354bbee22ce7dee724d8aea963b Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Tue, 18 Mar 2025 15:21:18 +0530 Subject: [PATCH 5/7] chore: fix define value --- .../include/stdlib/constants/float32/ln_sqrt_two_pi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h index 34f68848ecca..5a6d0a5c2806 100644 --- a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h @@ -22,6 +22,6 @@ /** * Macro for the natural logarithm of the square root of 2π. */ -#define STDLIB_CONSTANT_FLOAT32_LN_SQRT_TWO_PI 0.9189385175704956f +#define STDLIB_CONSTANT_FLOAT32_LN_SQRT_TWO_PI 0.9189385f #endif // !STDLIB_CONSTANTS_FLOAT32_LN_SQRT_TWO_PI_H From 72bec72f85c1be66b5b463cd6769a5de3498cf39 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Tue, 18 Mar 2025 16:26:37 +0530 Subject: [PATCH 6/7] chore: revert define value --- .../include/stdlib/constants/float32/ln_sqrt_two_pi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h index 5a6d0a5c2806..34f68848ecca 100644 --- a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/include/stdlib/constants/float32/ln_sqrt_two_pi.h @@ -22,6 +22,6 @@ /** * Macro for the natural logarithm of the square root of 2π. */ -#define STDLIB_CONSTANT_FLOAT32_LN_SQRT_TWO_PI 0.9189385f +#define STDLIB_CONSTANT_FLOAT32_LN_SQRT_TWO_PI 0.9189385175704956f #endif // !STDLIB_CONSTANTS_FLOAT32_LN_SQRT_TWO_PI_H From a9be19cc3201579b9107dbdeba7aaf6ba68bff61 Mon Sep 17 00:00:00 2001 From: Neerajpathak07 Date: Wed, 19 Mar 2025 13:23:16 +0530 Subject: [PATCH 7/7] chore: refactor READEM file --- .../@stdlib/constants/float32/ln-sqrt-two-pi/README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md index 2174c6d6edb0..a82c4d38b6ae 100644 --- a/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md +++ b/lib/node_modules/@stdlib/constants/float32/ln-sqrt-two-pi/README.md @@ -120,12 +120,6 @@ Macro for the [natural logarithm][@stdlib/math/base/special/lnf] of the [square @@ -138,12 +132,8 @@ Macro for the [natural logarithm][@stdlib/math/base/special/lnf] of the [square [@stdlib/math/base/special/sqrtf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sqrtf - - [@stdlib/constants/float32/pi]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/constants/float32/pi - -