• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quick question - what is the integral of e^-(x^2) dx from 0 to z

Thats just Erf(z) .

I encountered this last week when I was computing the probabality that and electron in would be found be between the classically forbidden region and infinity.
 
Originally posted by: eigen
Thats just Erf(z) .

I encountered this last week when I was computing the probabality that and electron in would be found be between the classically forbidden region and infinity.
Actually, erf(z) is 2/rootpi * the integral.
 
Originally posted by: Howard
Originally posted by: eigen
Thats just Erf(z) .

I encountered this last week when I was computing the probabality that and electron in would be found be between the classically forbidden region and infinity.
Actually, erf(z) is 2/rootpi * the integral.
Then what do you need to know? There is no polynomial or other answer we can give you (well we can give you a Taylor's series approximation which would be a polynomial but lets not get into approximations). That is just an integral that when multiplied by a constant was given a name - the error function.
 
Originally posted by: Howard
Crap. I was afraid of that.

Guess it's back to interpolating from a table. 🙁
Excel has it built in (if you enable the Analysis Toolpak), or you can numerically integrate pretty easilly.

 
Originally posted by: dullard
Originally posted by: Howard
Crap. I was afraid of that.

Guess it's back to interpolating from a table. 🙁
Excel has it built in (if you enable the Analysis Toolpak), or you can numerically integrate pretty easilly.
How would I integrate numerically? By approximating the Taylor series, you said?
 
Originally posted by: Howard
Originally posted by: dullard
Originally posted by: Howard
Crap. I was afraid of that.

Guess it's back to interpolating from a table. 🙁
Excel has it built in (if you enable the Analysis Toolpak), or you can numerically integrate pretty easilly.
How would I integrate numerically? By approximating the Taylor series, you said?

Uh like simpson's rule? This function is nice & smooth, so any old integration rule (even trapezoid) will handle it ok...just pick a small step size. If you want to be fancy, use some form of extrapolation.

But yeah this integral equals a "set" value from 0 to infinity. Otherwise it's only approximate by numeric means. Beyond that, matlab, maple, excel, and mathematica all have erf(x) built in.
 
Originally posted by: eigen
Thats just Erf(z) .

I encountered this last week when I was computing the probabality that and electron in would be found be between the classically forbidden region and infinity.

are you in 8.04 or thereabouts? I remember one of my friends talking about this forbidden region the other day...
 
I don't know what Simpson's rule is. 😕 And I have to be able to do this by hand or a with a standard scientific calculator.
 
Originally posted by: Howard
I don't know what Simpson's rule is. 😕 And I have to be able to do this by hand or a with a standard scientific calculator.

Well up to a point (0.5?), erf is roughly linear...how accurate do you have to be?

You can look up simpson's rule online...esp by hand, this will probably be your best bet. Other than that I can imagine erf values being tabulated in books like the CRC book of tables/formulas or whatever they call it.
 
Originally posted by: eLiu
Originally posted by: Howard
I don't know what Simpson's rule is. 😕 And I have to be able to do this by hand or a with a standard scientific calculator.

Well up to a point (0.5?), erf is roughly linear...how accurate do you have to be?

You can look up simpson's rule online...esp by hand, this will probably be your best bet. Other than that I can imagine erf values being tabulated in books like the CRC book of tables/formulas or whatever they call it.
I looked, and I think it says you need three values of the function at 3 evenly spaced intervals (0, the middle x, and the boundary x) to calculate the integral?
 
Originally posted by: Howard
Originally posted by: eLiu
Originally posted by: Howard
I don't know what Simpson's rule is. 😕 And I have to be able to do this by hand or a with a standard scientific calculator.

Well up to a point (0.5?), erf is roughly linear...how accurate do you have to be?

You can look up simpson's rule online...esp by hand, this will probably be your best bet. Other than that I can imagine erf values being tabulated in books like the CRC book of tables/formulas or whatever they call it.
I looked, and I think it says you need three values of the function at 3 evenly spaced intervals (0, the middle x, and the boundary x) to calculate the integral?

Yeah. Simpson's rule essentially fits a parabola to the function at hand and integrates that (because well, parabolas are easy to integrate). So yes, you need 3 function evals of exp(-x^2).

Now the more tightly the 3 points are packed together, the better your result will be. For even better results, "string" several simpson approximations together--like do an approx on the range 0 to 0.5, then 0.5 to 1, 1-1.5, etc, and you end up with what's called the "composite simpson rule." (dividing up the interval)

I think the weights go something like 1/3, 2/3, 4/3, 2/3, 4/3, ... 4/3, 2/3, 1/3, I think.

-Eric
 
If you can't get help here, I suggest you try http://www.physicsforums.com I really like that place as there are a lot of interesting discussions that take place. It's filled with brains and I bet they can answer your question.

Not saying no one here on AT can, but you will probably get a faster answer there. 😉
 
Originally posted by: eLiu
Originally posted by: eigen
Thats just Erf(z) .

I encountered this last week when I was computing the probabality that and electron in would be found be between the classically forbidden region and infinity.

are you in 8.04 or thereabouts? I remember one of my friends talking about this forbidden region the other day...
What is 8.04. I have no clue what that is.
 
Back
Top