gibson:teaching:spring-2016:math445:hw1

If you have your own computer and want to run Matlab on it, download and install Matlab from UNH academic software. Otherwise find a UNH computer that has Matlab installed.

Remember, you are required to do these homeworks **by yourself**. If you get stuck, refer to your textbook. If you are absolutely stuck, *talk* to a fellow student, the teaching assistant, or the instructor, and get hints for how to proceed. But **do not** copy someone else's solved problem.

**Problem 1:** The combined resistance of three resistors in parallel is given by

Create variables for the three resistors , with values 5, 3, and 4. Then calculate by translating the above formula into Matlab syntax.

**Problem 2:** Another series expansion of is

Do you think finite truncations of this series will converge to faster or slower than the Ramanujan series from lab 1? Take a guess before testing in Matlab!

How many digits of accuracy do you get for two terms of this series? How many digits did you get for two terms of the Ramanujan series? What reason is there for the difference in the convergence rate of the two formulae?

**Problem 3:** A series expansion for is

How many terms of this series do you need to get four digits of accuracy?

**Problem 4:**
Let be the truncation of the above series after the th term, i.e. , , etc. Devise a Matlab expression that uses the `log10`

function to count the number of digits of accuracy for a given . Use this expression to verify your answer for problem 3.

gibson/teaching/spring-2016/math445/hw1.txt · Last modified: 2016/01/25 11:55 by gibson