Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sinh(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

matherr(S)


 sinh(S)                        6 January 1993                        sinh(S)


 Name

    sinh, cosh, tanh - hyperbolic functions

 Syntax


    cc  . . .  -lm


    #include  <math.h>

    double sinh (x)
    double x;

    double cosh (x)
    double x;

    double tanh (x)
    double x;


 Description

    The sinh, cosh, and tanh functions return, respectively, the hyperbolic
    sine, cosine and tangent of their argument.

 Return value

    If the program was compiled in the default or -svid mode sinh and cosh
    functions return HUGE (and sinh may return -HUGE for negative x) when the
    correct value would overflow and set errno to ERANGE. If the program was
    compiled in -ansi, -posix, or -xpg3 mode then HUGEVAL or -HUGEVAL are
    returned.

 Diagnostics

    The sinh function may fail if:

    [EDOM]         The value of x is NaN.

    [ERANGE]       The result would cause overflow.

 Notes

    These error-handling procedures may be changed with the function
    matherr(S).

 See also

    matherr(S)

 Standards conformance

    cosh, sinh and tanh are conformant with:
    AT&T SVID Issue 2;
    X/Open Portability Guide, Issue 3, 1989;
    ANSI X3.159-1989 Programming Language -- C;
    IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C
    Language] (ISO/IEC 9945-1);
    and NIST FIPS 151-1.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026