Searched refs:tanh (Results 1 - 6 of 6) sorted by relevance

/bionic/libm/upstream-freebsd/lib/msun/src/
H A Ds_tanh.c22 * 0. tanh(x) is defined to be -----------
25 * 1. reduce x to non-negative by tanh(-x) = -tanh(x).
26 * 2. 0 <= x < 2**-28 : tanh(x) := x with inexact if x != 0
28 * 2**-28 <= x < 1 : tanh(x) := -----; t = expm1(-2x)
31 * 1 <= x < 22 : tanh(x) := 1 - -----; t = expm1(2x)
33 * 22 <= x <= INF : tanh(x) := 1.
36 * tanh(NaN) is NaN;
37 * only tanh(0)=0 is exact for finite argument.
49 tanh(doubl function
[all...]
/bionic/libstdc++/include/
H A Dcmath55 using ::tanh;
/bionic/libm/x86/
H A Ds_tanh.S35 // tanh(x)=(exp(x)-exp(-x))/(exp(x)+exp(-x))=(1-exp(-2*x))/(1+exp(-2*x))
73 // tanh(NaN) = quiet NaN, and raise invalid exception
74 // tanh(INF) = that INF
75 // tanh(+/-0) = +/-0
95 # -- Begin tanh
96 ENTRY(tanh) function
277 END(tanh)
278 # -- End tanh
281 ALIAS_SYMBOL(tanhl, tanh);
/bionic/libm/x86_64/
H A Ds_tanh.S35 // tanh(x)=(exp(x)-exp(-x))/(exp(x)+exp(-x))=(1-exp(-2*x))/(1+exp(-2*x))
73 // tanh(NaN) = quiet NaN, and raise invalid exception
74 // tanh(INF) = that INF
75 // tanh(+/-0) = +/-0
80 # -- Begin tanh
81 ENTRY(tanh) function
256 END(tanh)
257 # -- End tanh
/bionic/libm/include/
H A Dmath.h202 double tanh(double);
/bionic/tests/
H A Dmath_test.cpp460 TEST(math, tanh) {
461 ASSERT_DOUBLE_EQ(0.0, tanh(0.0));
1854 DoMathDataTest<2>(g_tanh_intel_data, tanh);

Completed in 136 milliseconds