diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-18 15:54:05 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-18 15:54:05 +0000 |
commit | 444e474828d5f87800458a2977f86f428373f77d (patch) | |
tree | dd28444cc28bd99fdbfeebc822dd3247617b6b50 | |
parent | bfa641fd62d92aec1771111beb399747212e40e7 (diff) | |
download | mpfr-444e474828d5f87800458a2977f86f428373f77d.tar.gz |
[doc/algorithms.tex] mpfr_tanh: detailed some inequalities.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12003 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | doc/algorithms.tex | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/algorithms.tex b/doc/algorithms.tex index bb595c45b..e15591e75 100644 --- a/doc/algorithms.tex +++ b/doc/algorithms.tex @@ -1880,11 +1880,12 @@ The result follows from $\log(1+x) \leq 0.82\,x$ for $0 < x \leq 1/2$, and $1.4 \times 0.82 \leq 1.2$. \end{proof} -% Because for t > 0 and q >= 1, |(1-t)^q - 1| <= |(1+t)^q - 1|... - -Applying the above lemma for $x=2^{-p}$ and $y=2^k+4$, -assuming $2^k+4 \leq 2^{p/2}$, -we get $|(1+\theta_4)^{2^k+4} - 1| \leq |(1+2^{-p})^{2^k+4} - 1| +First, note that for $t > 0$ and $q \geq 1$, one has +$|(1-t)^q - 1| \leq |(1+t)^q - 1|$ due to the triangle inequality on the +development. Thus $|(1+\theta_4)^{2^k+4} - 1| \leq |(1+2^{-p})^{2^k+4} - 1|$. +Then one can apply the above lemma for $x=2^{-p}$ and $y=2^k+4$, +assuming $2^k+4 \leq 2^{p/2}$. +We get $|(1+\theta_4)^{2^k+4} - 1| \leq |(1+2^{-p})^{2^k+4} - 1| \leq 1.2 (2^k+4) 2^{-p}$, and thus we can write $s = \tanh(x) [1 + 1.2 (2^k+4)\theta_5]$ with $|\theta_5| \leq 2^{-p}$. |