Вы находитесь на странице: 1из 5

Taller 3 Métodos Numéricos

Darcy Natali Gamba Mateus Cod: 202023486


David Esteban Villamil Patarroyo Cod: 201813490
Diana Karolay Gamba Ramirez Cod: 202010680

1. Use el método de Newton y el de Newton modificado para encontrar las raíces de la


Función x^3+2x^2-4x+8

a) Newton

K Xi f(xi) f´(xi) Newton Error Relativo Error Relativo %


0 1.50 9.875 8.75 0.371428571
1 0.371428571 6.841446064 -2.100408163 3.62862695 0.897639362 89.76393615
2 3.62862695 67.59724919 50.01530843 2.277095763 0.593532872 59.35328718
3 2.277095763 21.06906468 20.66387839 1.257487329 0.810829986 81.08299865
4 1.257487329 8.121031948 5.773772463 -0.149050944 9.436627735 943.6627735
5 -0.149050944 8.637324801 -4.529555225 1.757830499 1.084792558 108.4792558
6 1.757830499 12.58025423 12.30122618 0.735147553 1.391126098 139.1126098
7 0.735147553 6.537598196 0.561915983 -10.89932877 1.067448883 106.7448883
8 -10.89932877 -1005.601719 308.788788 -7.642728282 0.426104445 42.61044448
9 -7.642728282 -291.0281565 140.6629736 -5.57375342 0.371199568 37.11995681
10 -5.57375342 -80.72980884 66.90516787 -4.367123029 0.276298694 27.62986942
11 -4.367123029 -19.6767186 35.74679854 -3.816676013 0.144221572 14.42215725
12 -3.816676013 -3.196844112 24.43434331 -3.685841962 0.035496381 3.549638103
13 -3.685841962 -0.159521758 22.01292506 -3.678595231 0.001969973 0.196997252
14 -3.678595231 -0.000475276 21.88180769 -3.678573511 5.904508E-06 0.000590451
b) Newton modificado

Newton
K Xi f(xi) f´(xi) f´(x)2 f´´(x) Modificado Error Relativo %
0 1.50 9.875 8.75 76.5625 13 3.167671894  
1 3.17 47.18 38.77 1503.3551 23.00603136 -1.210238189 361.739542
2 -1.21 14.00 -4.45 19.7751 -3.261429135 -0.258855831 367.533678
3 -0.258855831 9.152091026 -4.834404301 23.3715 2.446865012 45.00292015 100.5751979
4 45.00292015 95021.25503 6251.800147 39085005.0789 274.0175209 -0.527116423 8637.567443
5 -0.527116423 10.51770893 -5.274910522 27.8247 0.837301459 2.390089653 122.0542532
6 2.390089653 23.51815387 22.69794426 515.1967 18.34053792 -3.975363065 160.1225502
7 -3.975363065 -7.316220644 27.50908223 756.7496 -19.85217839 -3.646237449 9.026444948
8 -3.646237449 0.698144664 21.3001928 453.6982 -17.87742469 -3.678136372 0.867257769
9 -3.678136372 0.009563477 21.87351603 478.4507 -18.06881823 -3.678573432 0.011881218
10 -3.678573432 1.72692E-06 21.88141375 478.7963 -18.07144059 -3.67857351 2.14545E-06
11 -3.67857351 5.50671E-14 21.88141517 478.7963 -18.07144106 -3.67857351 0.00000

2.Aplique el método de Newton Raphson a la siguiente función


f(x)=tanh(x^2-9) con X0=3.2

K Xi f(xi) f´(xi) Newton Error Relativo Error Relativo %


0 3.20 0.845455596 2.629251913 2.878442529    
1 2.878442529 -0.613533697 5.0801239 2.999213933 0.040267686 4.026768574
2 2.999213933 -0.004715749 5.998427865 3.000000097 0.000262055 0.026205469
3 3.000000097 5.83098E-07 6.000000194 3 3.23943E-08 3.23943E-06
4 3 7.10543E-15 6 3 4.44089E-16 4.44089E-14
5 3 0 6 3 0 0

Rta: Si se llega a la raíz real en la iteración 5, en la gráfica se puede observar la respectiva raíz

3. usar método de Newton modificado,


f(x) = 0.0074x4 – 0.284x3 + 3.355x2 – 12.183x+ 5 con

