Differential Equations Solutions 12

Differential - 22 Chapter 5 Solutions Matrix Factorizations x = b detA = 1 for i=1:n x(i = x(i A(i,i x(i 1:n = x(i 1:n A(i 1:n,i*x(i detA = detA

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

22 Chapter 5. Solutions: Matrix Factorizations x=b ; detA = 1; for i=1:n, x(i) = x(i) / A(i,i); x(i+1:n) = x(i+1:n) - A(i+1:n,i)*x(i); detA = detA * A(i,i); end CHALLENGE 5.4. (a) a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 = ± 11 00 ± 21 ± 22 0 ± 31 ± 32 ± 33 ± 11 ± 21 ± 31 0 ± 22 ± 32 ± 33 = ± 2 11 ± 11 ± 21 ± 11 ± 31 ± 21 ± 11 ± 2 21 + ± 2 22 ± 21 ± 31 + ± 22 ± 32 ± 31 ± 11 ± 31 ± 21 + ± 32 ± 22 ± 2 31 + ± 2 32 + ± 2 33 (b) The MATLAB function should use the following algorithm. for i =1: n ± ii
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/21/2012 for the course MAP 3302 taught by Professor Dr.robin during the Fall '11 term at University of Florida.

Ask a homework question - tutors are online