Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

math(3m)

sinh(3m)  —  RISC

Name

sinh, cosh, tanh − hyperbolic functions

Syntax

#include <math.h>

double sinh(x)
double x;

float fsinh(x)
float x;

double cosh(x)
double x;

float fcosh(x)
float x;

double tanh(x)
double x;

float ftanh(x)
float x;

Description

These functions compute the designated hyperbolic functions for double and float data types. 

Error

Below 2.4 ulps (unit in the last place). 

Diagnostics

The sinh and cosh functions return +∞ (and sinh may return -∞ for negative x) if the correct value would overflow.

See Also

math(3m)

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