bugGNU Octave - Bugs: bug #62907, bug in addition!

 
 

bug #62907: bug in addition!

Submitter:  None
Submitted:  Wed 17 Aug 2022 11:15:09 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.4.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 18 Aug 2022 02:39:34 AM UTC, comment #2: 

specifically:


>> sum(A,"native")
ans = 127
>> class(sum(A,"native"))
ans = int8


closing report.

Nicholas Jankowski <nrjank>
Group Member
Wed 17 Aug 2022 11:25:16 PM UTC, comment #1: 

It is expected behavior. Read "help sum"

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 17 Aug 2022 11:15:09 PM UTC, original submission:  

sum ([a b]) is not giving the same answer as a+b!

Code:

A = int8 ([100 100])
A(1) + A(2)
class (A(1) + A(2))
sum (A)
class (sum (A))


giving 127 int8 in one and 200 double in other. Bug!

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 nrjank (Posted a comment)
  • -email is unavailable- added by dasergatskov (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-18 nrjank StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code