diff --git a/CHANGELOG.md b/CHANGELOG.md index bb1c9ba52..d329bbb05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4552,6 +4552,7 @@ A total of 27 people contributed to this release. Thank you to the following con
+- [`4c95c5a`](https://github.com/stdlib-js/stdlib/commit/4c95c5ac1cc58e3ed3db0b13a653ad7680a0393a) - **docs:** use descriptive variable names [(##2373)](#2373) _(by Gunj Joshi)_ - [`c1ef722`](https://github.com/stdlib-js/stdlib/commit/c1ef722991b1743b02c897332d0e2b3005a97494) - **docs:** update return annotation value [(##2370)](#2370) _(by stdlib-bot, Philipp Burckhardt)_ - [`6199f14`](https://github.com/stdlib-js/stdlib/commit/6199f14235f3aff23b57504bd62923ebf45555e0) - **feat:** add C implementation for `math/base/special/tan` _(by Gunj Joshi)_ - [`822491d`](https://github.com/stdlib-js/stdlib/commit/822491dd173e2ca1195c4b4f4600419f55b5ee15) - **docs:** fix function signature in table of contents [(##2371)](#2371 ) _(by stdlib-bot, Philipp Burckhardt)_ diff --git a/base/special/sin/lib/main.js b/base/special/sin/lib/main.js index 7070d1d40..2b9e52deb 100644 --- a/base/special/sin/lib/main.js +++ b/base/special/sin/lib/main.js @@ -34,8 +34,8 @@ // MODULES // -var ABS_MASK = require( '@stdlib/constants/float64/high-word-abs-mask' ); -var EXPONENT_MASK = require( '@stdlib/constants/float64/high-word-exponent-mask' ); +var HIGH_WORD_ABS_MASK = require( '@stdlib/constants/float64/high-word-abs-mask' ); +var HIGH_WORD_EXPONENT_MASK = require( '@stdlib/constants/float64/high-word-exponent-mask' ); var getHighWord = require( '@stdlib/number/float64/base/get-high-word' ); var kernelCos = require( './../../../../base/special/kernel-cos' ); var kernelSin = require( './../../../../base/special/kernel-sin' ); @@ -98,7 +98,7 @@ function sin( x ) { var n; ix = getHighWord( x ); - ix &= ABS_MASK; + ix &= HIGH_WORD_ABS_MASK; // Case: |x| ~< π/4 if ( ix <= PIO4_HIGH_WORD ) { @@ -109,7 +109,7 @@ function sin( x ) { return kernelSin( x, 0.0 ); } // Case: x is NaN or infinity - if ( ix >= EXPONENT_MASK ) { + if ( ix >= HIGH_WORD_EXPONENT_MASK ) { return NaN; } // Argument reduction...