Computers and Technology

Generating integer matrices with integer inverses For certain simulations, it is con venient to have a collection of randomly-generated matrices that have integer entries and whose inverses also have integer entries. Argue, using Theorem 14, that an integer matrix with determinant equal to 1 or - will have an integer inverse. One easy way to create an integer matrix A with determinant equal to 1 or -1 is to set A LU where L is a lower-triangular integer matrix with l's and -'s on its diagonal and where U is an upper-triangular integer matrix with l's and -1's on its diagonal. Then, since det(A) det(L) det(U), we see that both A and A will be integer matrices Use these ideas to create a set of ten randomly generated (5 x 5) integer matrices with integer inverses. For each matrix A created, use the MATLAB inv command to generate the inverse for A. Note, because of roundoff error, that the MATLAB inverse for A is not always an integer matrix. To eliminate the roundoff error, you can use the command round (inv (A)) in order to round the entries of A-1 to the nearest integer. Check, by direct multiplication, that this will produce the inverse.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:10, reycaden
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
image
Computers and Technology, 23.06.2019 12:00, kp2078
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, taytay1828
What are the 12 colors of the spectrum called?
Answers: 1
image
Computers and Technology, 23.06.2019 21:40, minnie7760
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
Do you know the correct answer?
Generating integer matrices with integer inverses For certain simulations, it is con venient to have...

Questions in other subjects:

Konu
Physics, 04.10.2021 14:00
Konu
Mathematics, 04.10.2021 14:00