
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Math 151A Homework #3 – due Wednesday 10/25, in class
Show all your work!
∣ ∣ ∣
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.]
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?