Computation Error Function
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about computation error in webi hiring developers or posting ads with us Mathematics Questions Tags Users Badges Unanswered Ask Question computation error in business objects _ Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join
How To Calculate Error Function In Casio Calculator
them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to accurately calculate the error function
How To Find Erf In Scientific Calculator
erf(x) with a computer? up vote 9 down vote favorite 2 I am looking for an accurate algorithm to calculate the error function I have tried using [this formula] (http://stackoverflow.com/a/457805) (Handbook of Mathematical Functions, formula 7.1.26), but the results are not accurate enough for the application. statistics algorithms numerical-methods special-functions share|cite|improve this question edited Jan 10 '14 at 4:47 pnuts 1056 asked Jul 20 '10 at 20:20 badp 6741225 You may want to take a faddeeva function look at python's code.google.com/p/mpmath or other libraries that advertise a "multiple precision" feature. Also, this may be a better question for stack overflow instead, since it's more of a computer science thing. –Jon Bringhurst Jul 20 '10 at 20:26 @Jon: Nope, I'm not interested in a library, there is no such library for the language I'm writing in (yet). I need the mathematical algorithm. –badp Jul 20 '10 at 20:49 Have you tried numerical integration? Gaussian Quadrature is an accurate technique –Digital Gal Aug 28 '10 at 1:25 GQ is nice, but with (a number of) efficient methods for computing $\mathrm{erf}$ already known, I don't see the point. –J. M. Aug 29 '10 at 23:07 add a comment| 4 Answers 4 active oldest votes up vote 9 down vote accepted I am assuming that you need the error function only for real values. For complex arguments there are other approaches, more complicated than what I will be suggesting. If you're going the Taylor series route, the best series to use is formula 7.1.6 in Abramowitz and Stegun. It is not as prone to subtractive cancellation as the series derived from integrating the power series for $\exp(-x^2)$. This is good only for "small" arguments. For large arguments, you can use either the asymptotic series or the continued fraction representations. Otherwise, may I dire
// additional overloads for integral types Compute error function
Gauss Error Function
Returns the error function value for x. Header
2
3
4
5
6
7
8
9
10
11
12
/* erf example */ #include
be down. Please try the request again. Your cache administrator is webmaster. Generated Wed, 05 Oct 2016 10:36:12 GMT by s_hv987 (squid/3.5.20)
be down. Please try the request again. Your cache administrator is webmaster. Generated Wed, 05 Oct 2016 10:36:12 GMT by s_hv987 (squid/3.5.20)