amath
1.8.5
Simple command line calculator
|
Hyperbolic sine function. More...
#include "prim.h"
Go to the source code of this file.
Functions | |
double | sinh (double x) |
Hyperbolic sine function. More... | |
Variables | |
static const double | one = 1.0 |
static const double | shuge = 1.0e307 |
Hyperbolic sine function.
Definition in file sinh.c.
double sinh | ( | double | x | ) |
Hyperbolic sine function.
Method mathematically sinh(x) if defined to be (exp(x)-exp(-x))/2 1. Replace x by |x| (sinh(-x) = -sinh(x)). 2. E + E/(E+1) 0 <= x <= 22 : sinh(x) := -----------—, E=expm1(x) 2
22 <= x <= lnovft : sinh(x) := exp(x)/2 lnovft <= x <= ln2ovft: sinh(x) := exp(x/2)/2 * exp(x/2) ln2ovft < x : sinh(x) := x*shuge (overflow)
Special cases sinh(x) is |x| if x is +INF, -INF, or NaN. only sinh(0)=0 is exact for finite x.
Definition at line 77 of file sinh.c.
References exp(), expm1(), fabs(), one, and shuge.
Referenced by cchsh(), ccot(), ccoth(), ccsc(), ccsch(), coth(), csch(), csec(), csech(), ctan(), ctanh(), and RealNumber::HypSine().