Can I have a look at the source code of the Erf and Erfc
2 views (last 30 days)
Show older comments
Gen Li
on 28 Jun 2020
Answered: Walter Roberson
on 28 Jun 2020
According to the doc, I see matlab implement method in "Rational Chebyshev Approximations for Error Function --W.J.Cody" article for error function. But open erf doesn't give me any luck. Is this source code can not be seen by public?
I found it is just a rewritting of a piece of fortran code in Matlab for erf and erfc. If there's no way to view how matlab calculate erf, is it possible to tell me where is the original fortran code so that I can have a look at it?
0 Comments
Accepted Answer
Walter Roberson
on 28 Jun 2020
In older documentation, I see
The MATLAB code is a translation of a FORTRAN program by W. J. Cody, Argonne National Laboratory, NETLIB/SPECFUN, March 19, 1990. The main computation evaluates near-minimax rational approximations from "Rational Chebyshev Approximations for the Error Function" by W. J. Cody, Math. Comp., 1969, pgs. 631-638.
0 Comments
More Answers (0)
See Also
Categories
Find more on Fortran with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!