Hi,
i have to to use newtons method to solve for a zero solution of f(x) = x-e^-x^-2.
I get the iteration formula: x(k+1) = xk - f(xk)/(f'xk) and a first guess that x(0) = 0.5.
can anyone help me write the code for the next iterations (does it contain a for loop?)
i am am new to calculus (kind of did it 20 years ago) and still learning Matlab (actually for my other unit!)
Any help appreciated
kind regards
Beetle
i have to to use newtons method to solve for a zero solution of f(x) = x-e^-x^-2.
I get the iteration formula: x(k+1) = xk - f(xk)/(f'xk) and a first guess that x(0) = 0.5.
can anyone help me write the code for the next iterations (does it contain a for loop?)
i am am new to calculus (kind of did it 20 years ago) and still learning Matlab (actually for my other unit!)
Any help appreciated
kind regards
Beetle