I am trying to resolve a Newton-Raphson method by a complex equation.
But I am with the following error:
Attempted to access f(2.07279); index must be a positive integer or logical.
Error in teste04 (line 17) x = (x - (f(x)/df(x)));
I wrote the code:
c = 0.99;
while abs(x_old-x) > tolerance
x_old = x;
x = (x - (f(x)/df(x)));