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

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

[Octave-bug-tracker] [bug #50924] Different result between range operati


From: anonymous
Subject: [Octave-bug-tracker] [bug #50924] Different result between range operation and vector operation
Date: Wed, 3 May 2017 04:11:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0

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

                 Summary: Different result between range operation and vector
operation
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 03 May 2017 08:11:58 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Arthur HUGEAT
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When I use a range or with a vector, I haven't the same result.

n = 20480;
step = 2 * pi * 1/250e6 * 10e6;

tmp1 = step * (1:n);
tmp2 = step * [1:n];

max(abs(tmp1 - tmp2)) # Must be equal to 0


I have tested this script with octave 3.8, 4.0 and 4.2, this bug occurs but
with matlab 7.11 I obtain the right result.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 03 May 2017 08:11:58 AM UTC  Name: go.m  Size: 86B   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=40568>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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