(In some cases, we need more efficient sin and cos functions that are close to the specification value. Sometimes we also need high precision. At this time, the precision of trigonometric functions (sinf() and cosf() f) in C language exceeds the precision we need, so its efficiency is very low. What we really need is a compromise between precision and efficiency. It is well known that the approximation method is: the code of Taylor series (and the famous Marklaurin series) is: x-1/6x ^ 3 1/120x ^ 5-1/5040x ^ 7 ... Here we introduce a fast and simple method.
A simple, fast and accurate simulation of sincos function, and as3 implementation. doc)