Ive got a question to do which involves newtons method, which is.
X(n+1) = Xn - f(Xn)/f^'(Xn)
Basically ive got to right a matlab fucntion with inputd b,c,d where they are arbitary real numbers and X0 which is an arbitary real or complex number, which produces an estimate to this equation.
y=x^3+4*x^2+6*x+10
I have used the editor to write equations for f(x) and f^'(x)
function y=f(x)
y=x^3+4*x^2+6*x+10
function y=fdash(x)
y=3x^2+8*x+6
I just dont understand how to execute them to work out the problem, anyone good with this program?
X(n+1) = Xn - f(Xn)/f^'(Xn)
Basically ive got to right a matlab fucntion with inputd b,c,d where they are arbitary real numbers and X0 which is an arbitary real or complex number, which produces an estimate to this equation.
y=x^3+4*x^2+6*x+10
I have used the editor to write equations for f(x) and f^'(x)
function y=f(x)
y=x^3+4*x^2+6*x+10
function y=fdash(x)
y=3x^2+8*x+6
I just dont understand how to execute them to work out the problem, anyone good with this program?