Can I have a look at the source code of the Erf and Erfc

2 views (last 30 days)
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?

Accepted Answer

Walter Roberson
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.
Source for that appears to be at http://www.netlib.org/specfun/erf

More Answers (0)

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!