3 ms·
I don't mean to get in the weeds here, but this is still bad, as the Padé approximation[1] (which is what you're actually really looking for) is magnitudes bett
by dvt 3y ago
I don't mean to get in the weeds here, but this is still bad, as the Padé approximation[1] (which is what you're actually really looking for) is magnitudes better than the Maclaurin series (which is just a special case of the Taylor expansion).
Keep in mind that I'm not even an expert (I merely earned a minor in math). In fact, I only know this because I did some research years ago on rational approximations of hyperbolic functions. The right answer gets clipped to -1 or 1 beyond (-3, 3), but it should look like: `x * ( 27 + x * x ) / ( 27 + 9 * x * x )`—though the coefficients (and clip range) can vary.
[1] https://en.wikipedia.org/wiki/Pad%C3%A9_approximant https://en.wikipedia.org/wiki/Pad%C3%A9_approximant
- afro88 3y agoAh. It weakens my point, but I'll say it anyway: you do need to be able to tell the difference between good and bad responses to use it to make you more efficient. I definitely wouldn't use it blindly for things I don't know much about at this point. Pretending I know my Pade from my Maclaurian, I'd follow up with: "use the better Pade approximation".