binary search on accuracy to make smooth curves.