I am running a numerical equation solver on f(x)=y tens of thousands of times (so performance is critical). x is a scalar (as opposed to, say, a vector
f(x)=y
x