User Tools

Site Tools


gibson:teaching:fall-2014:math445:hw1

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Math 445 HW1 ====== Solve the following problems with Matlab. Save your Matlab session to a file by turning "diary on". When you're done, edit the diary in a text editor to remove errors and add appropriate comments. Print the edited diary to turn in. If you have your own computer and want to run Matlab on it, download and install Matlab from {{http://at.unh.edu/acs/services/software/ | UNH academic software}}. Otherwise you can do your homework on the computers in Kingsbury N129. Remember, you are required to do these homeworks **by yourself**. **Problem 1:** Given two variables $x$ and $y$, write a Matlab expression that evaluates to true (1) if $x$ and $y$ have opposite signs and false (0) otherwise. Test the expression by **Problem 2:** The combined resistance $R_T$ of three resistors $R_1, R_2, R_3$ in parallel is given by \begin{eqnarray*} R_T = \frac{1}{\frac{1}{R_1} + \frac{1}{R_2} + \frac{1}{R_3}} \end{eqnarray*} Create variables for the three resistors $R_1, R_2, R_3$, with values 5, 3, and 4. Then calculate $R_T$ by translating the above formula into Matlab syntax.

gibson/teaching/fall-2014/math445/hw1.1409845908.txt.gz · Last modified: 2014/09/04 08:51 by gibson