Sponsored links: Algebra eBooks
 

Related

doscmxops

? doscmxops;

Calculate

doscmxops-false-invert-matrix

m: matrix([3,0,1],[-2...

doscmxops: false;

m_inv: invert(m);

Calculate

doscmxops

? doscmxops;

Calculate

doscmxops-false-invert-matrix

m: matrix([3,0,1],[-2...

doscmxops: false;

m_inv: invert(m);

Calculate

doscmxops

Run Example
(%i1)m: matrix([3,0,1],[-2,2,1],[1,3,5]);
                                 [  3   0  1 ]
                                 [           ]
(%o1)                            [ - 2  2  1 ]
                                 [           ]
                                 [  1   3  5 ]
(%i2)  doscmxops: false;
(%o2)                                false
(%i3) m_inv: invert(m);
                             [  7     3      2  ]
                             [  --    --   - -- ]
                             [  13    13     13 ]
                             [                  ]
                             [  11    14     5  ]
(%o3)                        [  --    --   - -- ]
                             [  13    13     13 ]
                             [                  ]
                             [   8     9    6   ]
                             [ - --  - --   --  ]
                             [   13    13   13  ]
(%i4) m*m_inv;
                             [  21           2  ]
                             [  --    0    - -- ]
                             [  13           13 ]
                             [                  ]
                             [   22   28     5  ]
(%o4)                        [ - --   --   - -- ]
                             [   13   13     13 ]
                             [                  ]
                             [   8     27   30  ]
                             [ - --  - --   --  ]
                             [   13    13   13  ]
(%i5) 
Run Example
M: matrix ([-1, -0.2, 0], [1/(2*sqrt(y0)), -1, 0], [1, -exp(-y1), -1]);
                         [    - 1       - 0.2     0  ]
                         [                           ]
                         [     1                     ]
(%o1)                    [ ----------    - 1      0  ]
                         [ 2 sqrt(y0)                ]
                         [                           ]
                         [                 - y1      ]
                         [     1       - %e      - 1 ]
(%i2) detout: true;
(%o2)                                true
(%i3) doallmxops: false;
(%o3)                                false
(%i4) doscmxops: false;
(%o4)                                false
(%i5) A = invert(M);
                 [       1             - 0.2            0       ]
                 [                                              ]
                 [       1                                      ]
                 [   ----------          1              0       ]
                 [   2 sqrt(y0)                                 ]
                 [                                              ]
                 [         - y1                                 ]
                 [       %e            - y1          0.1        ]
                 [ 1 - ----------  - %e     - 0.2  -------- + 1 ]
                 [     2 sqrt(y0)                  sqrt(y0)     ]
(%o5)        A = ------------------------------------------------
                                      0.1
                                  - -------- - 1
                                    sqrt(y0)
(%i6) B: matrix([-2*z0, -1, -1], [-1, 0, -1], [0, -2*z1, -1]);
                            [ - 2 z0   - 1    - 1 ]
                            [                     ]
(%o6)                       [  - 1      0     - 1 ]
                            [                     ]
                            [   0     - 2 z1  - 1 ]
(%i7) A.B;
                              [ - 2 z0   - 1    - 1 ]
                              [                     ]
(%o7)                     A . [  - 1      0     - 1 ]
                              [                     ]
                              [   0     - 2 z1  - 1 ]
(%i8) 
Run Example
M: matrix ([1., 0.2, 0.], [-1/(2*sqrt(y1)), 1., 0.], [-1, exp(-y2), 1]);
                          [      1         0.2    0 ]
                          [                         ]
                          [       1                 ]
(%o1)                     [ - ----------    1     0 ]
                          [   2 sqrt(y1)            ]
                          [                         ]
                          [                 - y2    ]
                          [     - 1       %e      1 ]
(%i2) detout: true;
(%o2)                                true
(%i3) doallmxops: false;
(%o3)                                false
(%i4) doscmxops: false;
(%o4)                                false
(%i5) invert(M);
               [       1             - 0.2            0       ]
               [                                              ]
               [       1                                      ]
               [   ----------          1              0       ]
               [   2 sqrt(y1)                                 ]
               [                                              ]
               [         - y2                                 ]
               [       %e            - y2          0.1        ]
               [ 1 - ----------  - %e     - 0.2  -------- + 1 ]
               [     2 sqrt(y1)                  sqrt(y1)     ]
(%o5)          ------------------------------------------------
                                   0.1
                                 -------- + 1
                                 sqrt(y1)
(%i6) 

Related Help

Help for Doscmxops