Error Analysis of a Computation of Euler's Constant*

Similar documents
Ergodic Computations with Continued Fractions and Jacobi's Algorithm*

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

PUTNAM PROBLEMS SEQUENCES, SERIES AND RECURRENCES. Notes

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

An Alternate Method to Compute the Decimal Expansion of Rational Numbers

Teacher: Mr. Chafayay. Name: Class & Block : Date: ID: A. 3 Which function is represented by the graph?

F-Expansions of rationals

Solving Systems of Linear Equations. Classification by Number of Solutions

5.1. Integer Exponents and Scientific Notation. Objectives. Use the product rule for exponents. Define 0 and negative exponents.

Taylor Series. Math114. March 1, Department of Mathematics, University of Kentucky. Math114 Lecture 18 1/ 13

Math 0230 Calculus 2 Lectures

EDULABZ INTERNATIONAL NUMBER SYSTEM

JACOBI'S SOLUTION OF LINEAR DI0PHA"E EQUATIONS

New evidence for the infinitude of some prime constellations

Chapter 1 Mathematical Preliminaries and Error Analysis

Taylor Series. richard/math230 These notes are taken from Calculus Vol I, by Tom M. Apostol,

THREE IDENTITIES BETWEEN STIRLING NUMBERS AND THE STABILIZING CHARACTER SEQUENCE

Prelim 2 Math Please show your reasoning and all your work. This is a 90 minute exam. Calculators are not needed or permitted. Good luck!

Chapter 11 - Sequences and Series

Exact Comparison of Quadratic Irrationals

MATHEMATICS OF COMPUTATION, VOLUME 26, NUMBER 118, APRIL An Algorithm for Computing Logarithms. and Arctangents. By B. C.

5. Hand in the entire exam booklet and your computer score sheet.

THE SERIES THAT RAMANUJAN MISUNDERSTOOD

Representation of Functions as Power Series.

