Professional Documents
Culture Documents
Interpolacion Cuadratica 17
Interpolacion Cuadratica 17
%Entrdas: mx, my
%Salidas: funcion evaluacion--> otra funcion
syms x;
A = zeros(3,2);
for i=1:3
A(i,1) = mx(i,1);
A(i,2) = my(i,1);
end
%Formulas General de IC
fx = b0+b1*(x-A(1,1))+b2*(x-A(1,1))*(x-A(2,1));
fx = expand(fx);
fx = vpa(fx,4);
r = char(fx);