Manage in quad poly approx case where function returns nil
Improve adaptive function evaluation for plotting
Improve the adaptive estimation algorithm by using global y range