nag_shifted_log (s01bac) computes values of
, retaining full relative precision even when
is small. The function is based on the Chebyshev expansion
Setting
, and choosing
,
the expansion is valid in the domain
.
nag_shifted_log (s01bac) is not threaded in any implementation.
Empirical tests show that the time taken for a call of nag_shifted_log (s01bac) usually lies between about and times the time for a call to the standard logarithm function.