From b654aa01297e633cc8fe930d0dc7b83f1f1777dd Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 16 Mar 2024 19:03:51 +0000 Subject: [PATCH] Auto-generated commit --- base/special/fast/asinh/src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/special/fast/asinh/src/main.c b/base/special/fast/asinh/src/main.c index 9fd20c409..07ddbe01e 100644 --- a/base/special/fast/asinh/src/main.c +++ b/base/special/fast/asinh/src/main.c @@ -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 ) ) ); }