{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Hw1 - x(i,1 = x(i,1 A(i,j*x(j,1 end x(i,1 = x(i,1/A(i,i end...

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

View Full Document Right Arrow Icon
function x = forwardsubstitute(A,b) n = length(b); for i = 1:n x(i,1) = b(i); for j = 1:i-1
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x(i,1) = x(i,1) - A(i,j)*x(j,1); end x(i,1) = x(i,1)/A(i,i); end return;...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online