Faster Asin() Was Hiding in Plain Sight
Summary
The article investigates speeding up arcsin() within a ray tracer by combining a fourth-order Taylor series, Padé approximants, and a half-angle correction to handle edge cases. It provides C++ and Python code samples, benchmarks on a Mac Mini, and discusses an LLM-assisted approach to derive fast approximations, highlighting trade-offs between speed and accuracy.