|
|
|
Robert M. Corless
Department of Applied Mathematics
University of Western Ontario
London, Canada
|
|
Copyright 2001 by Robert M. Corless
All rights reserved
|
|
Useful one-word commands
|
|
Использование монокоманд
|
|
|
|
Solving equations
|
|
Решение уравнений
|
|
|
|
|
Linear equations
|
|
Линейные уравнения
|
|
>
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]]); |
|
>
P,L,U,R,det :=
LUDecomposition(Yee,output=['P','L','U1','R','determinant']): |
>
Norm(Yee-P.L.U.R ,infinity); |
|
>
det; |
|
>
P; |
|
>
L; |
|
>
U; |
|
>
L^(-1); |
|
>
U^(-1); |
|
>
P^(-1); |
|
>
Norm(U^(-1).L^(-1).P^(-1).Yee-IdentityMatrix(8,8),infinity); |
|
|
|
|
|
|
|
|
С официального разрешения
© 2002 Waterloo Maple, Inc
|
|
|
|
|
|
|
| |
|