Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sinhcosh(3) — Digital UNIX 3.2c

Media Vault

Software Library

Restoration Projects

Artifacts Sought

sinh(3)  —  Subroutines

NAME

sinh, cosh, tanh, sinhcosh − Hyperbolic functions

LIBRARY

Math Library (libm.a)

SYNOPSIS

#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 sinhcosh  (double x);
float  sinhcoshf (float  x);

DESCRIPTION

sinh() and sinhf() compute the hyperbolic sine of x.  sinh(x) and sinhf(x) are equivalent to (exp(x) - exp(-x))/2. 

cosh()  and coshf() compute the hyperbolic cosine of x.  cosh(x) and coshf(x) are equivalent to (e∗∗x + e∗∗(-x))/2. 

tanh() and tanhf() compute the hyperbolic tangent of x.  tanh(x) and tanhf(x) are equivalent to (e∗∗x - e∗∗(-x))/(e∗∗x + e∗∗(-x)). 

sinhcosh()  and sinhcoshf() compute both the hyperbolic sine and hyperbolic cosine of x.  sinhcosh(x) and sinhcoshf(x) are equivalent to (sinh x + icosh x). 

Function Exceptional Argument Routine Behavior
sinh(), sinhf() |x|>ln(2 ∗ max_float) overflow
cosh(), coshf() |x|>ln(2 ∗ max_float) overflow
sinhcosh(), sinhcoshf() |x|>ln(2 ∗ max_float) overflow

Value Name Data Type Hexadecimal Value Decimal Value
ln(2 ∗ max_float) F_FLOAT 721843B1 88.72284
G_FLOAT 39EFFEFA2E4240A6 709.782712893384
S_FLOAT 42B2D4FC 89.41599
T_FLOAT 408633CE8FB9F87E 710.475860073943

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