X0= 16.15

RTA: la raíz rea es 13.2575 y fue hallada en la iteración 9

Newton Error Relativo


2
K Xi f(xi) f´(xi) f´(x) f´´(x) Modificado Error Relativo %
0 16.15 -9.574 -1.35 1.8325 2.351438 15.61764701    
1 15.62 -8.549 -2.44 5.9779 1.756817251 14.62215486 0.068081084 6.8081084
2 14.62 -5.413 -3.69 13.6385 0.77994637 13.50282132 0.082896271 8.289627107
3 13.50282132 -0.988 -4.05 16.3880 -0.108242424 13.25710745 0.018534501 1.853450073
4 13.25710745 0.002 -4.00 16.0088 -0.273431354 13.25749127 2.8951E-05 0.002895101
5 13.25749127 0.000 -4.00 16.0096 -0.273181682 13.25749128 3.79816E-10 3.79816E-08
6 13.25749128 0.000 -4.00 16.0096 -0.273181679 13.25749128 1.60787E-15 1.60787E-13
7 13.25749128 0.000 -4.00 16.0096 -0.273181679 13.25749128 1.07191E-15 1.07191E-13
8 13.25749128 0.000 -4.00 16.0096 -0.273181679 13.25749128 2.14382E-15 2.14382E-13
9 13.25749128 0.000 -4.00 16.0096 -0.273181679 13.25749128 2.14382E-15 2.14382E-13
10 13.25749128 0.000 -4.00 16.0096 -0.273181679 13.25749128 2.14382E-15 2.14382E-13
11 13.25749128 0.000 -4.00 16.0096 -0.273181679 13.25749128 2.14382E-15 0.00000

4. usar el Newton en varias variables para resolver: con valores iniciales de x=Y=1.2

Iteracione Punto Inicial Vector F Derivadas Parciales


JACOBIANO
s x y u(x,y) V(x,y) ux uy Vx Vy
1 1.2 1.2 -0.69 6.96 -1.4 -1 3.6 7 -6.2
2 1.543548387 0.02903226 -0.11802549 -2.12944589 -2.08709677 -1 -2.94193548 8.71774194 -21.13670656
3 1.394122946 0.22287212 -0.02232796 -0.167151 -1.78824589 -1 -1.6738853 7.97061473 -15.92730436
4 1.372454585 0.23929251 -0.00046952 -0.00224853 -1.74490917 -1 -1.5484466 7.86227293 -15.26739873
5 1.37206552 0.23950188 -1.5137E-07 -5.5866E-07 -1.74413104 -1 -1.54662164 7.8603276 -15.25606301
6 1.372065406 0.23950193 -1.3101E-14 -4.1078E-14 -1.74413081 -1 -1.54662117 7.86032703 -15.25605973
7 1.372065406 0.23950193 0 0 -1.74413081 -1 -1.54662117 7.86032703 -15.25605973
8 1.372065406 0.23950193 0 0 -1.74413081 -1 -1.54662117 7.86032703 -15.25605973

5. Resolver: Use el método de Newton en varias variables para resolver el sistema de ecuaciones:
Iteracione Punto Inicial Vector F Derivadas Parciales
JACOBIANO
s x y u(x,y) V(x,y) ux uy Vx Vy
1 1 2 8 -11 -6 -4 2 4 -16
2 0.25 5.125 10.328125 10.328125 -7.5 2.25 0.5 10.25 -78
8.1314102
2.61858974
3 1.309294872 4.06570513 2.24421125 2.24421125 -5.38141026 0.13141026 6 -44.1025641
7.3172312
3.43276871
4 1.716384355 3.65861565 0.33144369 0.33144369 -4.56723129 -0.68276871 9 -31.07570066
5 1.80170985 3.57329015 0.01456088 0.01456088 -4.3965803 -0.8534197 3.6034197 7.1465803 -28.34528481
7.1383611
3.61163885
6 1.805819424 3.56918058 3.3777E-05 3.3777E-05 -4.38836115 -0.86163885 5 -28.21377844
7 1.805829001 3.569171 1.8346E-10 1.8346E-10 -4.388342 -0.861658 3.611658 7.138342 -28.21347196
8 1.805829001 3.569171 0 0 -4.388342 -0.861658 3.611658 7.138342 -28.21347196

Вам также может понравиться