[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53963] [octave forge] (lssa) Test
From: |
Rafael Laboissiere |
Subject: |
[Octave-bug-tracker] [bug #53963] [octave forge] (lssa) Test |
Date: |
Wed, 23 May 2018 08:56:00 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?53963>
Summary: [octave forge] (lssa) Test
Project: GNU Octave
Submitted by: rlaboiss
Submitted on: Wed 23 May 2018 12:55:58 PM UTC
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
Discussion Lock: Any
Release: other
Operating System: GNU/Linux
_______________________________________________________
Details:
The following unit test of fastlscomplex is failing on my system:
maxfreq = 4 / ( 2 * pi );
t = [0:0.008:8];
x = ( 2 .* sin (maxfreq .* t) +
3 .* sin ( (3 / 4) * maxfreq .* t)-
0.5 .* sin ((1/4) * maxfreq .* t) -
0.2 .* cos (maxfreq .* t) +
cos ((1/4) * maxfreq .* t));
assert (fastlscomplex (t, x, maxfreq, 2, 2),
[(-0.400924546169395 - 2.371555305867469i), ...
(1.218065147708429 - 2.256125004156890i), ...
(1.935428592212907 - 1.539488163739336i), ...
(2.136692292751917 - 0.980532175174563i)], 5e-10);
!!!!! test failed
ASSERT errors for: assert (fastlscomplex (t, x, maxfreq, 2,
2),[(-0.400924546169395 - 2.371555305867469i), (1.218065147708429 -
2.256125004156890i), (1.935428592212907 - 1.539488163739336i),
(2.136692292751917 - 0.980532175174563i)],5e-10)
Location | Observed | Expected | Reason
(1) -0.40092-2.3716i -0.40092-2.3716i Abs err 2.3279e-08 exceeds
tol 5e-10 by 2e-08
(2) 1.2181-2.2561i 1.2181-2.2561i Abs err 6.4488e-10 exceeds tol
5e-10 by 1e-10
(3) 0.17512-2.3014i 1.9354-1.5395i Abs err 1.9181 exceeds tol 5e-10
by 2
(4) 1.0019-2.0248i 2.1367-0.98053i Abs err 1.5422 exceeds tol 5e-10
by 2
I am using a Debian amd64 system with Octave 4.4.0 and g++ 7.3.0. Here are
the values that I obtain from the code above:
-0.400924541120278 - 2.371555283143016i
1.218065147789378 - 2.256125003517112i
0.175123244470191 - 2.301447978287065i
1.001866643837121 - 2.024841512887229i
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53963>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53963] [octave forge] (lssa) Test,
Rafael Laboissiere <=