bugGNU Octave - Bugs: bug #41317, Incorrect result at evaluate...

 
 

bug #41317: Incorrect result at evaluate (20.1-20)>0.1

Submitter:  Jhon Valencia <jon85p>
Submitted:  Thu 23 Jan 2014 05:22:15 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Jhon Valencia Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 23 Jan 2014 01:48:52 PM UTC, comment #2: 
Mike Miller <mtmiller>
Group Member
Thu 23 Jan 2014 08:11:08 AM UTC, comment #1: 

Please understand the difference between exact arithmetic and floating-point arithmetic:

https://en.wikipedia.org/wiki/Floating-point_arithmetic#Accuracy_problems

I did not do the calculation per hand to be sure, but I am quite convinced that your result is indeed correct by

https://en.wikipedia.org/wiki/IEEE_754

Anonymous
Thu 23 Jan 2014 05:22:15 AM UTC, original submission:  

GNU Octave, version 3.6.4
Copyright (C) 2013 John W. Eaton and others.
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 "i586-suse-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

For information about changes from previous versions, type `news'.

octave:1> (20.1-20)>0.1
ans =  1
octave:2> (15.1-15)>0.1
ans = 0
octave:3>

Jhon Valencia <jon85p>

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-23 mtmiller StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code