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

2 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Walter Roberson
Walter Roberson il 28 Giu 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

Più risposte (0)

Categorie

Scopri di più su Fortran with MATLAB in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by