Post Reply 
integrating with the HP Prime
11-12-2016, 08:35 AM (This post was last modified: 11-12-2016 08:38 AM by Fanboy.)
Post: #1
integrating with the HP Prime
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:
http://i1226.photobucket.com/albums/ee40...rhavgy.png
Find all posts by this user
Quote this message in a reply
11-12-2016, 10:28 AM
Post: #2
RE: integrating with the HP Prime
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.
Find all posts by this user
Quote this message in a reply
11-12-2016, 11:15 PM (This post was last modified: 11-12-2016 11:16 PM by Fanboy.)
Post: #3
RE: integrating with the HP Prime
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.
Find all posts by this user
Quote this message in a reply
11-13-2016, 12:01 AM
Post: #4
RE: integrating with the HP Prime
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)

   

-road
Find all posts by this user
Quote this message in a reply
11-13-2016, 12:21 AM
Post: #5
RE: integrating with the HP Prime
Ok, that works. How do I remove that assumption?
Find all posts by this user
Quote this message in a reply
11-13-2016, 12:44 AM
Post: #6
RE: integrating with the HP Prime
(11-13-2016 12:21 AM)Fanboy Wrote:  How do I remove that assumption?

purge(b)
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)