
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Math 152 (Spring 2009, Bates) Lab 3
Due March 5, 2009
(a) (3 points) The determinant of a 2x2 matrix
a b c d
is jus a · d − b · c. Have “myDet2” take in
a matrix called A and return this determinant. Also, test it on the input
a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33
Then the determinant of A is given by det(A) = a 11 ·det(A, 1 , 1)−a 12 ·det(A, 1 , 2)+a 13 ·det(A, 1 , 3), where det(A, i, j) is the determinant of the matrix you get when you delete row i and column j from A. For this part of the problem, have “myDet3” take in a 3x3 matrix A and evaluate its determinant, making three calls to “myDet2” along the way. The Maple functions DeleteRow() and DeleteColumn() (in the LinearAlgebra package) will be useful. Test your function on