home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / SPECFUN.DI$ / ERFC.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  381 b   |  15 lines

  1. function y = erfc(x)
  2. %ERFC    The complementary error function.
  3. %    y = erfc(x).
  4. %    y = 2/sqrt(pi) * integral from x to inf of exp(-t^2) dt.
  5. %      = 1 - erf(x).
  6. %
  7. %    See also ERF, ERFCX.
  8.  
  9. %    Ref: Abramowitz & Stegun, Handbook of Mathemtical Functions, sec. 7.1.
  10. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  11.  
  12. % Derived from a FORTRAN program by W. J. Cody.
  13.  
  14. y = erfcore(x,1);
  15.