Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Facultad de Ingeniera
Estudiantes:
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
3x + 2y = -2
X+y+u=3
3x - 2y - u = -7
4x + 5y + 6z + 3u = 11
SOLUCIN:
x y u z
3 2 0 0 -2 1 1 1 0 -3 () +
1 1 1 0 -3 3 2 0 0 -2 () +
3 -2 -1 0 -7 3 -2 -1 0 -7
() +
4 5 3 6 11 4 5 3 6 11
1 1 1 0 -3 () + 1 1 1 0 -3
( ) +
0 -1 -3 0 7 () +
0 -1 -3 0 7
0 -5 -1 0 2 0 0 11 0 -33
0 1 -1 6 23 0 0 -4 6 23
x y u z 18
1 1 1 0 -3 = =3
6
0 -1 -3 0 7
0 0 11 0 -33 33
= = 3
0 0 11 6 18 11
= 3(3) 7 = 2
= 3 2 + 3 = 2
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Solucin:
25 3 8 25 3 8 25 3 8
| 26 | 26 | 26
104 23 37 104 23 37 104 23 37
17 8 10 98 22 166 98 22 166
| 42 0 | 0 |
52 23 37 575 925 25 575 925 25
45 12 19 33 23 116 298 589
| 70 ] 0 |
[ 104 23 37 [ 115 185 5 ] [ 0 0 1813 | 49 ]
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Resolucin:
:
:
250( ) = 15 (1)
260( ) = + 80 (2)
1. Reordenando Trminos
250( ) = 150
260( ) = 80
1 1250 3
1250 23 ]
1
[ 5]
[1
2 (25) 2 ( ) + 1
0 1 236 250
25 0 1 5900
1 0 23 x = 23 das
[ ]
0 1 5900 y = 5900 jarrones encargados
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Programa MATLAB
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
4. Calcule las corrientes que fluyen en cada ramal del circuito. Resolver
por Jacobi (4 iteraciones) y un programa que encuentre la solucin con
una tolerancia de 0.001
1 ecuacin:
-10V+25(I1) +50(I1)-25(I2)-50(I3) =0
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
2 ecuacin:
1(I2)+25(I2)+30(I2)-1(I3)-25(I1)=0
3 ecuacin:
50(I3)+1(I3)+55(I3)-1(I2)-50(I1)=0
10 + 252 + 503
I1 =
76
252 + 3
I2 =
56
501 + 2
I3 =
106
n Iteracin I1 I2 I3 Error
0 0 0 0 ------
1 0.1316 0 0 0.1316
2 0.1316 0.0588 0.0621 0.0855
3 0.1917 0.0599 0.0626 0.0601
4 0.1925 0.0866 0.0909 0.0389
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
PROGRAMA EN MATLAB
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
SOLUCIN:
Corte Coser Planchar
()
()
()
=
=
=
=
=
=
n x y z error
0 0 0 0 -
1 9.6 1.6 8 12.5984
2 6.24 2.5067 9.33 3.7257
3 5.297 3.4964 8.9723 1.413
4 4.8105 3.2976 9.4954 0.7415
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Solucin:
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
%matriz ejemplo
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Matriz Ampliada
5 2 3
-3 3 15
Eliminacin Gauss-Jordan
--------------------
5.0000 2.0000 3.0000
0 4.2000 16.8000
--------------------
5.0000 0 -5.0000
0 4.2000 16.8000
--------------------
5.0000 0 -5.0000
0 4.2000 16.8000
***********************************************************
Vector Solucin
1 0 -1
0 1 4
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
( + 1) + 2 = 18
( 1)2 + ( 6)2 = 25
Resolucin
( + 1) + 2 = 18 . . ()
( 1)2 + ( 6)2 = 25 . ()
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
2 18
= (1)
+1
2 2 + 2 + 12
= . . (2)
12
2 18
1 = 1 (0, 0 ) =
+1
2 + 2 2+12
1 = 2 (0, 0 ) = 12
1 2 18 2 1
= =
( + 1)2 6
1 2 2
= =
( + 1) 6
| 1 | + | 2 | < 1
| 1 | + | 2 | < 1
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
n x y error
0 1,5 10,9 10.9461
1 1,52 10,8400333 0,1239
2 1,46034392 10,7313936 1,0116
3 1,40744027 9,72113263 2,3190
4 0,59908662 7,54760194 3,8562
5 -1,81653457 4,54180177 12,9033
Desplazamiento sucesivo
Para = . = .
n x y error
0 1,5 10,9 10.9491
1 1,52 10,8400333 0,1282
2 1,46034392 10,7265199 0,2157
3 1,40347853 10,5184187 0,4014
4 1,26351762 10,1422145 0,7012
5 1,00923846 9,48871671 1,7752
1 (, ) = 2 + 2 18
2 (, ) = ( 1)2 + ( 6)2 25
2 (, ) = 2 2 + 2 12 + 12
1 2
= 2 1 = 2 12
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
1 (, ) 2 (1, )
1 = 0 1 = 0
1 2
| |
(0 ,0 ) (1 ,0 )
Para = . = .
2
1.5125 2(1.5125) + 10.92 12(10.9) + 12 0.7273
1 = 10.9 = 10.9 = 10.9742
2(10.9) 12 9.8
2
= (1.5125 1)2 + (10.9755 10.9)2 = 11.0780
2 Iteracin (1,5125.10.9742)
2
= (1.5493 1.5125)2 + (10.9697 10.9742)2 = 0.0371
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
1 (, ) = 2 2 18
2 (, ) = ( 1)2 + ( 6)2 25
2 (, ) = 2 2 + 2 12 + 12
1 1
= 2 1 =2
2
2 = 2 12
= 2 2
2 1 2
[ ] [ 1] = [ 1]
2 2 2 12 2 2
2 1 2 ( 2 2 18)
[ ] [ 1] = [ ]
2 2 2 12 2 ( 2 2 + 2 12 + 12)
Para = =
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
3 2 1 0
[ ][ ] = [ ]
0 8 2 9
3 2 0
[ ]
0 8 9
82 = 9 31 + 22 = 9
2 = 1.125 31 + 2(1.125) = 0
1 = 0.75
1 = 0 + 1 1 = 0 + 2
1 = 1 + 0.75 = 1.75 1 = 10 + 1.125 = 11.125
2
= (1.75 1)2 + (11.125 10)2 = 1.3521
4.5 2 0.5625
[ ] [ 1] = [ ]
1.5 10.25 2 1.8281
1 = 0.1918 2 = 1.5582
2 = 0.1503 2 = 10.9747
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
4.116 2 0.0368
[ ] [ 1] = [ ]
1.1164 9.9494 2 0.0592
1 = 0.0112 3 = 1.547
2 = 0.0047 3 = 10.97
El error satisface a la = 0.
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
2 1 2 1 1 1
J= 22 21 22 2 2 = 2
32 31 32 3 3 3
1 Iteracin:
2 Iteracin:
3 Iteracin:
4 Iteracin:
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
11. Explique con ejemplos, dada una matriz de tercer orden como
determinar si es positiva definida o negativa definida:
DEFINIDAS
A1<0,A2>0,A3<0,A4>0,...
DEFINIDA NEGATIVA An>0 si n es par
An<0 si n es impar
Positiva definida:
1 = |60|
60 30 20 1
= |30 20 15| 60 30
20 15 12 =| |
30 20
Hallando determinantes:
|1 | = 60 > 0
Negativa definida:
1 0 2 1 = |1|
= | 0 3 0 |
1 0 6 1 0
1 = | |
0 3
Hallando determinantes:
|1 | = 1 < 0
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
12. Haga una Iteracin del mtodo de Newton Raphson para hallar el
punto extremo de :
( ) = 8 2 12 2 2 + 2 2 2 2 + + 28
8 2 + 2 2 1
= =[ 12 4 + 2 + ] 0 = [1]
4 2 + + 28 1
[ ]
2 2 2
H=[ 2 4 1]
6 2 1 4
(1,1,1) = [13]
23
52 1 1
H1 = 1 23 1
3
1 1 2
3]
[ 3
52 1 1 20
1 6
1 = [1] 1 23 1 [13] = [ 283 ]
3
1 1 2 23 44
[ 1 3 3] 3
(1,1) = 2 < 0
H es definida Negativa
(2,2) = 4>0 Promete Convergencia a un
Mximo Local
(3,3) = 6 < 0
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
2 +
, 0 = 40
, 0 = 15
, 0 = 0
, 0 = 10
SOLUCIN:
+ +
= =
= =
= + + = +
= =
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
( )
= 2.6
(2 )(1 )
x (x-y) = 2.6 [(2-x-y) (1-x)]
x (x-y)=2.6 [2-2x-x+x2-y+xy]
(2)2
= 3.1
(2 )( )
4y2 = 3.1 [(2-x-y) (x-y)]
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
GRAFICAS
Criterio de convergencia
1 3.2+3.6 2 6.26.2
= = =1
7.8 6.2
1 3.62.6 2 1.8
= =
7.8 6.2
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
| 1| + | 2 | < 1 | 1| + | 2 | < 1
n Iteracin X Y Error
0 0.8 0.45 0.918
1 0.814 0.453 0.014
2 0.822 0.454 0.0081
1 1
= 3.2 + 3.6 7.8 = 3.6 2.6
Jacobiano
1 1
| 3.2 + 3.6 7.8 3.6 2.6
= || | = | |
2 2 6.2 6.2 6.2 1.8
Reemplazamos con Xo= 0.8 y Yo=0.45:
3.62 0.28
= | |
1.24 7.01
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Hallamos Nf:
1(0 , ) 0.11
= | |=| |
2 (0 , ) 0.62
Ahora:
.
3.62 0.28 0.11 F1( )+F2
| | .
1.24 7.01 0.02
1
= 3.2 + 3.6 7.8
2
= 6.2 1.8
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
1 = 0.8303
1 = 0.4505
(1.977103 )
2 = 0.8303 = 0.8309
3.5212
0.0356
2 = 0.4505 = 0.4556
7.0109
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Solucin:
Tenemos:
3
Por semejanza de tringulos: = 8
8
24 3 = 8
24 3
=
8
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
3
= 3
8
3 2
= (3 )
8
9 2 9 3
() = 9 +
4 64
9 27 2
() = 9 +
2 64
9 27
() = +
2 32
h f'(h)
1 15.46
1.5 10.05 0 = 2.5
2 5.30
2.5 1.21
3 -2.20
3.5 -4.97
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
CODIGO DE MATLAB:
V=
Inline function:
V(h) = 9*pi*h-9/4*pi*h^2+9/64*pi*h^3
dV =
Inline function:
dV(h) = 9*pi-9/2*pi*h+27/64*pi*h^2
d2V =
Inline function:
d2V(h) = -9/2*pi+27/32*pi*h
METODOS NUMERICOS
Universidad Nacional de Trujillo Ingeniera
Valle Jequetepeque Industrial
Iteracin N 1
================
V1 =
2.6429
Error =
0.3571
Iteracin N 2
================
V1 =
2.6666
Error =
0.0237
Iteracin N 3
================
V1 =
2.6667
Error =
1.0535e-04
La altura mxima es:
2.6667
Por lo tanto reemplazando en nuestra ecuacin V(h)
El volumen Mximo es:
33.510322 m^2
METODOS NUMERICOS