06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“mcs” — 2017/3/3 — 11:21 — page 569 — #577<br />

14.6. Double Trouble 569<br />

Approximation n 1 n 10 n 100 n 1000<br />

p<br />

2 n<br />

n<br />

e<br />

n<br />

< 10% < 1% < 0.1% < 0.01%<br />

p<br />

2 n<br />

n<br />

e<br />

n e<br />

1=12n<br />

< 1% < 0.01% < 0.0001% < 0.000001%<br />

Table 14.1 Error bounds on common approximations <strong>for</strong> nŠ from Theorem<br />

14.5.1. For example, if n 100, then p 2n n n<br />

e approximates nŠ to<br />

within 0.1%.<br />

Corollary 14.5.2.<br />

nŠ < p n<br />

n<br />

8ˆ< 1:09 <strong>for</strong> n 1;<br />

2n 1:009 <strong>for</strong> n 10;<br />

e ˆ:<br />

1:0009 <strong>for</strong> n 100:<br />

14.6 Double Trouble<br />

Sometimes we have to evaluate sums of sums, otherwise known as double summations.<br />

This sounds hairy, and sometimes it is. But usually, it is straight<strong>for</strong>ward—<br />

you just evaluate the inner sum, replace it with a closed <strong>for</strong>m, and then evaluate the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!