[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Problems with fzero

**From**: |
Diego Ruiz Moreno |

**Subject**: |
Problems with fzero |

**Date**: |
Thu, 31 Oct 2002 14:58:04 -0300 |

**User-agent**: |
Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 |

Hello all,
I have a BIG problem with fzero
I have a "strange" function that is y = x-1.09-2.7217*log(1+(x/2.7217));

` When I ask to fzero with a positive initial numbre, let X0= 5, the
``answer is correct, it is 3.2106, but if I give an negative initial point
``(-1) the answer is -1.7701 That is not correct, and more if I call it
``with -5 tyhe answer is -3.2701, and finally if I call it with -51the
``aswer is correct.
` Could somebody explain to me this behavior ??
Thanks.
Diego
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------

**Problems with fzero**,
*Diego Ruiz Moreno* **<=**