[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating

**From**: |
Kai Torben Ohlhus |

**Subject**: |
[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods |

**Date**: |
Wed, 15 Jan 2020 06:07:59 -0500 (EST) |

**User-agent**: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36 |

Follow-up Comment #1, bug #57603 (project octave):
Repost comment #0, as Savannah messed up the format.
[comment #0 original submission:]
>* Tested with version 4.2.2 under Ubuntu 18.04LTS and version 3.8.2 under*
Centos 7:
>* examples are *
>* *
>* quadv(@(t)sin(t).^2,0,8*pi)*
>* *
>* which gives 8.0412e-30 whereas *
>* *
>* quadv(@(t)sin(t).^2,0,10*pi)*
>* *
>* gives 15.708*
>* Another example is *
>* *
>* quadv(@(t)cos(t).^2,0.5*pi,8.5*pi)*
>* *
>* which gives 2.2364e-29 instead of 12.566, the result obtained by quad or*
quadgk.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57603>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**, *anonymous*, `2020/01/15`
**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**,
*Kai Torben Ohlhus* **<=**
**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**, *Kai Torben Ohlhus*, `2020/01/15`
**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**, *Rik*, `2020/01/15`
**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**, *Olivier Amoignon*, `2020/01/16`
**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**, *Olivier Amoignon*, `2020/01/16`
**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**, *Rik*, `2020/01/16`
**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**, *Rik*, `2020/01/17`
**[Octave-bug-tracker] [bug #57603] quadv gives wrong results integrating sin^2 or cos^2 on multiple of 8 periods**, *Kai Torben Ohlhus*, `2020/01/21`