File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
lib/node_modules/@stdlib/math/base/special/negalucas Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 37
37
"libpath" : [],
38
38
"dependencies" : [
39
39
" @stdlib/math/base/napi/unary" ,
40
- " @stdlib/math/base/special/labs " ,
40
+ " @stdlib/math/base/special/abs " ,
41
41
" @stdlib/constants/float64/max-safe-nth-lucas" ,
42
42
" @stdlib/math/base/assert/is-integer"
43
43
]
53
53
"libraries" : [],
54
54
"libpath" : [],
55
55
"dependencies" : [
56
- " @stdlib/math/base/special/labs " ,
56
+ " @stdlib/math/base/special/abs " ,
57
57
" @stdlib/constants/float64/max-safe-nth-lucas" ,
58
58
" @stdlib/math/base/assert/is-integer"
59
59
]
69
69
"libraries" : [],
70
70
"libpath" : [],
71
71
"dependencies" : [
72
- " @stdlib/math/base/special/labs " ,
72
+ " @stdlib/math/base/special/abs " ,
73
73
" @stdlib/constants/float64/max-safe-nth-lucas" ,
74
74
" @stdlib/math/base/assert/is-integer"
75
75
]
Original file line number Diff line number Diff line change 18
18
19
19
#include "stdlib/math/base/special/negalucas.h"
20
20
#include "stdlib/math/base/assert/is_integer.h"
21
- #include "stdlib/math/base/special/labs .h"
21
+ #include "stdlib/math/base/special/abs .h"
22
22
#include "stdlib/constants/float64/max_safe_nth_lucas.h"
23
23
#include <stdint.h>
24
24
#include <stdlib.h>
@@ -118,8 +118,8 @@ static const int64_t negalucas_value[ 77 ] = {
118
118
* // returns NaN
119
119
*/
120
120
double stdlib_base_negalucas ( const double n ) {
121
- double an = stdlib_base_labs ( n );
122
- if ( !stdlib_base_is_integer ( n ) || n > 0 || an > STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_LUCAS ) {
121
+ double an = stdlib_base_abs ( n );
122
+ if ( !stdlib_base_is_integer ( n ) || n > 0.0 || an > STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_LUCAS ) {
123
123
return 0.0 / 0.0 ; // NaN
124
124
}
125
125
return negalucas_value [ (size_t )an ];
You can’t perform that action at this time.
0 commit comments