We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac4d5d commit 2dc8d29Copy full SHA for 2dc8d29
lib/node_modules/@stdlib/math/base/special/atanh/src/main.c
@@ -118,14 +118,14 @@ double stdlib_base_atanh( const double x ) {
118
return x; // x<2**-28
119
}
120
121
- ax = (double *)&x;
122
- stdlib_base_float64_set_high_word( ahx, &ax );
+ ax = x;
+ stdlib_base_float64_set_high_word( ahx, ax );
123
124
if( ahx < HIGH_BIASED_EXP_NEG_1 ) {
125
t = ax + ax;
126
t = 0.5 * stdlib_base_log1p( t + ( t * ax / ( one - ax ) ) );
127
} else {
128
t = 0.5 * stdlib_base_log1p( ( ax + ax ) / ( one - ax ) );
129
130
- return ( hx >= 0 ) ? -t : t;
+ return ( hx == 1 ) ? -t : t;
131
0 commit comments