For intermediate computations use single or extended counterpartswhere appropriate, to avoid precision loss.
Finalize work on complex math routines, now that we have theextended-precision support. Mostly from Cephes.