raps hon

5
PUNTO FIJO f ( x )=cos ( x ) +x i xf(i) Error aprox (i) 0 0.0000000 100.000 1 -1.0000000 100.000 2 -0.5403023 85.082 3 -0.8575532 36.995 4 -0.6542898 31.066 5 -0.7934804 17.542 6 -0.7013688 13.133 7 -0.7639597 8.193 8 -0.7221024 5.797 9 -0.7504178 3.773 10 -0.7314040 2.600 11 -0.7442374 1.724 12 -0.7356047 1.174 13 -0.7414251 0.785 14 -0.7375069 0.531 15 -0.7401473 0.357 16 -0.7383692 0.241 17 -0.7395672 0.162 18 -0.7387603 0.109 19 -0.7393039 0.074 20 -0.7389378 0.050 f ( X ) =sen ( x ) +e x -6 -4 -2 0 2 4 6 -6 -4 -2 0 2 4 6 8 x cos(x)+x -6 -4 -2 0 2 4 6 0 20 40 60 80 100 120 140 160 180 200 x sin(x)+(3060512324672075/1125899906842624) -x -6 -4 -2 0 2 4 6 -6 -4 -2 0 2 4 6 x x

Upload: karen-giannella-apaza

Post on 10-Nov-2015

223 views

Category:

Documents


6 download

DESCRIPTION

metodo rapshon

TRANSCRIPT

PUNTO FIJO

i xf(i) Error aprox (i)0 0.0000000 100.0001 -1.0000000 100.0002 -0.5403023 85.0823 -0.8575532 36.9954 -0.6542898 31.0665 -0.7934804 17.5426 -0.7013688 13.1337 -0.7639597 8.1938 -0.7221024 5.7979 -0.7504178 3.77310 -0.7314040 2.60011 -0.7442374 1.72412 -0.7356047 1.17413 -0.7414251 0.78514 -0.7375069 0.53115 -0.7401473 0.35716 -0.7383692 0.24117 -0.7395672 0.16218 -0.7387603 0.10919 -0.7393039 0.07420 -0.7389378 0.050

i xf(i) Error aprox (i) 0 0.0000000 100.000 1 1.0000000 100.000 2 2.2093505 54.738 3 3.1220809 29.235 4 3.1856568 1.996 5 3.1829580 0.085 6 3.1830673 0.003

i xf(i) Error aprox (i)0 0.0000000 100.0001 -1.0000000 100.0002 -1.3333333 25.0003 -1.5000000 11.1114 -1.6000000 6.2505 -1.6666667 4.0006 -1.7142857 2.7787 -1.7500000 2.0418 -1.7777778 1.5629 -1.8000000 1.23510 -1.8181818 1.00011 -1.8333333 0.82612 -1.8461538 0.69413 -1.8571429 0.59214 -1.8666667 0.51015 -1.8750000 0.444 16 -1.8823529 0.39117 -1.8888889 0.34618 -1.8947368 0.30919 -1.9000000 0.27720 -1.9047619 0.250 21 -1.9090909 0.22722 -1.9130435 0.20723 -1.9166667 0.18924 -1.9200000 0.17425 -1.9230769 0.16026 -1.9259259 0.14827 -1.9285714 0.13728 -1.9310345 0.12829 -1.9333333 0.11930 -1.9354839 0.11131 -1.9375000 0.10432 -1.9393939 0.09833 -1.9411765 0.09234 -1.9428571 0.08735 -1.9444444 0.08236 -1.9459459 0.07737 -1.9473684 0.07338 -1.9487179 0.06939 -1.9500000 0.06640 -1.9512195 0.06341 -1.9523810 0.05942 -1.9534884 0.05743 -1.9545455 0.05444 -1.9555556 0.05245 -1.9565217 0.049

i xf(i) Error aprox (i)0 0.0000000 100.0001 1.0000000 100.0002 0.4310761 131.9783 0.6584620 34.5334 0.5423190 21.4165 0.5968297 9.1336 0.5700547 4.6977 0.5829360 2.2108 0.5766745 1.0869 0.5797031 0.52210 0.5782347 0.25411 0.5789459 0.12312 0.5786013 0.06013 0.5787682 0.029

NEWTON-RAPSHON

i xf(i) Error aprox (i)

0 0.0000000 100.000 1 -1.0000000 100.000 2 -0.7503639 33.269 3 -0.7391129 1.522 4 -0.7390851 0.004

fx(i)=input('Ingrese el valor inicial: ');tol=input('Ingrese el porcentaje de error: ');f=input('Ingrese la funcin: ');i=1;syms x;f1=subs(f,x,fx(i));z=diff(f);d=subs(z,x,fx(i)); ea(1)=100; while abs(ea(i))>=tol; fx(i+1)=fx(i)-f1/d; f1=subs(f,x,fx(i+1)); d=subs(z,x,fx(i+1)); ea(i+1)=abs((fx(i+1)-fx(i))/fx(i+1)*100); i=i+1;endfprintf('i fx(i) Error aprox (i) \n');for j=1:i; fprintf('%2d \t %11.7f \t %7.3f \n',j-1,fx(j),ea(j));end