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

조회 수: 2 (최근 30일)
Gen Li
Gen Li 2020년 6월 28일
답변: Walter Roberson 2020년 6월 28일
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?

채택된 답변

Walter Roberson
Walter Roberson 2020년 6월 28일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fortran with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by