Está en la página 1de 1

Trabajo Derivada Centrada

Métodos Numéricos

Nombre: Castro Estupiñan Judith Zamara Fecha: 02/05/2023

Primera Forma:
clc
format long
%SEGUNDA DERIVADA CENTRADA DE ORDEN H4
x= 1;
h= 10^-5;

a= -1*f(x+2*h);
b= 16*f(x+1*h);
c= -30*f(x);
d= 16*f(x-1*h);
e= -1*f(x-2*h);
f2prima= a+b+c+d+e/(12*h^2)
function y =f(x)
y= x^4.7;
return
end
f2prima =
-8.332550018983752e+08
Segunda Forma:
clc
format long
%SEGUNDA DERIVADA CENTRADA DE ORDEN H4
x=1;
h=10^-5;
f2prima=(-1*f(x+2*h))+(16*f(x+1*h))-(30*f(x))+(16*f(x-1*h))-(1*f(x-
2*h))/(12*h^2)
function y=f(x)
y= x^4.7;
return
end
f2prima =
-8.332550018983752e+08

También podría gustarte