Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Mar 16, 2024
1 parent c5c5b38 commit b654aa0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/special/fast/asinh/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
* // returns 0.0
*/
double stdlib_base_fast_asinh( const double x ) {
if ( x > 0.0 ) {
return stdlib_base_ln( x + ( stdlib_base_sqrt( x * x ) + 1.0 ) );
}
if ( x == 0.0 || stdlib_base_is_nan( x ) || stdlib_base_is_infinite( x ) ) {
return x;
}
return -stdlib_base_ln( -x + (stdlib_base_sqrt( x * x ) + 1.0 ) );
if ( x > 0.0 ) {
return stdlib_base_ln( x + ( stdlib_base_sqrt( (x*x) + 1.0 ) ) );
}
return -stdlib_base_ln( -x + ( stdlib_base_sqrt( (x*x) + 1.0 ) ) );
}

0 comments on commit b654aa0

Please sign in to comment.