bugGNU Octave - Bugs: bug #35131, symvar() incorrectly identifies...

 
 

bug #35131: symvar() incorrectly identifies floating point "e" as variable

Submitter:  None
Submitted:  Tue 20 Dec 2011 09:24:45 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  J.J. Green Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 23 Dec 2011 05:28:22 AM UTC, comment #3: 

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/ebf41239e47e).  This will be part of the 3.6.0 release.

Rik <rik5>
Group administrator
Tue 20 Dec 2011 10:29:55 PM UTC, comment #2: 

As requested

>> f = inline ('1e-3*z')

f =

     Inline function:
     f(z) = 1e-3*z

>> argnames (f)

ans =

    'z'


Anonymous
Tue 20 Dec 2011 10:27:46 PM UTC, comment #1: 

Confirmed.  The root problem actually seems to be the parsing of functions by the function inline().

Could you report the output from Matlab for the following commands?


f = inline ('1e-3*z')
argnames (f)


Rik <rik5>
Group administrator
Tue 20 Dec 2011 09:24:45 PM UTC, original submission:  

It seems that Octave's symvar() does not parse floating point exponential notation correctly:


octave:4> symvar('1e-3*x')
ans =
{
  [1,1] = e
  [2,1] = x
}


While Matlab gets it right:

>> symvar('1e-3*x')
ans =
    'x'


Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-23 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2011-12-20 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code