I need to use Newton's method to solve f(x). Can any one tell me what's wrong of my code and how to improve it.
조회 수: 1(최근 30일)
David Hill 2022년 2월 9일
x=ones(size(a));%this will not work well for the initial guess
If you look at your plot, you will realize that there are lots of crossings. Your initial guess for x must be close to the crossing you want.