nothing - g=1.5*x^2-8*x+6; %derivative of function...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%problem 6.9a %f=f(x) %g=df/dx clear clc fplot('fx',[.5,3.5]) grid on x=4.43; m=6; %number of iterations performed for i=1:m f=.5*x^3-4*x^2+6*x-2; %original function
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: g=1.5*x^2-8*x+6; %derivative of function x=x-(f/g); if (abs(f)<=0.0001), break, end %tells loop when to stop end x f...
View Full Document

Ask a homework question - tutors are online