Vous êtes sur la page 1sur 16

x= dinero invertido en resfrescos sin impuestos Sistema de Ecuac

y= dinero invertido en cervezas sin impuestos x+y+z=500


z= dinero invertido en vino sin impuestos 60+z=x+y
0.06x+0.12y+0.30z
Sistema de Ecuaciones Sistema de Ecuaciones
x+y+z=500 x+y+z=500
60+z=x+y x+y-z=60
0.06x+0.12y+0.30z=92.4 6x+12y+30z=9240
Sistema de Ecuaciones
x+y+z=500
x+y-z=60
6x+12y+30z=9240

1 1 1 x 500
1 1 -1 y 60 ----->
6 12 30 z 9240 ----->

1 1 1 x 500
0 0 -2 y -440
0 6 24 z 6240

1 1 1 x 500
0 6 24 z 6240
0 0 -2 y -440
Sistema de Ecuaciones
x+y+z=500
6x+12y+30z=9240
x+y-z=60

1
6

x 120
y 160
z 220
Sistema de Ecuaciones 1 1 1
x+y+z=500 6 12 30
6x+12y+30z=9240 1 1 -1
x+y-z=60

1 1 1
0 6 24
0 0 -2

1 0 -3
0 1 4
0 0 -2

1 0 0
0 1 0
0 0 1
x 500
y 9240
z 60

x 500
y 6240
z -440

x -540
y 1040
z -440

x 120
y 160
z 220
A
Sistema de Ecuaciones 1 1 1
x+y+z=500 6 12 30
6x+12y+30z=9240 1 1 -1
x+y-z=60

1 1 1
6 12 30 -----> 6 U=
1 1 -1 -----> 1

1 1 1
0 6 24
0 0 -2 -----> 0

1 1 1
0 6 24
0 0 -2
B
500
9240
60

1 1 1 1 0 0
0 6 24 L= 6 1 0
0 0 -2 1 0 1

LxD=B

L D B
1 0 0 d1 500 d1 500
6 1 0 d2 9240 d2 6240
1 0 1 d3 60 d3 -440

UxX=D

U X B
1 1 1 x 500 x 120
0 6 24 y 6240 y 160
0 0 -2 z -440 z 220
A
Sistema de Ecuaciones 1 1 1
x+y+z=500 6 12 30
6x+12y+30z=9240 1 1 -1
x+y-z=60

1 1 1
6 12 30 -----> 6 U=
1 1 -1 -----> 1

1 1 1
0 6 24
0 0 -2 -----> 0

1 1 1
0 6 24
0 0 -2
B
500
9240
60

1 1 1 1 0 0
0 6 24 L= 6 1 0
0 0 -2 1 0 1

LxD=B

L D B
1 0 0 d1 1 d1 1
6 1 0 d2 0 d2 -6
1 0 1 d3 0 d3 -1

UxX=D
primera columna
U X B
1 1 1 x1 1 x1 3.5
0 6 24 x2 -6 x2 -3
0 0 -2 x3 -1 x3 0.5

valores reales de la
matriz inversa ecuacion usando la
inversa
3.5 -0.1666667 -1.5 x 500 x
-3 0.16666667 2 y 9240 y
0.5 0 -0.5 z 60 z
1 1 1 1
U= 0 6 24 L= 6
0 0 -2 1

LxD=B

L D B
1 0 0 d1 0
6 1 0 d2 1
1 0 1 d3 0

UxX=D

U X B
1 1 1 x1 0
0 6 24 x2 1
0 0 -2 x3 0

valores reales de la
ecuacion usando la
inversa
120
160
220
0 0 1 1 1
1 0 U= 0 6 24
0 1 0 0 -2

LxD=B

L D
d1 0 1 0 0 d1
d2 1 6 1 0 d2
d3 0 1 0 1 d3

UxX=D
segunda columna
U X
x1 -0.166667 1 1 1 x1
x2 0.166667 0 6 24 x2
x3 0 0 0 -2 x3
1 0 0
L= 6 1 0
1 0 1

B
0 d1 0
0 d2 0
1 d3 1

tercera columna
B
0 x1 -1.5
0 x2 2
1 x3 -0.5
A
Sistema de Ecuaciones 1
x+y+z=500 6
6x+12y+30z=9240 1
x+y-z=60

despejando cada una de las variables

Sistema de Ecuaciones
x=500-y-z
y=9240-6x-30z / 12
z=-60+x+y

x(0) x(1) x(2)


Iteracion 1 Iteracion 2 Iteracion 3
x 0 500.000000 -980.000000 3820.000000
y 0 520.000000 -1140.000000 4310.000000
z 0 960.000000 -2180.000000 8070.000000
Error 3847.8045688 12562.046012
A B
1 1 500
12 30 9240
1 -1 60

denominador
1
12
1

x(3) x(4) x(5) x(6) x(7)


Iteracion 4 Iteracion 5 Iteracion 6 Iteracion 7 Iteracion 8
-11880.000000 39370.000000 -128005.000000 ### ###
-13465.000000 44597.500000 -144996.250000 ### ###
-25405.000000 83907.500000 -273061.250000 ### ###
41024.581046 133966.559493 437477.8498857 1428611.023185 4665222.1826303
x(8) x(9) x(10)
Iteracion 9 Iteracion 10 Iteracion 11
### ### 47583616.093750
### ### 53901893.398438
### ### ###
15234583.01453 49749512.9929001 162460240.018576

Vous aimerez peut-être aussi