[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46808] Convergence problems????
From: |
Kai Torben Ohlhus |
Subject: |
[Octave-bug-tracker] [bug #46808] Convergence problems???? |
Date: |
Mon, 04 Jan 2016 15:23:22 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 |
Update of bug #46808 (project octave):
Severity: 3 - Normal => 2 - Minor
Item Group: None => Incorrect Result
Status: None => Invalid
Assigned to: None => siko1056
Open/Closed: Open => Closed
Operating System: Microsoft Windows => Any
_______________________________________________________
Follow-up Comment #1:
According to the documentation
https://www.gnu.org/software/octave/doc/interpreter/Solvers.html#XREFfzero
"x0 should be a two-element vector specifying two points which bracket a
zero."
"If x0 is a single scalar then several nearby and distant values are probed in
an attempt to obtain a valid bracketing. If this is not successful, the
function fails."
For you the second quote failed. Maybe MATLAB implements a smarter guessing
bracketing strategy. If you try the first quote to your example:
fzero(f, [pi/2, 3*pi/2])
ans = 3.50262524454451
you get the very same result.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46808>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/