Skip to main content
1-Visitor
March 15, 2011
Question

LU Decomposition Method, Really Need Help ASAP

  • March 15, 2011
  • 2 replies
  • 4812 views

Really need help with these 2 problems:

Find the solution to Problems using the LU Decomposition method:

1.

X1 + X2 = 3

4X1 - 2X2 = 2

2. Find the set of equations for:

X1 + 2X2 - X3 = 3.1

-3X1 + X2 +X3 = 1.4

-X1 - X2 + 4X3 = 7.3

Thanks Guys!

2 replies

1-Visitor
March 15, 2011

Simply create you matrix M and apply the lu(M) function.

The manual gives details of the augmented matrix it returns, that is, it has the permutation P, L and U matrixes side by side in one big rectangular matrix.

The permutation matrix simply converts the original matrix M into an easier to solve (by the computer) matrix, for which the L and U are then provided.

In general, Mathcad is implicit (just use lu() ), rather than explicit (we don't write matlab code!)

It is possible to write a long(ish) programme function to do the pseudo code that may have been given in class, but usually we don't bother, given we have the function already 😉

Philip

20-Turquoise
December 11, 2011

Maybe this is only a similar one.

Example 2.PNG

20-Turquoise
December 30, 2011

A bit of editing the above.