Homework1 - exact-computed | ) Answers: Save the matrix...

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

View Full Document Right Arrow Icon
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 Error |
Background image of page 1
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 Dene 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

This note was uploaded on 04/10/2011 for the course MATH 160 taught by Professor Gauldin during the Spring '10 term at Averett Unversity.

Ask a homework question - tutors are online