Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sinh(3M) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

matherr(3M)

SINH(3M)

NAME

sinh, cosh, tanh − hyperbolic functions

SYNOPSIS

#include <math.h>

double sinh (x) float fsinh (x)
double x;‡float x;

double cosh (x) float fcosh (x)
double x;‡float x;

double tanh (x) float ftanh (x)
double x;‡float x;

‡ see important note below

HP-UX COMPATIBILITY

Level: HP-UX/RUN ONLY

Origin: System V

DESCRIPTION

Sinh, cosh, and tanh return, respectively, the hyperbolic sine, cosine and tangent of their argument.  These are double-precision routines. 

IMPORTANT NOTE: The corresponding single-precision routines fsinh, fcosh, and ftanh expect true single-precision arguments, and therefore cannot be called from standard C.  They are provided for support of FORTRAN (Pascal does not support or use hyperbolic functions). 

DIAGNOSTICS

Sinh and cosh set errno to ERANGE and return HUGE ( sinh may return −HUGE for negative x) when the correct value would overflow.

Error handling is identical for both single- and double-precision routines, except for one consideration: In any situation where the double-precision routine would return ±HUGE, the corresponding single-precision routine returns ±MAXFLOAT. 

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

SEE ALSO

matherr(3M). 

Hewlett-Packard  —  last mod. May 11, 2021

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