|
From: | Olivier Amoignon |
Subject: | [Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods |
Date: | Thu, 16 Jan 2020 04:59:32 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #4, bug #57603 (project octave): The singularity reported (the result is wrong on 4 periods=8Pi and not 3 periods=6Pi or 5 periods=10Pi etc...) is a bug because independently of the accuracy of the method the integration of sin^2 or cos^2 cannot be 0 on an entire period, so even less so on 4 periods. Also I should mention that the error appeared when I conducted tests comparing matlab and octave. In matlab quadv behaves as all other integration methods (quad, quadgk etc ..) and gives the righ result. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57603> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |