HP Forums
Bug? int(abs(sin(2*pi*x)),x=0..1) [SW 8151] - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Bug? int(abs(sin(2*pi*x)),x=0..1) [SW 8151] (/thread-5269.html)



Bug? int(abs(sin(2*pi*x)),x=0..1) [SW 8151] - Snorre - 12-04-2015 04:26 PM

Hello,

Maybe this was reported somewhere already (didn't find a posting).

When evaluating int( abs(sin(2*pi*x)), x=0..1 )
I get the incorrect result 0.

This doesn't occur when using cosine: int( abs(cos(2*pi*x)), x=0..1 ),
or by rewriting the expression: int( abs(sin(x)), x=0..2*pi )/(2*pi);
both yield 2/pi.

[attachment=2916]

Greetings


RE: Bug? int(abs(sin(2*pi*x)),x=0..1) [SW 8151] - Tim Wessman - 12-04-2015 05:57 PM

Not reported anywhere I've seen. Thanks! Have passed it on.