s15auf calculates approximate values for the scaled complementary error function
for an array of arguments
, for
.
Let
be the root of the equation
(then
). For
the value of
is based on the following rational Chebyshev expansion for
:
where
denotes a rational function of degree
in the numerator and
in the denominator.
For
the value of
is based on a rational Chebyshev expansion for
: for
the value is based on the expansion
and for
it is based on the expansion
For each expansion, the specific values of
and
are selected to be minimal such that the maximum relative error in the expansion is of the order
, where
is the maximum number of decimal digits that can be accurately represented for the particular implementation (see
x02bef).
Asymptotically,
. There is a danger of setting underflow in
whenever
, where
is the largest positive model number (see
x02alf) and
is the smallest positive model number (see
x02akf). In this case
s15auf exits with
and returns
with
. For
in the range
, where
is the
machine precision, the asymptotic value
is returned for
,
, and
s15auf exits with
.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
The relative error in computing
may be estimated by evaluating
where
denotes repeated integration. Empirical results suggest that on the interval
the loss in base
significant digits for maximum relative error is around
, while for root-mean-square relative error on that interval it is
(see
x02bhf for the definition of the model parameter
). On the interval
the values are around
for maximum and
for root-mean-square relative errors; note that on these two intervals
is the primary computation. See also
Section 7 in
s15adf.
Background information to multithreading can be found in the
Multithreading documentation.
None.