octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57141] fzero should warn when objective funct


From: Rik
Subject: [Octave-bug-tracker] [bug #57141] fzero should warn when objective function produces complex value
Date: Tue, 29 Oct 2019 17:50:24 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

URL:
  <https://savannah.gnu.org/bugs/?57141>

                 Summary: fzero should warn when objective function produces
complex value
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Tue 29 Oct 2019 02:50:23 PM PDT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Code to reproduce in Octave:


fzero (@(x) 0.5*x + 2*i*x - 5, [-20, 100])
error: fzero: not a valid initial bracketing
error: called from
    fzero at line 223 column 5


However, in Matlab, this example throws a warning that the function must be
finite and real at the endpoints.  This is a more relevant message.





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57141>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]