bugGNU Octave - Bugs: bug #66475, Simple operations fail

 
 

bug #66475: Simple operations fail

Submitter:  None
Submitted:  Fri 22 Nov 2024 05:02:12 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Works For Me Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 9.2.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 23 Nov 2024 09:35:29 PM UTC, comment #3: 

It seems like there must be some other problem with the reporter's machine.  There would be hundreds of bug reports if simple arithmetic input didn't work.

Rik <rik5>
Group administrator
Sat 23 Nov 2024 09:59:54 AM UTC, comment #2: 

Not reproducible on Windows 11 as well:

GNU Octave, version 9.2.0
Copyright (C) 1993-2024 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-w64-mingw32".

Home page:            https://octave.org
Support resources:    https://octave.org/support
Improve Octave:       https://octave.org/get-involved

For changes from previous versions, type 'news'.

>> s=1+12*200+2
s = 2403
>> s=s+12*200+2
s = 4805
>>


Hendrik K <koerhen>
Fri 22 Nov 2024 08:02:30 PM UTC, comment #1: 

I cannot reproduce that error (Octave-9.2.0, Windows 10):

>> s=1+12*200+2
s = 2403
>> s=s+12*200+2
s = 4805
>>


It looks like the parser doesn't seem to understand the "2" character (that's what the caret points at). Funny as it works fine in the first line.
Do other numbers than "2" work OK?

Philip Nienhuis <philipnienhuis>
Group Member
Fri 22 Nov 2024 05:02:12 PM UTC, original submission:  

s=1+12*200+2
s = 2403

>> s=s+12*200+2

error: parse error:

  syntax error

>>> s=s+12*200+2

               ^

What is going on there?

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 koerhen (Posted a comment)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-12-01 rik5 StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2024-11-23 rik5 CategoryNone Interpreter
        Item GroupNone Other
    2024-11-22 philipnienhuis StatusNone Need Info

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code