For polynomial functions, it's clear how many samples to use; what about others? Do you settle on a magic constant and call it a day?
The main goal is to make sure that we pass the tests listed in https://github.com/kisonecat/math-expressions/blob/master/sp...