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

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

[Octave-bug-tracker] [bug #58604] square function suffers on rounding er


From: vasiliy
Subject: [Octave-bug-tracker] [bug #58604] square function suffers on rounding error
Date: Wed, 17 Jun 2020 08:12:22 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36

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

                 Summary: square function suffers on rounding error
                 Project: GNU Octave
            Submitted by: vasiliy22
            Submitted on: Ср 17 июн 2020 12:12:20
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 5.1.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

it would be nice to modify the square function, that one could work with
integer cyclic frequencies without tunings about rounding error. At least it
would be nice to have an option to square that menas, that the default period
is not 2pi, but 1.

>> square(linspace(0,1,9)*4*2*pi)
ans =

   1  -1   1  -1   1  -1   1  -1   1

>> square(linspace(1,2,9)*4*2*pi)
ans =

   1  -1   1   1   1  -1   1   1   1

>>




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.gnu.org/




reply via email to

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