Rate This Document
Findability
Accuracy
Completeness
Readability

asinh

Compute the hyperbolic arcsine of an input real number.

Interface Definition

C interface:

float asinhf(float x);

double asinh(double x);

long double asinhl(long double x);

Fortran interface:

RES = ASINHF(X);

RES = ASINH(X);

Parameters

Parameter

Type

Description

Input/Output

x

  • For asinhf, x is of single-precision floating-point type.
  • For asinh, x is of double-precision floating-point type.
  • For asinhl, x is of long double-precision floating-point type.

Floating-point value of the input data.

Input

Return Value

  • The hyperbolic arcsine y of radian angle x is returned.
  • If the input is ±0, the return value is ±0.
  • If the input is ±∞, the return value is ±∞.
  • If the input is NaN, the return value is NaN.

Dependency

C: "km.h"

Examples

C interface:

    double pi = acos(-1); 
    // typical usage 
    double a = pi/6, b = 1.0, c = -3*pi/4, d = pi/3; 
    // special handling 
    double e = INFINITY, f = -INFINITY, g = NAN; 
    // print result 
    printf("asinh(pi/6) = %.15f\n", asinh(a)); 
    printf("asinh(1.0) = %.15f\n", asinh(b)); 
    printf("asinh(-3*pi/4) = %.15f\n", asinh(c)); 
    printf("asinh(pi/3) = %.15f\n", asinh(d)); 
    printf("asinh(INFINITY) = %.15f\n", asinh(e)); 
    printf("asinh(-INFINITY) = %.15f\n", asinh(f)); 
    printf("asinh(NAN) = %.15f\n", asinh(g)); 
    /* 
     *  asinh(pi/6) = 0.502218985034611 
     *  asinh(1.0) = 0.881373587019543
     *  asinh(-3*pi/4) = -1.592457372858543
     *  asinh(pi/3) = 0.914356655392886 
     *  asinh(INFINITY) = inf
     *  asinh(-INFINITY) = -inf 
     *  asinh(NAN) = nan 
     * 
     * */

Fortran interface:

    REAL(8) :: X = 1.0 
    PRINT*,  ASINH(X) 
    ! 
    ! OUTPUT 
    !     0.881373587019543 
    !