Prev: fzero
Next: command window
From: Vyjayanthi A on 17 Mar 2010 17:21 Hi, I am using fsolve to find the roots of the cubic equation. I get results for almost 3/4th of thecalculations but for the last values I get the below error. ??? Error using ==> fzero at 334 Function value at starting guess must be finite and real. How can I stop this error. Is there any function so that it can give me the same root(values) for the last calculations. Can any one please help me. Thank you
From: Matt J on 17 Mar 2010 17:55 "Vyjayanthi A" <vinzav(a)gmail.com> wrote in message <hnrfv3$nd2$1(a)fred.mathworks.com>... > Hi, > > I am using fsolve to find the roots of the cubic equation. =================== You mean the roots of a cubic polynomial? If so, consider using roots() > I get results for almost 3/4th of thecalculations but for the last values I get the below error. > ??? Error using ==> fzero at 334 > Function value at starting guess must be finite and real. > > How can I stop this error. =============== By giving a starting guess x0 where f(x0) is finite and real.
|
Pages: 1 Prev: fzero Next: command window |