Manual Maple 2.2.5.mws

Comandos Úteis e Simples

Seção 2.2: Resolvendo Equações

Session 2.2.5: Equações lineares

>    restart;

>    with(LinearAlgebra):

>    Yee := Matrix( 8,8,
    [[e^(-1), e^(-1), e^(-1), e^(-1), e^(-1), e^(-1), e^(-1), 0],
     [1, 1, 1, 1, 1, 1, 0, 1],
     [1, 1, 1, 1, 1, 0, 1, 1],
     [1, 1, 1, 1, 0, 1, 1, 1],
     [1, 1, 1, 0, 1, 1, 1, 1],
     [1, 1, 0, 1, 1, 1, 1, 1],
     [1, 0, 1, 1, 1, 1, 1, 1],
     [0, e, e, e, e, e, e, e]]);

Yee := _rtable[14057732]

>    P,L,U,R,det := LUDecomposition(Yee,output=['P','L','U1','R','determinant']):

>    Norm(Yee-P.L.U.R ,infinity);

0

>    det;

-7

>    P;

_rtable[3107156]

>    L;

_rtable[14060816]

>    U;

_rtable[11687720]

>    L^(-1);

_rtable[14067624]

>    U^(-1);

_rtable[14070172]

>    P^(-1);

_rtable[14074672]

>    Norm(U^(-1).L^(-1).P^(-1).Yee-IdentityMatrix(8,8),infinity);

0

>