Sponsored links: Algebra eBooks
 

Related

get_lu_factors-matrix

m: matrix([e1,2*e2,e3...

get_lu_factors(lu_fac...

Calculate

get_lu_factors-matrix-rat

m: matrix([2*e1,e2,e3...

rat(get_lu_factors(lu...

Calculate

get_lu_factors-matrix

m: matrix([e1,e2],[1,...

get_lu_factors(lu_fac...

Calculate

get_lu_factors-matrix

m: matrix([e1,e2],[1,...

get_lu_factors(lu_fac...

Calculate

get_lu_factors-matrix

m: matrix([e1,e2],[1,...

get_lu_factors(lu_fac...

Calculate

get_lu_factors-matrix-rat

m1: matrix([e1,2*e2,e...

m2: matrix([2*e1,e2,e...

rat(get_lu_factors(lu...

Calculate

get_lu_factors-matrix-rat

m: matrix([e1,2*e2,e3...

rat(get_lu_factors(lu...

Calculate

get_lu_factors-matrix-rat

m: matrix([e1,2*e2,e3...

rat(get_lu_factors(lu...

Calculate

get_lu_factors-matrix-rat

m: matrix([e1,2*e2,e3...

rat(get_lu_factors(lu...

Calculate

get_lu_factors

? get_lu_factors;

Calculate

get_lu_factors

Run Example
(%i1)A:matrix([2,2,1],[1,1,2],[2,-1,1]);
                                 [ 2   2   1 ]
                                 [           ]
(%o1)                            [ 1   1   2 ]
                                 [           ]
                                 [ 2  - 1  1 ]
(%i2) lu_factor(A);
                     [ 2   2   1 ]
                     [           ]
                     [ 1       3 ]
(%o2)               [[ -   0   - ], [1, 3, 2], generalring]
                     [ 2       2 ]
                     [           ]
                     [ 1  - 3  0 ]
(%i3) get_lu_factors(lu_factor(A));
                                 [ 1  0  0 ]  [ 2   2   1 ]
                    [ 1  0  0 ]  [         ]  [           ]
                    [         ]  [ 1  1  0 ]  [ 0  - 3  0 ]
(%o3)              [[ 0  0  1 ], [         ], [           ]]
                    [         ]  [ 1       ]  [         3 ]
                    [ 0  1  0 ]  [ -  0  1 ]  [ 0   0   - ]
                                 [ 2       ]  [         2 ]
(%i4) 
Run Example
A:matrix([2,2,1],[2,-1,1],[1,1,2]);
                                 [ 2   2   1 ]
                                 [           ]
(%o1)                            [ 2  - 1  1 ]
                                 [           ]
                                 [ 1   1   2 ]
(%i2) lu_factor(A);
                     [ 2   2   1 ]
                     [           ]
                     [ 1  - 3  0 ]
(%o2)               [[           ], [1, 2, 3], generalring]
                     [ 1       3 ]
                     [ -   0   - ]
                     [ 2       2 ]
(%i3) get_lu_factors(lu_factor(A));
                                 [ 1  0  0 ]  [ 2   2   1 ]
                    [ 1  0  0 ]  [         ]  [           ]
                    [         ]  [ 1  1  0 ]  [ 0  - 3  0 ]
(%o3)              [[ 0  1  0 ], [         ], [           ]]
                    [         ]  [ 1       ]  [         3 ]
                    [ 0  0  1 ]  [ -  0  1 ]  [ 0   0   - ]
                                 [ 2       ]  [         2 ]
(%i4) 
Run Example
load(linearalgebra);
(%o1)   /usr/share/maxima/5.21.1/share/linearalgebra/linearalgebra.mac
(%i2) A:matrix([6,2,1],[3,7,4],[1,1,9]);
                                  [ 6  2  1 ]
                                  [         ]
(%o2)                             [ 3  7  4 ]
                                  [         ]
                                  [ 1  1  9 ]
(%i3) 'B=B:lu_factor(A);
                       [ 6  2  1  ]
                       [          ]
                       [ 1     7  ]
                       [ -  6  -  ]
(%o3)             B = [[ 2     2  ], [1, 2, 3], generalring]
                       [          ]
                       [ 1  1  76 ]
                       [ -  -  -- ]
                       [ 6  9  9  ]
(%i4) get_lu_factors(B);
                                 [ 1  0  0 ]  [ 6  2  1  ]
                                 [         ]  [          ]
                    [ 1  0  0 ]  [ 1       ]  [       7  ]
                    [         ]  [ -  1  0 ]  [ 0  6  -  ]
(%o4)              [[ 0  1  0 ], [ 2       ], [       2  ]]
                    [         ]  [         ]  [          ]
                    [ 0  0  1 ]  [ 1  1    ]  [       76 ]
                                 [ -  -  1 ]  [ 0  0  -- ]
                                 [ 6  9    ]  [       9  ]
(%i5) 

Related Help

Help for Get_lu_factors