Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sinh(3) — OSF/1 X2.0-8 MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

isnan(3)

math(3)

matherr(3)

sin(3)

sinh(3)  —  Subroutines

Digital

NAME

sinh, fsinh, cosh, fcosh, tanh, ftanh − Computes hyperbolic functions

LIBRARY

Math Library (libm.a)

SYNOPSIS

#include <math.h> double sinh (
double x); float fsinh (
float x); double tanh (
double x); float ftanh (
float x); double cosh (
double x); float fcosh (
float x);

PARAMETERS

xSpecifies some double or float value, depending on the function. 

DESCRIPTION

The sinh(), cosh(), and tanh() functions compute the hyperbolic sine, hyperbolic cosine, and hyperbolic tangent of x, respectively, for the double data type. 

The fsinh(), fcosh(), and ftanh() functions perform the same computations for the float data type. 

NOTES

AES Support Level:
Full use for sinh(), cosh(), and tanh() functions only. 

RETURN VALUES

The sinh() and fsinh() functions return the hyperbolic sine of their parameter.  If the result would cause an overflow, HUGE_VAL is returned and errno is set to [ERANGE].  If x is NaN, NaN is returned.  Otherwise, ±HUGE_VAL or NaN is returned.

The cosh() and fcosh() functions return the hyperbolic cosine of their parameter.  If the result would cause an overflow, HUGE_VAL is returned and errno is set to [ERANGE].  If x is NaN, NaN is returned.  Otherwise, either errno is set to indicate the error or NaN is returned. 

The tanh() and ftanh() functions return the hyperbolic tangent of their parameter.  If x is NaN, NaN is returned.  Otherwise, either zero is returned and errno is set to indicate the error, or NaN is returned. 

ERRORS

If the sinh(), fsinh(), cosh(), fcosh(), tanh(), or ftanh() function fails, errno may be set to one of the following values:

[EDOM]The value of x is NaN. 

[ERANGE]The result of the sinh(), fsinh(|), cosh(), or fcosh() function would cause an overflow. 

ENVIRONMENT

In the SVID-2 habitat:

       •Functions to support the float data type are not available

       •When the correct value would overflow, the sinh() and cosh() functions return HUGE (the sinh() function might return −HUGE for negative x) and set errno to ERANGE

       •Error-handling procedures can be changed with the matherr() function

RELATED INFORMATION

Functions: isnan(3), math(3), matherr(3), sin(3)
 

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