Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / C

asinh — inverse hyperbolic sine

asinh from <math.h> computes the inverse hyperbolic sine of a double argument and returns double. Its mathematical domain is all real numbers.

Version: C23; repository compiler flag, production runtime not attested

Syntax

#include <math.h>
double asinh(double x);

asinh(x) returns the inverse hyperbolic sine: the number y for which mathematically sinh(y) = x. It is not the reciprocal 1 / sinh(x). The <math.h> header provides the standard declaration double asinh(double x);. C also allows you to write an equivalent declaration without including the header, because the signature uses no header-defined type.

Negative arguments are valid. A range error occurs for nonzero x too close to zero. With Annex F IEC 60559 arithmetic support, zeros and infinities retain their signs.

The example prints the result to six decimal places. The expected output is for local checking; execution in the production runtime has not been attested.

Examples

#include <math.h>
#include <stdio.h>

int main(void)
{
    double x = 1.0;
    printf("asinh(1) = %.6f\n", asinh(x));
    return 0;
}

Result

asinh(1) = 0.881374

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources