Previous Up Next

6.49.6 LU decomposition (for TI compatibility): LU

The LU command finds the LU decomposition of a matrix.


Example.
Input:

LU([[3,5],[4,5]],L,U,P)

Output:

⎡
⎢
⎣
10
01
⎤
⎥
⎦
[[0,1],[1,0]]

Input:

L

Output:

⎡
⎢
⎢
⎢
⎢
⎣
10
4
3
1
⎤
⎥
⎥
⎥
⎥
⎦

Input:

U

Output:

⎡
⎢
⎢
⎢
⎢
⎣
35
0
−
5
3
⎤
⎥
⎥
⎥
⎥
⎦

Input:

P

Output:

⎡
⎢
⎣
10
01
⎤
⎥
⎦

Previous Up Next