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

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

[Octave-bug-tracker] [bug #63848] Mean: wrong result for large single ve


From: Clément Bret
Subject: [Octave-bug-tracker] [bug #63848] Mean: wrong result for large single vectors
Date: Tue, 28 Feb 2023 09:49:59 -0500 (EST)

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

                 Summary: Mean: wrong result for large single vectors
                   Group: GNU Octave
               Submitter: clem_bret
               Submitted: Tue 28 Feb 2023 02:49:55 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 28 Feb 2023 02:49:55 PM UTC By: Clément Bret <clem_bret>
I expect the following two lines to give both 0.5:


>> mean (rand (1,80e6, "single"))
ans = 0.2097
>> mean (rand (1,80e6))
ans = 0.5000


The two results seem to differ once vectors are larger than about 20e6
elements.







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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