File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed 
lib/node_modules/@stdlib/math/base/special/factorial2 Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
2424var  isInteger  =  require (  '@stdlib/math/base/assert/is-integer'  ) ; 
2525var  isEven  =  require (  '@stdlib/math/base/assert/is-even'  ) ; 
2626var  PINF  =  require (  '@stdlib/constants/float64/pinf'  ) ; 
27- var  FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL  =  require (  '@stdlib/constants/float64/max-safe -nth-double-factorial'  ) ;  // eslint-disable-line id-length 
27+ var  FLOAT64_MAX_NTH_DOUBLE_FACTORIAL  =  require (  '@stdlib/constants/float64/max-nth-double-factorial'  ) ;  // eslint-disable-line id-length 
2828
2929
3030// MAIN // 
@@ -59,7 +59,7 @@ function factorial2( n ) {
5959	if  (  isnan (  n  )  )  { 
6060		return  NaN ; 
6161	} 
62- 	if  (  n  >  FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL  )  { 
62+ 	if  (  n  >  FLOAT64_MAX_NTH_DOUBLE_FACTORIAL  )  { 
6363		return  PINF ; 
6464	} 
6565	if  (  n  <  0  ||  isInteger (  n  )  ===  false  )  { 
Original file line number Diff line number Diff line change 4141        " @stdlib/math/base/assert/is-integer" 
4242        " @stdlib/math/base/assert/is-even" 
4343        " @stdlib/constants/float64/pinf" 
44-         " @stdlib/constants/float64/max-safe- nth-double-factorial" 
44+         " @stdlib/constants/float64/max-nth-double-factorial" 
4545      ]
4646    },
4747    {
5959        " @stdlib/math/base/assert/is-integer" 
6060        " @stdlib/math/base/assert/is-even" 
6161        " @stdlib/constants/float64/pinf" 
62-         " @stdlib/constants/float64/max-safe- nth-double-factorial" 
62+         " @stdlib/constants/float64/max-nth-double-factorial" 
6363      ]
6464    },
6565    {
7777        " @stdlib/math/base/assert/is-integer" 
7878        " @stdlib/math/base/assert/is-even" 
7979        " @stdlib/constants/float64/pinf" 
80-         " @stdlib/constants/float64/max-safe- nth-double-factorial" 
80+         " @stdlib/constants/float64/max-nth-double-factorial" 
8181      ]
8282    }
8383  ]
Original file line number Diff line number Diff line change 2121#include  "stdlib/math/base/assert/is_integer.h" 
2222#include  "stdlib/math/base/assert/is_even.h" 
2323#include  "stdlib/constants/float64/pinf.h" 
24- #include  "stdlib/constants/float64/max_safe_nth_double_factorial .h" 
24+ #include  "stdlib/constants/float64/max_nth_double_factorial .h" 
2525#include  <stdint.h> 
2626
2727/** 
@@ -42,7 +42,7 @@ double stdlib_base_factorial2( const int32_t n ) {
4242	if  ( stdlib_base_is_nan ( n  ) ) {
4343		return  0.0 /0.0 ; // NaN 
4444	}
45- 	if  ( n  >  STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL  ) {
45+ 	if  ( n  >  STDLIB_CONSTANT_FLOAT64_MAX_NTH_DOUBLE_FACTORIAL  ) {
4646		return  STDLIB_CONSTANT_FLOAT64_PINF ;
4747	}
4848	if  ( n  <  0  ||  !stdlib_base_is_integer ( n  ) ) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments