mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.10.2t30
This commit is contained in:
31
help/tanh
Normal file
31
help/tanh
Normal file
@@ -0,0 +1,31 @@
|
||||
NAME
|
||||
tanh - hyperbolic tangent
|
||||
|
||||
SYNOPSIS
|
||||
tanh(x [,eps])
|
||||
|
||||
TYPES
|
||||
x real
|
||||
eps nonzero real, defaults to epsilon()
|
||||
|
||||
return real
|
||||
|
||||
DESCRIPTION
|
||||
Calculate the tanh of x to the nearest or next to nearest multiple of
|
||||
epsilon, with absolute error less than .75 * abs(eps).
|
||||
|
||||
tanh(x) = (exp(2*x) - 1)/(exp(2*x) + 1)
|
||||
|
||||
EXAMPLE
|
||||
> print tanh(1, 1e-5), tanh(1, 1e-10), tanh(1, 1e-15), tanh(1, 1e-20)
|
||||
.76159 .761594156 .761594155955765 .76159415595576488812
|
||||
|
||||
LIMITS
|
||||
unlike sin and cos, x must be real
|
||||
eps > 0
|
||||
|
||||
LIBRARY
|
||||
NUMBER *qtanh(NUMBER *x, NUMBER *eps)
|
||||
|
||||
SEE ALSO
|
||||
sinh, cosh, sech, csch, coth, epsilon
|
Reference in New Issue
Block a user