{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework1

# Homework1 - exact-computed | Answers Save the matrix errors...

This preview shows page 1. Sign up to view the full content.

AMATH301 Winter 2010 Homework 1 Due: 11:59:59pm Wednesday January 13, 2010 Make sure you upload to Scorelator your main homework m-file as well as any auxiliary files you need (function files or data files). Your main m-file should generate all of the .dat files. Exercise 1 Iterations Compute the following: 1 , 000 - 10 , 000 X i =1 0 . 1 10 , 000 - 100 , 000 X i =1 0 . 1 100 , 000 - 1 , 000 , 000 X i =1 0 . 1 Write a Matlab algorithm to compute each of the above repeated subtractions and compare the computed answer to the exact answer of zero (i.e. compute the Absolute
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: exact-computed | ) Answers: Save the matrix errors as A1.dat-A3.dat Exercise 2 Vector and Matrix Operations Deﬁne the following vectors and matrices: A = ± 3 1 3 2 ² , B = ± 2 4 5 1 ² , C = ± 2 1 2 3 3 1 ² , D = 8 3 2 7 , x = ± 1 ² , y = ± 1 ² , z = 2 1 2 Calculate the following: (a) A + B (b) 2 x + y (c) A x (d) B ( x + 2 y ) (e) D y (f) AB (g) BC (h) CD Check your answers by hand. Answers: Save (a)-(h) as A4.dat-A11.dat 1...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online