Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      asinh, asinhf, asinhl

      From cppreference.com
      <c‎ |numeric‎ |math
       
       
       
      Common mathematical functions
      Functions
      Basic operations
      (C99)
      (C99)
      (C99)
      (C99)(C99)(C99)(C23)
      Maximum/minimum operations
      (C99)
      (C99)
      Exponential functions
      (C23)
      (C99)
      (C99)
      (C23)
      (C23)

      (C99)
      (C99)(C23)
      (C23)
      (C23)
      Power functions
      (C99)
      (C23)
      (C23)

      (C99)
      (C23)
      (C23)
      Trigonometric and hyperbolic functions
      (C23)
      (C23)
      (C23)
      (C23)
      asinh
      (C99)
      (C99)
      (C99)
      Nearest integer floating-point
      (C99)(C99)(C99)
      (C23)(C23)(C23)(C23)
      Floating-point manipulation
      (C99)(C99)
      (C99)(C23)
      (C99)
      Narrowing operations
      (C23)
      (C23)
      (C23)
      (C23)
      (C23)
      (C23)
      Quantum and quantum exponent
      Decimal re-encoding functions
      Total order and payload functions
      Classification
      Error and gamma functions
      (C99)
      (C99)
      (C99)
      (C99)
      Types
      Macro constants
      Special floating-point values
      (C99)(C23)
      Arguments and return values
      Error handling
      Fast operation indicators
       
      Defined in header<math.h>
      float       asinhf(float arg);
      (1)(since C99)
      double      asinh(double arg);
      (2)(since C99)
      longdouble asinhl(longdouble arg);
      (3)(since C99)
      Defined in header<tgmath.h>
      #define asinh( arg )
      (4)(since C99)
      1-3) Computes the inverse hyperbolic sine ofarg.
      4) Type-generic macro: If the argument has typelongdouble,asinhl is called. Otherwise, if the argument has integer type or the typedouble,asinh is called. Otherwise,asinhf is called. If the argument is complex, then the macro invokes the corresponding complex function (casinhf,casinh,casinhl).

      Contents

      [edit]Parameters

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

      [edit]Return value

      If no errors occur, the inverse hyperbolic sine ofarg (sinh-1
      (arg)
      , orarsinh(arg)), is returned.

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

      [edit]Error handling

      Errors are reported as specified inmath_errhandling.

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

      • If the argument is ±0 or ±∞, it is returned unmodified.
      • If the argument is NaN, NaN is returned.

      [edit]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".

      [edit]Example

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

      Output:

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

      [edit]References

      • C23 standard (ISO/IEC 9899:2024):
      • 7.12.5.2 The asinh functions (p: 240-241)
      • 7.25 Type-generic math <tgmath.h> (p: 373-375)
      • F.10.2.2 The asinh functions (p: 520)
      • C17 standard (ISO/IEC 9899:2018):
      • 7.12.5.2 The asinh functions (p: 240-241)
      • 7.25 Type-generic math <tgmath.h> (p: 373-375)
      • F.10.2.2 The asinh functions (p: 520)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.12.5.2 The asinh functions (p: 240-241)
      • 7.25 Type-generic math <tgmath.h> (p: 373-375)
      • F.10.2.2 The asinh functions (p: 520)
      • C99 standard (ISO/IEC 9899:1999):
      • 7.12.5.2 The asinh functions (p: 221)
      • 7.22 Type-generic math <tgmath.h> (p: 335-337)
      • F.9.2.2 The asinh functions (p: 457)

      [edit]See also

      (C99)(C99)(C99)
      computes inverse hyperbolic cosine (\({\small\operatorname{arcosh}{x} }\)arcosh(x))
      (function)[edit]
      (C99)(C99)(C99)
      computes inverse hyperbolic tangent (\({\small\operatorname{artanh}{x} }\)artanh(x))
      (function)[edit]
      (C99)(C99)
      computes hyperbolic sine (\({\small\sinh{x} }\)sinh(x))
      (function)[edit]
      (C99)(C99)(C99)
      computes the complex arc hyperbolic sine
      (function)[edit]

      [edit]External links

      Weisstein, Eric W. "Inverse Hyperbolic Sine." From MathWorld — A Wolfram Web Resource.
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/numeric/math/asinh&oldid=172074"

      [8]ページ先頭

      ©2009-2025 Movatter.jp