Lower tolerance to make quad() in pln more accurate
Multiple tricks to avoid problems for extreme values in pln