Skip to content

docs: use descriptive variable names for math/base/special/sin #2373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/math/base/special/sin/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( '@stdlib/math/base/special/kernel-cos' );
var kernelSin = require( '@stdlib/math/base/special/kernel-sin' );
Expand Down Expand Up @@ -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 ) {
Expand All @@ -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...
Expand Down
Loading