|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #60606] [octave forge] (signal) cplxreal error on odd number of zeros |
Date: | Sun, 16 May 2021 01:30:16 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 |
Update of bug #60606 (project octave): Item Group: Incorrect Result => Unexpected Error or Warning Release: 6.2.0 => dev Summary: [octave forge] (signal) cplxreal fct handles real zero at zero as complex => [octave forge] (signal) cplxreal error on odd number of zeros _______________________________________________________ Follow-up Comment #1: Thanks, it would help if you could submit this change in the form of a patch file instead of an entire copy of the function. I would delete the original line entirely instead of making a copy of it as a comment. I would also write the improved condition as while ((idx > 0) && (zcp(idx) == 0 || (abs (imag (zcp(idx))) ./ abs (zcp(idx))) <= tol)) Are you planning to post another revision with a test for this case? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60606> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |