Professional Documents
Culture Documents
Discusión
am1 = 881, 2, 3, 4<, 83.2, 12, − 5, 7.1<, 83.5, 12.6, − 4.1, 8.3<<
MatrixForm@RowReduce@am1DD
1 0. 8.21429 6.03571
0 1 − 2.60714 − 1.01786
0 0 0 0
am2 = 881, 2, 3, 4<, 83.2, 12, − 5, 7.1<, 83.5, 12.6, − 4.1, 8.2<<
MatrixForm@RowReduce@am2DD
1 0. 8.21429 0.
0 1 − 2.60714 0.
0 0 0 1
MatrixForm@RowReduce@am3DD
1 0. 0. 4.6
0 1 0. − 17.1
0 0 1 13.5
Resolución directa
LinearSolve@a, bD
LinearSolve@a, bD
Solve::svars : Equations may not give solutions for all "solve" variables. à
88x → 6.03571 − 8.21429 z, y → − 1.01786 + 2.60714 z<<
Factorización LU
a = 881, − 3, 4, − 1<, 8− 1, − 2, 2, 0<, 83, 2, − 3, 5<, 81, 2, 3, − 1<<;
LUDecomposition@aD
11 9 29 25 136
::81, − 3, 4, − 1<, 8− 1, − 5, 6, − 1<, :3, − ,− , >, :1, − 1, − , >>, 81, 2, 3, 4<, 1>
5 5 5 9 9
MatrixForm@LUDecomposition@aD@@1DDD
1 −3 4 −1
−1 −5 6 −1
11 9 29
3 − −
5 5 5
25 136
1 −1 −
9 9
LUDecomposition@aD@@2DD
81, 2, 3, 4<
LUDecomposition@aD@@3DD
b = 83, − 1, 2, 4<
83, − 1, 2, 4<
LUBackSubstitution@LUDecomposition@aD, bD
25 21 37 19
: , , ,− >
17 68 68 68
a.% b
True
Jacobi
a = 882, − 1, 0<, 81, 6, − 2<, 84, 3, − 8<<;
b = 82, − 4, 5<;
x = H2 + yL ê 2;
y = H− 4 − x + 2 zL ê 6;
z = H5 − 4 x − 3 yL ê H− 8L;
1 1 1 3
:80, 0.5, 0<, :− , 0, >, : , , 0>>
6 3 2 8
civil 3.nb 3
2 5
:1, − ,− >
3 8
x0 = 80, 0, 0<
80, 0, 0<
x0 = dc.x0 + dti
LinearSolve@a, bD
1 3
: , − 1, − >
2 4
Gauss-Seidel
a = 882, − 1, 0<, 81, 6, − 2<, 84, 3, − 8<<;
b = 82, − 4, 5<;
x = H2 + yL ê 2;
y = H− 4 − x + 2 zL ê 6;
z = H5 − 4 x − 3 yL ê H− 8L;
1 1 1 3
:80, 0.5, 0<, :− , 0, >, : , , 0>>
6 3 2 8
2 5
:1, − ,− >
3 8
x0 = 80, 0, 0<
80, 0, 0<
0.500009
− 0.999993
− 0.749993
LinearSolve@a, bD
1 3
: , − 1, − >
2 4