function y = erfcx(x)
%ERFCX  Scaled complementary error function.
%   Y = ERFCX(X) is the scaled complementary error function for each
%   element of X.  X must be real.  The scaled complementary error
%   function is defined as: 
%
%     erfcx(x) = exp(x^2) * erfc(x)
%
%   which is approximately (1/sqrt(pi)) * 1/x for large x.
%
%   Class support for input X:
%      float: double, single
%
%   See also ERF, ERFC, ERFINV.

%   Copyright 1984-2004 The MathWorks, Inc. 
%   $Revision: 5.10.4.3 $  $Date: 2004/07/05 17:01:55 $

% Derived from a FORTRAN program by W. J. Cody.

y = erfcore(x,2);
