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

 
 

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

Submitted by:  Jhon Valencia <jon85p>
Submitted on:  Thu 23 Jan 2014 05:22:15 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Jhon ValenciaOpen/Closed: Closed
Release: 3.6.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 23 Jan 2014 01:48:52 PM UTC, comment #2:

http://wiki.octave.org/FAQ#Why_is_this_floating_point_computation_wrong.3F

Mike Miller <mtmiller>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jon85p (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 23 Jan 2014 01:48:52 PM UTCmtmillerStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1