https://www.righto.com/2026/09/8087-tangent-cordic.html
I hope you're not tired of the 8087, because I have another article about Intel's floating-point chip.1 In 1980, Intel introduced the 8087, making floating-point operations much faster in the IBM PC and other systems. In this article, I look at the algorithm behind the chip's tangent instruction. One popular approach for trigonometric functions is an algorithm called CORDIC. Another approach is a polynomial approximation. The 8087 combined the two to obtain both high accuracy and high performance. The 8087 provided an enormous speedup over the 8086 microprocessor, computing a tangent in 90 microseconds rather than 13,000 microseconds.2
By examining the circuitry and microcode of the 8087, I can explain the algorithm behind the tangent instruction, called FPTAN. To explore the 8087's circuitry, I popped the lid off a chip with a chisel and created a high-resolution image with a microscope.
(Score: 3, Insightful) by lars_stefan_axelsson on Tuesday September 29, @12:12PM
Yes, that's whole field in numerical analysis. You can do it a couple of ways but one is to use piecewise polynomials instead of a polynomial of untractable degree: https://www.sciencedirect.com/topics/computer-science/polynomial-approximation [sciencedirect.com].
You can also start with a lookup and then do interpolation, or even more formal error correction: https://www.ijera.com/special_issue/NLTSETE&S/ECE/ECE-PP-001%20-%200107.pdf [ijera.com]. This paper is even with hardware implementation in mind. LUT plus small polynomial for interpolation exactly like you propose.
Stefan Axelsson