TRABAJO DE ALGEBRA
Enviado por dennis cevallos • 3 de Julio de 2020 • Tarea • 9.033 Palabras (37 Páginas) • 117 Visitas
TRABAJO DE ALGEBRA
Dennis Cevallos
1.
A=[2 7 5;0 9 8;7 4 0]
A =
2 7 5
0 9 8
7 4 0
>> B=1/13*(A)
B =
0.15385 0.53846 0.38462
0.00000 0.69231 0.61538
0.53846 0.30769 0.00000
>> B=[B eye(3)]
B =
0.15385 0.53846 0.38462 1.00000 0.00000 0.00000
0.00000 0.69231 0.61538 0.00000 1.00000 0.00000
0.53846 0.30769 0.00000 0.00000 0.00000 1.00000
>> B(1,:)=B(1,:)*6.5
B =
1.00000 3.50000 2.50000 6.50000 0.00000 0.00000
0.00000 0.69231 0.61538 0.00000 1.00000 0.00000
0.53846 0.30769 0.00000 0.00000 0.00000 1.00000
>> B(3,:)=B(3,:)+(-0.53846)*B(1,:)
B =
1.00000 3.50000 2.50000 6.50000 0.00000 0.00000
0.00000 0.69231 0.61538 0.00000 1.00000 0.00000
0.00000 -1.57692 -1.34615 -3.49999 0.00000 1.00000
>> B(2,:)=B(2,:)*13/9
B =
1.00000 3.50000 2.50000 6.50000 0.00000 0.00000
0.00000 1.00000 0.88889 0.00000 1.44444 0.00000
0.00000 -1.57692 -1.34615 -3.49999 0.00000 1.00000
>> B(3,:)=B(3,:)+(1.57692)*B(2,:)
B =
1.00000 3.50000 2.50000 6.50000 0.00000 0.00000
0.00000 1.00000 0.88889 0.00000 1.44444 0.00000
0.00000 0.00000 0.05556 -3.49999 2.27777 1.00000
>> B(1,:)=B(1,:)-(3.5)*B(2,:)
B =
1.00000 0.00000 -0.61111 6.50000 -5.05556 0.00000
0.00000 1.00000 0.88889 0.00000 1.44444 0.00000
0.00000 0.00000 0.05556 -3.49999 2.27777 1.00000
>> B(3,:)=B(3,:)/0.05556
B =
1.00000 0.00000 -0.61111 6.50000 -5.05556 0.00000
0.00000 1.00000 0.88889 0.00000 1.44444 0.00000
0.00003 0.00004 0.99994 -62.99478 40.99664 17.99856
>> B(1,:)=B(1,:)+(0.61111)*B(3,:)
B =
1.00002 0.00003 -0.00004 -31.99674 19.99790 10.99910
0.00000 1.00000 0.88889 0.00000 1.44444 0.00000
0.00003 0.00004 0.99994 -62.99478 40.99664 17.99856
>> B(2,:)=B(2,:)-(0.88889)*B(3,:)
B =
1.000016922 0.000025383 -0.000037775 -31.996740261 19.997901279 10.999100072
-0.000024613 0.999963080 0.000052218 55.995430365 -34.997059124 -15.998740101
0.000027690 0.000041535 0.999940005 -62.994780418 40.996640269 17.998560115
>> A
A =
2 7 5
0 9 8
7 4 0
>> A=1/13*(A)
A =
0.15385 0.53846 0.38462
0.00000 0.69231 0.61538
0.53846 0.30769 0.00000
>> A=inv (A)
A =
-32.000 20.000 11.000
56.000 -35.000 -16.000
-63.000 41.000 18.000
2.
>> A=[2 -4 5;7 -14 0;0 0 8]
A =
2 -4 5
7 -14 0
0 0 8
>> B=inv(A)
warning: matrix singular to machine precision
B =
Inf Inf Inf
Inf Inf Inf
Inf Inf Inf
3.
A=[1 4 -2 1;5 1 9 7;7 4 10 4;0 7 -7 7]
A =
1 4 -2 1
5 1 9 7
7 4 10 4
0 7 -7 7
>> B=[A eye(4)]
B =
1 4 -2 1 1 0 0 0
5 1 9 7 0 1 0 0
7 4 10 4 0 0 1 0
0 7 -7 7 0 0 0 1
>> B(2,:)=B(2,:)-(5)*B(1,:)
B =
1 4 -2 1 1 0 0 0
0 -19 19 2 -5 1 0 0
7 4 10 4 0 0 1 0
0 7 -7 7 0 0 0 1
>> B(3,:)=B(3,:)-(7)*B(1,:)
B =
1 4 -2 1 1 0 0 0
0 -19 19 2 -5 1 0 0
0 -24 24 -3 -7 0 1 0
0 7 -7 7 0 0 0 1
>> B(2,:)=B(2,:)/-19
B =
1.00000 4.00000 -2.00000 1.00000 1.00000 0.00000 0.00000 0.00000
-0.00000 1.00000 -1.00000 -0.10526 0.26316 -0.05263 -0.00000 -0.00000
0.00000 -24.00000 24.00000 -3.00000 -7.00000 0.00000 1.00000 0.00000
0.00000 7.00000 -7.00000 7.00000 0.00000 0.00000 0.00000 1.00000
...