Skip to content

Commit fcd491e

Browse files
feat: fix the working of ln-sqrt-two-pi
--- 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: na - task: lint_javascript_src status: passed - 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 ---
1 parent e2025ae commit fcd491e

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

lib/node_modules/@stdlib/constants/float16/ln-sqrt-two-pi/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# FLOAT16_LN_SQRT_TWO_PI
2222

23-
> [Natural logarithm][@stdlib/math/base/special/lnf] of the [square root][@stdlib/math/base/special/sqrtf] of [][@stdlib/constants/float16/pi].
23+
> Natural logarithm of the square root of .
2424
2525
<section class="usage">
2626

@@ -32,7 +32,7 @@ var FLOAT16_LN_SQRT_TWO_PI = require( '@stdlib/constants/float16/ln-sqrt-two-pi'
3232

3333
#### FLOAT16_LN_SQRT_TWO_PI
3434

35-
[Natural logarithm][@stdlib/math/base/special/lnf] of the [square root][@stdlib/math/base/special/sqrtf] of [][@stdlib/constants/float16/pi].
35+
Natural logarithm of the square root of .
3636

3737
```javascript
3838
var bool = ( FLOAT16_LN_SQRT_TWO_PI === 0.9189453125 );
@@ -74,12 +74,6 @@ console.log( FLOAT16_LN_SQRT_TWO_PI );
7474

7575
<section class="links">
7676

77-
[@stdlib/math/base/special/lnf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/lnf
78-
79-
[@stdlib/math/base/special/sqrtf]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sqrtf
80-
81-
[@stdlib/constants/float16/pi]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/constants/float16/pi
82-
8377
</section>
8478

8579
<!-- /.links -->

lib/node_modules/@stdlib/constants/float16/ln-sqrt-two-pi/lib/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
* // returns 0.9189453125
3030
*/
3131

32-
// MODULES //
33-
34-
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float16' );
35-
3632

3733
// MAIN //
3834

@@ -47,7 +43,7 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float16' );
4743
* @type {number}
4844
* @default 0.9189453125
4945
*/
50-
var FLOAT16_LN_SQRT_TWO_PI = float64ToFloat32( 0.9189385332046728 );
46+
var FLOAT16_LN_SQRT_TWO_PI = 0.9189453125;
5147

5248

5349
// EXPORTS //

0 commit comments

Comments
 (0)