O'Reilly logo

Digital Dice by Paul J. Nahin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

image

APPENDIX 3

Random Harmonic Series

The code rhs.m produces a histogram of 50,000 values of the partial sums (first 100 terms) of image where tk = –1 or +1 with equal probability. This histogram, shown in Figure A3.1, suggests that the probability is very small that the absolute value of a partial sum exceeds 4. But, remember, there is in fact no upper bound on the sum of the RHS; with an extremely small probability a sum could exceed any given finite value. The only “MATLABy” thing about rhs.m is the very last command, the highly useful hist. (I used ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required