摘要 |
A method (300) for generating a sine and cosine of an input angle (.SLZERO.102). The method involves decomposing .SLZERO.102 to an octant or quadrant, a coarse angle (A), and a fine angle (B), determining cos(A), and determining sin(A). The method also involves decomposing cos(A) and sin(A) to a most significant word (MSW) and a least significant word (LSW). The method further involves computing an approximation of 1-cos(B), an approximation of sin(B), and a plurality of products (P1,..., P4) using the MSWs and approximations. The method involves computing approximations of cos(.SLZERO.'102) and sin(.SLZERO.'102) using the values for cos(A), sin(A), and P1,..., P4. The method involves scaling the approximations of cos(.SLZERO.'102) and sin(.SLZERO.'102) to a desired resolution.
|