====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
gibson:teaching:spring-2016:math445:hw1 [2016/01/25 11:53] gibson |
gibson:teaching:spring-2016:math445:hw1 [2016/01/25 11:55] (current) gibson |
||
---|---|---|---|
Line 33: | Line 33: | ||
**Problem 4:** | **Problem 4:** | ||
- | Let $e_n$ be the truncation of the above series after the $n$th term, i.e. $e_1 = 1$, $e_2 = 1 + 1/1!$, etc. Devise a Matlab expression that uses the ''log10'' function to count the number of digits of accuracy in any given $e_n$. | + | Let $e_n$ be the truncation of the above series after the $n$th term, i.e. $e_1 = 1$, $e_2 = 1 + 1/1!$, etc. Devise a Matlab expression that uses the ''log10'' function to count the number of digits of accuracy for a given $e_n$. Use this expression to verify your answer for problem 3. |