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

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

[Octave-bug-tracker] [bug #58908] same non-zero output becomes zero sudd


From: rambiz khalili
Subject: [Octave-bug-tracker] [bug #58908] same non-zero output becomes zero suddenly
Date: Fri, 7 Aug 2020 00:04:35 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?58908>

                 Summary: same non-zero output becomes zero suddenly
                 Project: GNU Octave
            Submitted by: rambiz
            Submitted on: Fri 07 Aug 2020 04:04:33 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 5.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hi all, 
x-y is the same number, what happens here? 

>> x=2.0000000000000011;
>> y=2.0000000000000012;
>> a=1/(x-y)/(x+y)
a = -562949953421311.8
>> b=1/(x^2-y^2)
b = -562949953421312
>> x=2.0000000000000111;
>> y=2.0000000000000112;
>> a=1/(x-y)/(x+y)
warning: division by zero
a =  Inf
>> b=1/(x^2-y^2)
warning: division by zero
b =  Inf
>> x-y
ans = 0
>> x^2-y^2
ans = 0




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58908>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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