cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

LU Decomposition Method, Really Need Help ASAP

JoshMyers
1-Newbie

LU Decomposition Method, Really Need Help ASAP

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!

3 REPLIES 3

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

lvl107
20-Turquoise
(To:JoshMyers)

Maybe this is only a similar one.

Example 2.PNG

lvl107
20-Turquoise
(To:lvl107)

A bit of editing the above.

Top Tags