I don’t post much but yes, I was aware of the reference and the sort of discussions it came from.
This certainly cannot cause problems with backwards compatibility!
that’s what I meant with the joke (sarcasm) flying over people’s head.
Thank you for the references. I will have a look at them more thoroughly. I have been using the NIST handbook frequently, yes, pretty handy and full of references.
Minimax are a quick way to get something that works, but indeed the rounding makes thing differ a lot from the ideal (exact arithmetic) polynomial. Errors of 1e-11
in the minimax turn out to be of 1e-7
when computed with e.g.single precision in fortran.
I’ve computed many and compared them to what’s available in the math libraries; often the coefficients are quite similar, but never the same.
It may seem like a good starting point, but I’m not so sure. For single precision, say a 4th order polynomial, even changing the last digit of the coefficient of x^4
makes things go from errors of 1e-8
to 1e-7
or larger. I don’t think trial and error here works, it’s too much work.
Another path is using double precision and then convert to single, though I’m trying to avoid that if possible.