summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-03-30 15:55:46 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-03-30 15:55:46 +0000
commitc085d488d3a610448d75a3e13cd12f5773fdc6b6 (patch)
tree2e3c6c331a9ed2e77d5c35e93369cfe9d54aa162 /doc
parent24f87c9934811c6675c1f690d9e017c7d4127ac1 (diff)
downloadmpc-c085d488d3a610448d75a3e13cd12f5773fdc6b6.tar.gz
[src/pow_ui.c] implemented binary exponentiation (with fallback to mpc_pow
in case of failure, or for exponent 0) [tests/tpow_ui.c] now performs some real tests, in particular compares with mpc_pow [doc/algorithms.tex] simplified error bound for mpc_pow_ui git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@745 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'doc')
-rw-r--r--doc/algorithms.tex17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/algorithms.tex b/doc/algorithms.tex
index 7bd24a2..defc437 100644
--- a/doc/algorithms.tex
+++ b/doc/algorithms.tex
@@ -1645,6 +1645,23 @@ on the real part and of
\]
on the imaginary part of the result.
+If we further assume that $(n-1) 2^{-p} \leq 1$, then
+$\left( (1 + 2^{-p})^{n-1} - 1 \right) \leq 2 (n-1) 2^{-p}$,
+because $(1+\varepsilon)^m-1 = \exp(m \log(1+\varepsilon)) - 1
+\leq \exp(\varepsilon m) - 1 \leq 2 \varepsilon m$ as long as
+$\varepsilon m \leq 1$. This gives the simplified bounds
+\[
+\left( 2 + 2^{\Exp (\Im \appro x_k) - \Exp (\Re \appro x_k) + 2} \right)
+(n-1) \Ulp (\Re \appro x_k)
+\]
+on the real part and of
+\[
+\left( 2 + 2^{\Exp (\Re \appro x_k) - \Exp (\Im \appro x_k) + 2} \right)
+(n-1) \Ulp (\Im \appro x_k)
+\]
+on the imaginary part.
+
+
\bibliographystyle{acm}
\bibliography{algorithms}