ln(9 4x 5 = ln(75) (4x 5) ln(9) = ln(75) 4x 5 = ln(75) ln(9) ln(75) ln(9) = 1. You don t have to simplify the exact e x + 4e x

A Symbolic Operator Approach to Several Summation Formulas for Power Series

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

Taylor and Maclaurin Series. Copyright Cengage Learning. All rights reserved.

On the Equation =<#>(«+ k)

ON THE TAYLOR COEFFICIENTS OF THE HURWITZ ZETA FUNCTION

Name. Instructor K. Pernell 1. Berkeley City College Due: HW 4 - Chapter 11 - Infinite Sequences and Series. Write the first four terms of {an}.

CHAPTER 1 REAL NUMBERS KEY POINTS

Course Learning Outcomes for Unit III. Reading Assignment. Unit Lesson. UNIT III STUDY GUIDE Number Theory and the Real Number System

Assignment 4. u n+1 n(n + 1) i(i + 1) = n n (n + 1)(n + 2) n(n + 2) + 1 = (n + 1)(n + 2) 2 n + 1. u n (n + 1)(n + 2) n(n + 1) = n

AP Calculus Chapter 9: Infinite Series

11.6: Ratio and Root Tests Page 1. absolutely convergent, conditionally convergent, or divergent?

Part 3.3 Differentiation Taylor Polynomials

CMSC Discrete Mathematics SOLUTIONS TO SECOND MIDTERM EXAM November, 2005

Let s Get Series(ous)

2210 fall 2002 Exponential and log functions Positive Integer exponents Negative integer exponents Fractional exponents

AP Calculus Testbank (Chapter 9) (Mr. Surowski)

1 The distributive law

MATHEMATICS X l Let x = p q be a rational number, such l If p, q, r are any three positive integers, then, l that the prime factorisation of q is of t

Numerical Methods. King Saud University

CALCULUS JIA-MING (FRANK) LIOU

Florida Math 0022 Correlation of the ALEKS course Florida Math 0022 to the Florida Mathematics Competencies - Lower and Upper

Taylor and Maclaurin Series

Masters Tuition Center

Lies My Calculator and Computer Told Me

Academic-Clinic.com BASIC ARITHMETIC AND ALGEBRA POINTERS. Whole (natural) numbers. Arithmetical operations

Permutations with Inversions

z = log loglog

8.5 Taylor Polynomials and Taylor Series

The Way of Analysis. Robert S. Strichartz. Jones and Bartlett Publishers. Mathematics Department Cornell University Ithaca, New York

MULTISECTION METHOD AND FURTHER FORMULAE FOR π. De-Yin Zheng

Review of Power Series

Intermediate Math Circles February 26, 2014 Diophantine Equations I

Section 4.1: Sequences and Series

Assume that you have made n different measurements of a quantity x. Usually the results of these measurements will vary; call them x 1

Summation Methods on Divergent Series. Nick Saal Santa Rosa Junior College April 23, 2016

Florida Math Curriculum (433 topics)

MATHEMATICAL FORMULAS AND INTEGRALS

JUST THE MATHS UNIT NUMBER 1.4. ALGEBRA 4 (Logarithms) A.J.Hobson

Stochastic calculus for summable processes 1

Question 1: Is zero a rational number? Can you write it in the form p, where p and q are integers and q 0?

Objectives. Vocabulary. 1-5 Properties of Exponents. 1.5: Properties of Exponents. Simplify expressions involving exponents. Use scientific notation.

Chapter 1: Preliminaries and Error Analysis

AN INTRODUCTION TO CLASSICAL REAL ANALYSIS

SECTION 9.2: ARITHMETIC SEQUENCES and PARTIAL SUMS

Infinite series, improper integrals, and Taylor series

Series. richard/math230 These notes are taken from Calculus Vol I, by Tom M. Apostol,

Long division for integers

Section Taylor and Maclaurin Series

A number that can be written as, where p and q are integers and q Number.

SECTION A. f(x) = ln(x). Sketch the graph of y = f(x), indicating the coordinates of any points where the graph crosses the axes.

Fundamentals of Pure Mathematics - Problem Sheet

Homework and Computer Problems for Math*2130 (W17).

Contents. Preface xi. vii

5.6 Logarithmic and Exponential Equations

TAYLOR AND MACLAURIN SERIES

ON THE HURWITZ ZETA-FUNCTION

The Continuing Story of Zeta

Solution of Algebric & Transcendental Equations

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

Given a sequence a 1, a 2,...of numbers, the finite sum a 1 + a 2 + +a n,wheren is an nonnegative integer, can be written

Finding the sum of a finite Geometric Series. The sum of the first 5 powers of 2 The sum of the first 5 powers of 3

Assignment 16 Solution. Please do not copy and paste my answer. You will get similar questions but with different numbers!

8.3 Partial Fraction Decomposition

Introduction - Motivation. Many phenomena (physical, chemical, biological, etc.) are model by differential equations. f f(x + h) f(x) (x) = lim

Section 11.1: Sequences

CS1800: Sequences & Sums. Professor Kevin Gold

The sum of the series of reciprocals of the quadratic polynomial with different negative integer roots

MATH115. Infinite Series. Paolo Lorenzo Bautista. July 17, De La Salle University. PLBautista (DLSU) MATH115 July 17, / 43

Absolute Convergence and the Ratio Test

UNIT 14 Exponents. Scientific Notation

Calculus Favorite: Stirling s Approximation, Approximately

Polyexponentials. Khristo N. Boyadzhiev Ohio Northern University Departnment of Mathematics Ada, OH

Exponents, Polynomials, and Polynomial Functions. Copyright 2014, 2010, 2006 Pearson Education, Inc. Section 5.1, 1

NAME DATE PERIOD. A negative exponent is the result of repeated division. Extending the pattern below shows that 4 1 = 1 4 or 1. Example: 6 4 = 1 6 4

Convergence of sequences and series

Transcription:

MATHEMATICS OF COMPUTATION, VOLUME 28, NUMBER 126, APRIL 1974, PAGES 599-604 Error Analysis of a Computation of Euler's Constant* By W. A. Beyer and M. S. Waterman Abstract. A complete error analysis of a computation of 7, Euler's constant, is given. The results have been used to compute y to 71 14 places and this value has been deposited in the UMT file. 1. Introduction. In a paper on ergodic computations with continued fractions [I], we used 3561 decimal places of y, Euler's constant, as given by Sweeney [7] to compute 3420 partial quotients of the continued fraction expansion of y. The partial quotients were sent to the Unpublished Manuscript Tables file and were there compared by Dr. Wrench with those given by Choong et al. [3]. Some disagreements were found and it was eventually decided to recompute Sweeney's value. This involved a careful reading of Sweeney's method and, as his error analysis is not detailed, a distinct error analysis resulted. This analysis is presented here. ' 2. Error Analysis. We begin with the exponential integral -Ei(-x) [2, p. 3341, and we consider only x > 1: (1) where -Ei(-x) = 1 - df = -7 - In x 4- S(x), OD e-' s t X2 +---+ S(x) = x -- X8 x4.... 2*2! 3.3! 4.4! The analysis of [6, p. 261 can be adapted to show where IR,,(x)l S (n + I)!/X"+'. However, we only require n = 0 and it is easy to see that Since, for x > 0, Received June 26, 1973. AMS (MOS) subject classifications (1970). Primary 1064, 10A40; Secondary 41-04, 41A25. * Work partly performed under the auspices of the U. S. Atomic Energy Commission while one of the authors (M.S.W.) was a faculty participant of the Associated Western Universities at Los Alamos Scientific Laboratory. The work was also supported in part by NSF grants GP-28313 and GP-28313 #l. 599 Copyright 0 1974, American Mathematical Society

600 W. A. BEYER AND M. 9. WATERMAN we infer that (3) -2 e e-= e-" S(x) --- lnx 4 y 4 S(x) + 2 -; - lnx. X Our problem is to use Eq. (3) to compute y to a desired number of decimal places. After x is taken to be a power of 2, we must approximate e-"/x, In 2, and S(x). The computation was done, on the Maniac I1 computer which does multiple-precision integer arithmetic without special programming. Therefore eacb function above will be multiplied by an appropriate power of 10, say 10". Of the u places in our answer, we will require that each answer be correct to d - 1 places. Equation (3) becomes (4) e-" lo"s(x) - 10" - - 10" lnn I; l0"y S 1O"S(x) X + 10" e We first consider the error in the exponential terms of (4). -z e-" - - 10" y - 10" In x. Xa ' If the exponential terms are neglected in (3) and we desire d - 1 correct places, we must have u - x/ln 10 < u - d or d In 10 < x. Thus, we determine d from (5) d = [x/ln 101. The following procedure is used to approximate S(x). Let Then define T(x) by n-1 A,-l = 10" -- n2 x, k Ab = 10" - (k + 1)2xAk+1, 1 S k < n - 1. IO"T(x) = xal = ~(10' - 5 A2) = ~(10" - 3 (10" - 9 A,))...

ERROR ANALYSIS OF A COMPUTATION OF EULER'S CONSTANT 601 The quantity in parentheses is the remainder term in the Taylor expansion of e. and is therefore equal to xn+'e'=/(n + l)!, 8 E (0, 1). Next, we assume n > 2x and use a technique of Courant [4, p. 3261 to obtain x"+'/(n + l)! < (2~)~'/(2x)!2-"-'. Thus Using the fact that Stirling's formula underestimates (2x)! [5, p. 541, we obtain Since we require d - 1 correct places, we take which yields a + (3x - (n + 1) In 2)/h 10 < a - d n > d In lo/h 2 3x/h 2-1. But we have x > d In 10, so it is sufficient to take (6) n = [4x/ln 21. We note that n = [4x/ln 21 > 2x as required above. There is also round-off error in computing lo"t(x). Assume that an error of tk is ma& in the kth iteration: Then 1O"f'(x) = x AI...

I 602 ' 1 11'1!", FVATERMAN I 1 1 8 1 11iii1 places, one can use (3) to compute I 1 I I I, I imputation of the decimals of In 2 is miril 1 I 1 1 I IC!some positive integer to be deter- I I I t 1 c:btained from Taylor's series): I I 1.--+7+ ioa ior... 1!1.36 7.3 )... whi (8) Thi I li I:~ I ( 3 by the condition that 11 1 li):32k+1. (9) Thi ~ I I IIO i,.l oiminated by mii 1 1 1 ] i i,e dominated by k - 1. Hence 11 ' l'i(k - 1) + 9/4, I I I.idies (8). An upper bound to k as given (11 1 Hi (1: I1 i I, I /:I! In IO/h 3 + a. 1:11ic sees from (12) that the error in In 2 I II:II places. We actually have only reported

ERROR ANALYSIS OF A COMPUTATION OF EULER'S CONSTANT 603 TABLE 1 L Theoretical Frequency of n: Sample Frequency 1 (n -ln + n of n In 2 n(n + 2) 1 0.4225 0.4150 2 0.1646 0.1699 3 0.08% 0.0931 4 0.0527 0.0589 5 0.0438 0.0406 6 0.0308 0.0297 7 0.0228 0.0227 8 0.0216 0.0179 9 0.0121 0.0144 10 0.0124 0.0119 Guaranteed Number of Actual Number Correct Digits of X d- 1 Correct Digits 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 2 5 12 26 54 110 221 443 888 1777 3556 7114 4 7 14 29 57 113 224 446 889 1795 3561 4. Computation of y. For our calculation, we used x = 2". From this x, we obtained d = [x/ln 101 = 7115, a = 2d + 1 = 14231, n = [4x/ln 21 = 94548, and k = [a In 10/(2 In 311 + 1 = 14914. The above analysis shows that our computation of y is accurate to 71 14 places. The errors from e-=/x and S(x) might each affect the 7115th place. From this computation, we obtained 7114 correct decimal places of y. These values were used to calculate 6920 partial quotients in the continued fraction expansion of y. The 7121 places of In 2 yielded 6890 partial quotients of In 2. Note that

604 W. A. BEYER AND M. S. WATERMAN the number of partial quotients of y is more than that of In 2. These have been sent to the Unpublished Manuscript Tables (UMT) file of this journal. In Choong et al. [3], Table 1 gives sample frequency of n and theoretical frequency of n for 3470 partial quotients of y. Our Table 1 corrects their Table 1. Our Table 2 gives our results for x = 2 (t = 3, 4, *., 14) and is thus a check of our analysis. Acknowledgements. The authors thank Dr. J. W. Wrench, Jr. for helpful suggestions and encouragement in this work. We thank the referee for pointing out some oversights. Los Alamos Scientific Laboratory Los Alamos, New Mexico 87544 Idaho State University Pocatello, Idaho 83201 1. W. A. BEYER & M. S. WATERMAN, Ergodic computations with continued fractions and Jacobi s algorithm, Numer. Math., v. 19, 1972, pp. 195-205. Errata, v. 20, 1973, p. 430. MR 46 #2832. 2. T. J. I A. BROMWICH, An Introduction to the Theory of Infinite Series, 2nd rev. ed., Macmillan, London, 1949. 3. K. Y. CHOONG, D. E. DAYKIN & C. R. RATHBONE, Rational approximations to T, Math. Comp., v. 25, 1971, pp. 387-392. (See also Math. Comp., v. 27, 1973, p. 451, MTE 501.) MR 46 #141. 4. R. COURANT, Differential and Integral Calculus. Vol. I, 2nd rev. ed., Interscience, New York, 1937. 5. W. FELLER, An Introduction to Probability Theory and its Applications. Vol. I, 3rd rev. ed., Wiley, New York, 1968. MR 37 #3604. 6. G. H. HARDY, Divergent Series, Clarendon Press, Oxford, 1949. MR 11,25. 7. D. W. SWEENEY, On the computation of Euler s constant, Math. Cornp., v. 17, 1963, pp. 170-178. (See Corrigendum in Math. Comp., v. 17, 1963, p. 488.) MR 28 #3522.