Help with Newton's Method in Matlab
Hi, I really need some help setting up a matlab program to solve this problem.
Using MATLAB, calculate and plot the real root of function : f(x) = xtanh(x) + C = 0, for C=1.5, 2.5, 3.5
I understand the basics of the Newton Method, but keep getting errors when I run this code, and don't have enough of an understanding of whats going on to correct it. This is the code I have so far:
newx= x - (f(x)/fder(x));
If someone could give me any tips or help I would really appreciate it. Thanks in advance for your help.