Math 151A HW #3: Trinary Computing, k-digit Rounding, Approximating π and e, Assignments of Mathematics

Math 151a homework #3, which covers various topics including trinary computing, k-digit rounding approximation, and approximating the mathematical constants π and e. Students are expected to solve problems related to the number of decimal digits of precision in trinary computing, the error bounds for k-digit rounding approximation, and the relative errors and significant digits for approximating π and e using different methods.

Typology: Assignments

Pre 2010

Uploaded on 08/26/2009

koofers-user-y06
koofers-user-y06 🇺🇸

8 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 151A Homework #3 due Wednesday 10/25, in class
Show all your work!
1. Trinary computing.
Imagine we’ve invented a trinary (base 3) computer, which stores information as trits
(trinary bits) which can take on values 0,1 or 2. If (as with binary computers) the tri-
nary computer uses 52 trits to hold the mantissa (a.k.a. the trinary fraction), how many
decimal digits of precision can we expect?
2. k-digit rounding approximation (Problem 24 of section 1.2)
Suppose that f l(y) is a k-digit rounding approximation to y. Show that
yfl(y)
y0.5×10k+1.
[Hint: If dk+1 <5, then fl(y) = 0.d1d2. . . dk×10n. If dk+1 5, then fl(y) = 0.d1d2. . . dk×
10n+ 10nk.]
3. Approximating π
Compute the absolute error and relative error for approximating πby 22/7. How many
significant digits is the approximation good to?
4. Approximating e
a. The number ecan be approximated by the sequence
e
n
X
k=0
1
k!.
If n= 4, what is the relative error and number of significant digits in this approximation
of e? How about when n= 8?
b. The number ecan also be approximated by
en· 2πn
n!!1/n
What is the relative error and number of significant digits when n= 4, n= 8, and
n= 20?

Partial preview of the text

Download Math 151A HW #3: Trinary Computing, k-digit Rounding, Approximating π and e and more Assignments Mathematics in PDF only on Docsity!

Math 151A Homework #3 – due Wednesday 10/25, in class

Show all your work!

  1. Trinary computing. Imagine we’ve invented a trinary (base 3) computer, which stores information as trits (trinary bits) which can take on values 0, 1 or 2. If (as with binary computers) the tri- nary computer uses 52 trits to hold the mantissa (a.k.a. the trinary fraction), how many decimal digits of precision can we expect?
  2. k-digit rounding approximation (Problem 24 of section 1.2) Suppose that f l(y) is a k-digit rounding approximation to y. Show that

∣ ∣ ∣

y − f l(y) y

∣ ≤^0.^5 ×^10 −k+1.

[Hint: If dk+1 < 5, then f l(y) = 0.d 1 d 2... dk × 10 n. If dk+1 ≥ 5, then f l(y) = 0.d 1 d 2... dk × 10 n^ + 10n−k.]

  1. Approximating π Compute the absolute error and relative error for approximating π by 22/7. How many significant digits is the approximation good to?
  2. Approximating e

a. The number e can be approximated by the sequence

e ≈

∑^ n

k=

k!

If n = 4, what is the relative error and number of significant digits in this approximation of e? How about when n = 8? b. The number e can also be approximated by

e ≈ n ·

2 πn n!

) 1 /n

What is the relative error and number of significant digits when n = 4, n = 8, and n = 20?