User Tools

Site Tools


gibson:teaching:fall-2014:math445:hw1solns

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gibson:teaching:fall-2014:math445:hw1solns [2014/09/12 08:40]
gibson
gibson:teaching:fall-2014:math445:hw1solns [2014/09/12 08:50] (current)
gibson
Line 1: Line 1:
 Here's an ideal solution to HW1. Note the following Here's an ideal solution to HW1. Note the following
  
- * I used ''​format compact''​ to minimize empty lines and thus save electrons and trees.  +  ​* I used ''​format compact''​ to minimize empty lines and thus save electrons and trees.  
- * I included as much of the problem statement as possible (dropping hard-to-type mathematical expressions +  * I included as much of the problem statement as possible (dropping hard-to-type mathematical expressions 
- * I edited out errors, calls to ''​help''​ and so on.  +  * I edited out errors, calls to ''​help''​ and so on.  
- * In some cases I showed several ways to accomplish the same task. I don't expect that of you.+  * In some cases I showed several ways to accomplish the same task. I don't expect that of you.
  
-*Please be sure to make your solutions as compact and readable as possibleusing ''​format compact''​ and editing out extraneous material!**+My homework set prints in just three pagesif I show just one way of solving each problem!
  
-<​code ​matlab>+**Please be sure to make your homework solutions as compact and readable as possible, using ''​format compact''​ and editing out extraneous material!** 
 + 
 +<​code>​
 % John F. Gibson % John F. Gibson
 % 2014-09-12 % 2014-09-12
Line 69: Line 71:
     1.2766     1.2766
  
 +% or even better
 +RT = 1/sum([5 3 4].^(-1))
 +RT =
 +    1.2766
 +    ​
 % Problem 3: % Problem 3:
 % (a) Create a row vector x whose elements are the numbers 5, 7, 10, 1. % (a) Create a row vector x whose elements are the numbers 5, 7, 10, 1.
gibson/teaching/fall-2014/math445/hw1solns.1410536429.txt.gz · Last modified: 2014/09/12 08:40 by gibson