HP Forums
Wrong integral calculation - 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: Wrong integral calculation (/thread-7782.html)



Wrong integral calculation - tiamattia - 02-15-2017 09:01 PM

Today I was doing an exercise where I had to calculate a really simple integral. I was too lazy to do it so i took my Prime to solve it.
I had to calculate the integral of (((10e-12)^2)/f)*df from 10 to 198e3.

I get the same result in cas and in home: 661.2397e-24
The correct result is: 989.3437e-21

This is quite bad. What's happening?


RE: Wrong integral calculation - Arno K - 02-15-2017 10:26 PM

Annoying bug, I tried that and got your wrong result, if you take that factor outside the integral, better before, as a constant factor, you get the correct result.
Arno


RE: Wrong integral calculation - parisse - 02-16-2017 10:05 AM

During the computation of the quadrature on the first subdivision, one of the error estimates is about 1e-24, and considered to be 0, therefore the result of this first approximation is returned.