====== Differences ====== This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gibson:teaching:fall-2014:math445:hw1solns [2014/09/12 08:34] gibson created |
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 | ||
+ | * 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 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. | ||
+ | |||
+ | My homework set prints in just three pages, if I show just one way of solving each problem! | ||
+ | |||
+ | **Please be sure to make your homework solutions as compact and readable as possible, using ''format compact'' and editing out extraneous material!** | ||
<code> | <code> | ||
Line 62: | 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. |