s15apc evaluates approximate values of the cumulative Normal distribution function
for an array of arguments
, for
.
The function is based on the fact that
and it calls
s15adc to obtain a value of
for the appropriate argument.
Because of its close relationship with
, the accuracy of this function is very similar to that in
s15adc. If
and
are the relative errors in result and argument, respectively, they are in principle related by
so that the relative error in the argument,
, is amplified by a factor,
, in the result.
However, the absolute error in the result,
, is given by
so absolute accuracy can be guaranteed for all
.
Background information to multithreading can be found in the
Multithreading documentation.
None.
This example reads values of
x from a file, evaluates the function at each value of
and prints the results.