explicit testing on log10(0.0) to avoid exceptions in variable precision Newton