HP Forums

Full Version: integrating with the HP Prime
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to integrate 'e^(-B*x^2) from -inf to +inf' with the hp prime emulator. The calculator is not spitting out what I'm looking for which is sqrt(pi/B) and incorrectly gives infinity as the answer.

However, it gives the correct answer (sqrt(pi)) when I just integrate 'e^(-x^2) from -inf to +inf' (without any letters). If I use a number instead of a letter, then it starts giving out the correct answer again. I'm completely new to the prime (currently have a 50G) so can anyone tell me how to get my answer in terms of the letter?

I've posted a pic of the problem here:
You should not use B as parameter, because B is always assigned on the Prime, by default to 0.0, and since exp(-B*x^2)=1 if B=0 this explains why the integral is infinity. Try with b instead.
How do we know which letters have a value attached to them like B? I noticed that the letters 'K' and 'A' also gave infinity as the answer.
Also, if I use another letter like b or a, I get the answer as "undef". Its still not working.
You have to tell it that b isn't negative.

Try typing: assume(b≥0)

Then type: ∫(e^((-b)*x^2),x,-(∞),∞)

You should get: √(π)/√(b)


Ok, that works. How do I remove that assumption?
(11-13-2016 12:21 AM)Fanboy Wrote: [ -> ]How do I remove that assumption?

Reference URL's