Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Thanks. Review any textbooks on LU decomposition. You will find out that the decomposition would beIDS said:Where did the values:
L=
1 0 0
2 1 0
0 -1 1
come from?
hoshang said:So, how one can get hoshang results using Mathcad?
IDS said:At the moment I'm having trouble getting their lu_decomp function to work. If anyone get's it working, please let me know.
# L = np.block([[L11, L12], [L21, L22]])
# U = np.block([[U11, U12], [U21, U22]])
L = np.zeros((n,n))
U = np.zeros((n,n))
L[0,0] = L11
L[0,1:] = L12
L[1:,0] = L21
L[1:,1:] = L22
U[0,0] = U11
U[0,1:] = U12
U[1:,0] = U21
U[1:,1:] = U22
return (L, U)