octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46015] Octave has rounding error that Matlab


From: anonymous
Subject: [Octave-bug-tracker] [bug #46015] Octave has rounding error that Matlab does not
Date: Mon, 21 Sep 2015 21:29:56 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0

URL:
  <http://savannah.gnu.org/bugs/?46015>

                 Summary: Octave has rounding error that Matlab does not
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 21 Sep 2015 09:29:54 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Bradlee Speice
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: Any

    _______________________________________________________

Details:

So I have a pretty straightforward issue. The following equation produces
different results between Octave and Matlab:

100 * .998 * 1.009 * .998

Octave produces a result of 100.50
Matlab produces a (correct) result of 100.4968.

I'm guessing the rounding error appears in between multiplications, but it
seems strange that Octave would have this issue, no other calculator I tried
had the same problem.

Do I need to set the session precision higher or similar? I find that this
behavior as a default is an issue.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46015>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]