Problem 1: Compute the following products in your head or with pencil and paper, and then check your answers with Matlab. Note: one of the problems is not well-posed and therefore does not have an answer.
(a) and . What is ?
(b) and . What is ?
(c) and . What is ?
(d) and . What is ?
Problem 2: Suggest a slight modification that turns the ill-posed problem from 1 into a well-posed problem, and then compute it by hand and with Matlab.
Problem 3: Given the 2 x 2 matrix and the 2-d vector , what vector satisfies ? Solve with pencil and paper and with Matlab.
Problem 4: Solve the following systems of equations numerically with Matlab.
Problem 5: Use Matlab to solve the problem. Nilanjana has 40 coins worth $6.40. They're all quarters and nickels. How many nickels and how many quarters does she have? Verify that your answer solves the problem.
Hint: convert the story problem to an problem and then solve that with Matlab.
Problem 6: Use Matlab to solve the problem. Suhasini has 44 coins worth $7.50. They're all quarter, dimes, and nickels. She has twice as many dimes as nickels. How many of each type of coin does she have? Find the answer, and then verify that the solution satisfies the problem.
Problem 7: Use Matlab to solve the following problem (from Numerical Computing with Matlab by Clive Moler).
A positive value of indicates the member (beam) is under tension, and negative indicates compression. Which member is under most tension? Which member is under most compression?
One of the main challenges of this problem is figuring out how to enter the elements of the matrix quickly and reliably. For a small matrix, it's easy to type out the matrix explicitly like
A = [ 1 9 7 ; 4 3 8 ; 6 2 0], but for a 13 x 13 matrix with 169 elements, that's tedious and error prone.