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

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

[Octave-bug-tracker] [bug #53220] Sending strings to quadl


From: anonymous
Subject: [Octave-bug-tracker] [bug #53220] Sending strings to quadl
Date: Sat, 24 Feb 2018 15:32:51 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?53220>

                 Summary: Sending strings to quadl
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 24 Feb 2018 08:32:50 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Using quad


quad('sin(x)',0,pi)
warning: quad: passing function body as a string is obsolete; please use
anonymous functions
ans =                    2


Using quadl


quadl('sin(x)',0,pi)
error: feval: function 'sin(x)' not found
error: called from
    quadl at line 89 column 5


Using quadl and a function

F2= @(x) sin(x);
>> quadl(F2,0,pi)
ans =                    2


The help section states I could use a string. I would anticipate the same
warning as in quad if it is obsolete.

Am I misunderstanding the help section?





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53220>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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