Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sinh(3M) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)

reentrant(3)

matherr(3M)

fpsetmask(3C)



sinh(3M)                       DG/UX R4.11MU05                      sinh(3M)


NAME
       sinh, sinhf, cosh, coshf, tanh, tanhf, asinh, acosh, atanh -
       hyperbolic functions

SYNOPSIS
       cc [flag ...] file ...  -lm [library ...]

       #include <math.h>

       double sinh (double x);

       float sinhf (float x);

       double cosh (double x);

       float coshf (float x);

       double tanh (double x);

       float tanhf (float x);

       double asinh (double x);

       double acosh (double x);

       double atanh (double x);

DESCRIPTION
       sinh, cosh, and tanh and the single-precision versions sinhf, coshf,
       and tanhf return, respectively, the hyperbolic sine, cosine, and
       tangent of their argument.

       asinh, acosh, and atanh return, respectively, the inverse hyperbolic
       sine, cosine, and tangent of their argument.

       Those functions using float arguments, sinhf, coshf, and tanhf will
       give unpredictable results when used with the -Xt compilation option.
       In traditional compilation mode float arguments are promoted to
       doubles.  An object compiled with -Xt will expect this promotion and
       therefore not work correctly with these functions.


   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |acosh    |     Y         N        N    |
                     |asinh    |     Y         N        N    |
                     |atanh    |     Y         N        N    |
                     |cosh     |     Y         N        N    |
                     |coshf    |     Y         N        N    |
                     |sinh     |     Y         N        N    |
                     |sinhf    |     Y         N        N    |
                     |tanh     |     Y         N        N    |
                     |tanhf    |     Y         N        N    |
                     +---------+-----------------------------+

DIAGNOSTICS
       sinh, sinhf, cosh, and coshf return HUGE (and sinh and sinhf may
       return -HUGE for negative x) when the correct value would overflow
       and set errno to ERANGE.

       acosh returns NaN, raises an invalid operation exception, and sets
       errno to EDOM when the argument x is less than 1.  A message
       indicating DOMAIN error is printed on the standard error output.

       atanh returns NaN, raises an invalid operation exception, and sets
       errno to EDOM if | x| >= 1.  If | x| = 1, a message indicating SING
       error is printed on the standard error output; if | x| > 1 the
       message will indicate DOMAIN error.

       For each of these functions, if x is a quiet NaN, that value is
       returned.  If x is a signaling NaN, a quiet NaN is returned and an
       invalid operation exception is raised.  In either case, errno is set
       to EDOM, and a message indicating DOMAIN error is printed on the
       standard error output.

       When the -Xt compilation option is used, these error-handling
       procedures may be changed with the function matherr.  When the -Xa or
       -Xc compilation options are used, HUGEVAL is returned instead of
       HUGE and no error messages are printed.

SEE ALSO
       cc(1).  reentrant(3), matherr(3M), fpsetmask(3C).


Licensed material--property of copyright holder(s)

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