File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
math/base/special/pow/lib Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ function pow( x, y ) {
273273 }
274274 if ( isInfinite ( x ) ) {
275275 if ( x === NINF ) {
276- // pow( 1/x, -y )
276+ // ` pow( 1/x, -y )`
277277 return pow ( - 0.0 , - y ) ;
278278 }
279279 if ( y < 0.0 ) {
@@ -286,7 +286,7 @@ function pow( x, y ) {
286286 x < 0.0 &&
287287 isInteger ( y ) === false
288288 ) {
289- // signal NaN...
289+ // Signal NaN...
290290 return ( x - x ) / ( x - x ) ;
291291 }
292292 ax = abs ( x ) ;
@@ -318,19 +318,19 @@ function pow( x, y ) {
318318 if ( ahx < HIGH_MAX_NEAR_UNITY ) {
319319 // y < 0
320320 if ( sy === 1 ) {
321- // signal overflow...
321+ // Signal overflow...
322322 return sx * HUGE * HUGE ;
323323 }
324- // signal underflow...
324+ // Signal underflow...
325325 return sx * TINY * TINY ;
326326 }
327327 if ( ahx > HIGH_BIASED_EXP_0 ) {
328328 // y > 0
329329 if ( sy === 0 ) {
330- // signal overflow...
330+ // Signal overflow...
331331 return sx * HUGE * HUGE ;
332332 }
333- // signal underflow...
333+ // Signal underflow...
334334 return sx * TINY * TINY ;
335335 }
336336 // At this point, `|1-x|` is tiny (`<= 2^-20`). Suffice to compute `log(x)` by `x - x^2/2 + x^3/3 - x^4/4`.
@@ -355,11 +355,11 @@ function pow( x, y ) {
355355 if ( j >= HIGH_BIASED_EXP_10 ) {
356356 // z > 1024
357357 if ( ( ( j - HIGH_BIASED_EXP_10 ) | i ) !== 0 ) {
358- // signal overflow...
358+ // Signal overflow...
359359 return sx * HUGE * HUGE ;
360360 }
361361 if ( ( lp + OVT ) > ( z - hp ) ) {
362- // signal overflow...
362+ // Signal overflow...
363363 return sx * HUGE * HUGE ;
364364 }
365365 }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
5858* - end of character sequence
5959*
6060* - `|`
61- * -
61+ * - or
6262*
6363* - `^`
6464* - match anything that begins with
Original file line number Diff line number Diff line change 3838/**
3939* Captures a decimal number.
4040*
41- * Regular expression: `/([-+]{0,1}[0-9]*\.[0-9]+)/
41+ * Regular expression: `/([-+]{0,1}[0-9]*\.[0-9]+)/`
4242*
4343* - `()`
4444* - capture
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function fname( fcn ) {
2626 return RE_FUNCTION_NAME . exec ( fcn . toString ( ) ) [ 1 ] ;
2727}
2828
29- console . log ( fname ( Math . sqrt ) ) ;
29+ console . log ( fname ( Math . sqrt ) ) ; // eslint-disable-line stdlib/no-builtin-math
3030// => 'sqrt'
3131
3232console . log ( fname ( Int8Array ) ) ;
You can’t perform that action at this time.
0 commit comments