Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math.num-analysis.independent

Topic: Removing singularity at x=0 for integral
Replies: 7   Last Post: Nov 28, 2013 3:25 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Axel Vogt

Posts: 1,038
Registered: 5/5/07
Re: Removing singularity at x=0 for integral
Posted: Nov 28, 2013 1:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 28.11.2013 00:20, dspguy2@netscape.net wrote:
> On Tuesday, November 26, 2013 3:10:29 PM UTC-5, Axel Vogt wrote:
>> On 26.11.2013 16:10, dspguy2t wrote:
...

"erf" is the error function (a variation of the cumulative normal distribution)
and you should find *good* code to evaluate it (look up Wikipedia) and if you
use gcc then it comes within its libraries, IIRC.

If you insist to do integration, then transform to Int( (exp(-s^2), s = .. infinity).
exp(-s^2) <= DBL_ESP for s <= 6.0, so you live on a quite finite range (it will
depend on your constand 0 < A).

Or you use the other method for infinite ranges, look up Abramowitz & Stegun
(or Wikipedia), there should be codes ready to run.






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.