bugGNU Octave - Bugs: bug #43219, fminbnd returns wrong result, if...

 
 

bug #43219: fminbnd returns wrong result, if second interval bound is smaller than first

Submitter:  Jonathan Hahn <helo>
Submitted:  Sat 13 Sep 2014 11:00:12 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 30 Dec 2014 04:44:50 PM UTC, comment #2: 

I adjusted your patch slightly to use core Octave coding conventions for spacings and committed it to the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/0f79fa9b3a8c).  Thanks for the fix.

Rik <rik5>
Group administrator
Fri 19 Sep 2014 04:26:50 PM UTC, comment #1: 

I submitted a patch that should solve the problem by checking the input arguments of fminbnd.

(file #32137)

Massimiliano Fasi <mfasi>
Sat 13 Sep 2014 11:00:12 PM UTC, original submission:  


[x,fval,info,output] = fminbnd(@(x)sin(x),0,-pi)


I think the result of this call is wrong, and as far
as I remember Matlab is throwing an error message for bounds
like that.

Jonathan Hahn <helo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #32137:  bugfix_43219.patch added by mfasi (1KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by mfasi (Updated the item)
  • -email is unavailable- added by helo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-30 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2014-12-29 rik5 StatusNone Patch Submitted
    2014-09-19 mfasi Attached File- Added bugfix_43219.patch, #32137

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code