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 8b20f6a commit 433bb99Copy full SHA for 433bb99
lib/node_modules/@stdlib/math/base/special/fast/asinh/src/main.c
@@ -34,11 +34,11 @@
34
* // returns 0.0
35
*/
36
double stdlib_base_fast_asinh( const double x ) {
37
- if ( x > 0.0 ) {
38
- return stdlib_base_ln( x + ( stdlib_base_sqrt( x * x ) + 1.0 ) );
39
- }
40
if ( x == 0.0 || stdlib_base_is_nan( x ) || stdlib_base_is_infinite( x ) ) {
41
return x;
42
}
43
- 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 ) ) );
44
0 commit comments