From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/numeric%2Fmath%2Fasinh.html | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 devdocs/c/numeric%2Fmath%2Fasinh.html (limited to 'devdocs/c/numeric%2Fmath%2Fasinh.html') diff --git a/devdocs/c/numeric%2Fmath%2Fasinh.html b/devdocs/c/numeric%2Fmath%2Fasinh.html new file mode 100644 index 00000000..9944cbc7 --- /dev/null +++ b/devdocs/c/numeric%2Fmath%2Fasinh.html @@ -0,0 +1,59 @@ +

asinh, asinhf, asinhl

Defined in header <math.h>
float       asinhf( float arg );
+
(1) (since C99)
double      asinh( double arg );
+
(2) (since C99)
long double asinhl( long double arg );
+
(3) (since C99)
Defined in header <tgmath.h>
#define asinh( arg )
+
(4) (since C99)
+1-3) Computes the inverse hyperbolic sine of arg.
+4) Type-generic macro: If the argument has type long double, asinhl is called. Otherwise, if the argument has integer type or the type double, asinh is called. Otherwise, asinhf is called. If the argument is complex, then the macro invokes the corresponding complex function (casinhf, casinh, casinhl).

Parameters

+ +
arg - floating point value representing the area of a hyperbolic sector

Return value

If no errors occur, the inverse hyperbolic sine of arg (sinh-1(arg), or arsinh(arg)), is returned.

+

If a range error occurs due to underflow, the correct result (after rounding) is returned.

+

Error handling

Errors are reported as specified in math_errhandling.

+

If the implementation supports IEEE floating-point arithmetic (IEC 60559),

+

Notes

Although the C standard names this function "arc hyperbolic sine", the inverse functions of the hyperbolic functions are the area functions. Their argument is the area of a hyperbolic sector, not an arc. The correct name is "inverse hyperbolic sine" (used by POSIX) or "area hyperbolic sine".

+

Example

#include <stdio.h>
+#include <math.h>
+ 
+int main(void)
+{
+    printf("asinh(1) = %f\nasinh(-1) = %f\n", asinh(1), asinh(-1));
+    // special values
+    printf("asinh(+0) = %f\nasinh(-0) = %f\n", asinh(0.0), asinh(-0.0));
+}

Output:

+
asinh(1) = 0.881374
+asinh(-1) = -0.881374
+asinh(+0) = 0.000000
+asinh(-0) = -0.000000

References

See also

+ + + + +
+
(C99)(C99)(C99)
computes inverse hyperbolic cosine (\({\small\operatorname{arcosh}{x} }\)arcosh(x))
(function)
+
(C99)(C99)(C99)
computes inverse hyperbolic tangent (\({\small\operatorname{artanh}{x} }\)artanh(x))
(function)
+
(C99)(C99)
computes hyperbolic sine (\({\small\sinh{x} }\)sinh(x))
(function)
+
(C99)(C99)(C99)
computes the complex arc hyperbolic sine
(function)
C++ documentation for asinh
+ +
+Weisstein, Eric W. "Inverse Hyperbolic Sine." From MathWorld — A Wolfram Web Resource.
+

+ © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
+ https://en.cppreference.com/w/c/numeric/math/asinh +

+
-- cgit v1.2.3