




























































































Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!





























































































Con los nodos (1,4,9)
f(x)=1+sqrt(x) fprima(x)=f.diff(x) fsegunda(x)=fprima.diff(x)
fprima(1);fprima(4);fprima(9) 1/ 1/ 1/ fsegunda(1);fsegunda(4);fsegunda(9) -1/ -1/ -1/ p(x)=2+1/2(x-1)-1/18(x-1)^2+7/1440(x-1)^2(x-4)
p(x).expand() 7/1440x^3 - 61/720x^2 + 943/1440*x + 57/ N(p(2))
N(p(2)-f(2))
plot(p(x),(x,0,9))+plot(f(x),(x,0,9),color='red')
#error global
difdiv=((((((1+sqrt(2)-4)/(-7))-(1/5))/(2-4))+(1/60))/(2- 1))+19/720;N(difdiv)
pis(t)=((t-1)(t-1)(t-4)*(t-9)).abs()
plot(pis(t),(t,1,9))
#error local
N(error(2))
#error real
plot((f(x)-p(x)).abs(),(x,1,9))
px=vector([2]); py=vector([N(error(2))]); puntos=zip(px,py); errorlocal=line(puntos, marker='o', linestyle="",color='red')
N(f(2)-p(2)).abs()
#errores
plot(error(t),(t,1,9))+errorlocal+plot((f(x)-p(x)).abs(), (x,1,9),color='green')
#error global
error(t)=(1/1260(t-1)^2(t-4)(t-9)(t-16)).abs()
plot(error(t),(t,1,16))
#error local
N(error(2))
px=vector([2]); py=vector([N(error(2))]); puntos=zip(px,py); errorlocal=line(puntos, marker='o', linestyle="",color='red')
#error real
plot((f(x)-p2(x)).abs(),(x,1,16))
Con los nodos (0,1/4,4/9)
p(x)=1+2x-4x(x-1/4)+360/49x*(x-1/4)^
p(x).expand() 360/49x^3 - 376/49x^2 + 339/98*x + 1 p(2) 36 plot(p(x),(x,0,1))+plot(f(x),(x,0,1),color='red')
N(f(2)-p(2))
-33.
plot(f(x)-p(x),(x,0,2))
Con los nodos (1,16,81)
p(x)=2+1/5(x-1)-1/200(x-1)(x-16)+9/169000(x-1)(x-16)^2-29/49432500(x- 1)(x-16)^2(x-81)
p(x).expand() -29/49432500x^4 + 3959/32955000x^3 - 11664/1373125x^2 + 31060717/98865000x + 2326351/ N(p(2))
plot(p(x),(x,0,100))+plot(f(x),(x,0,100),color='red')
N(f(2)-p(2))
plot((f(x)-p(x)),(x,1,81))
error(t)=f(1)/factorial(5)(t-1)(t-16)^2*(t-81)^
plot(error(t),(t,1,91))
N(error(2))
#regresivas
preg(x)=0+sqrt(2)(x/2)+(2-2sqrt(2))((x/2)((x/2)-1)/factorial(2))+ (sqrt(6)-6+3sqrt(2))((x/2)((x/2)-1)((x/2)-2)/factorial(3))+ (sqrt(8)-4sqrt(6)+12-4sqrt(2))((x/2)((x/2)-1)((x/2)-2) ((x/2)-3)/factorial(4))+(sqrt(12)-5sqrt(10)+10sqrt(8)-10sqrt(6)+10- sqrt(2))((x/2)((x/2)-1)((x/2)-2)((x/2)-3)((x/2)-4)/factorial(5))+ (sqrt(12)-6sqrt(10)+15sqrt(8)-20sqrt(6)+30-6sqrt(2))((x/2)((x/2)-1)* ((x/2)-2)((x/2)-3)((x/2)-4)*((x/2)-5)/factorial(6))
latex(preg(x).expand())
-\frac{1}{7680} , \sqrt{10} x^{6} - \frac{1}{2304} , \sqrt{6} x^{6} + \frac{1}{23040} , \sqrt{3} x^{6} + \frac{1}{1920} , \sqrt{2} x^{6} + \frac{1}{1536} , x^{6} + \frac{1}{384} , \sqrt{10} x^{5} + \frac{1}{96} , \sqrt{6} x^{5} - \frac{1}{1280} , \sqrt{3} x^{5} - \frac{41}{3840} , \sqrt{2} x^{5} - \frac{13}{768} , x^{5} - \frac{7}{384} , \sqrt{10} x^{4} - \frac{61}{576} , \sqrt{6} x^{4} + \frac{5}{1152} , \sqrt{3} x^{4} + \frac{7}{96} , \sqrt{2} x^{4} + \frac{77}{384} , x^{4} + \frac{5}{96} , \sqrt{10} x^{3} + \frac{9}{16} , \sqrt{6} x^{3} - \frac{1}{192} , \sqrt{3} x^{3} - \frac{23}{192} , \sqrt{2} x^{3} - \frac{251}{192} , x^{3}
plot(preg(x),(x,0,12))+plot(sqrt(x),(x,0,12),color='red')
#central regresiva
pcreg(x)=sqrt(6)+(sqrt(6)-2)(x-6)/(factorial(1)(2^1))+ (sqrt(8)-2sqrt(6)+2)(x-6)(x-4)/(factorial(2)(2^2))+(sqrt(8)-3sqrt(6)+6- sqrt(2))(x-6)(x-4)(x-8)/(factorial(3)(2^3))+ (sqrt(10)-4sqrt(8)+6sqrt(6)-8+sqrt(2))(x-6)(x-4)(x-8)(x- 2)/(factorial(4)(2^4))+(sqrt(10)-5sqrt(8)+10sqrt(6)-20+5sqrt(2))(x-6)* (x-4)(x-8)(x-2)(x-10)/(factorial(5)(2^5))+ (sqrt(12)-6sqrt(10)+15sqrt(8)-20sqrt(6)+30-6sqrt(2))(x-6)(x-4)(x-8) (x-2)(x-10)x/(factorial(6)*(2^6))
latex(pcreg(x).expand())
-\frac{1}{7680} , \sqrt{10} x^{6} - \frac{1}{2304} , \sqrt{6} x^{6} + \frac{1}{23040} , \sqrt{3} x^{6} + \frac{1}{1920} , \sqrt{2} x^{6} + \frac{1}{1536} , x^{6} + \frac{1}{240} ,