What is the fastest way to compute sin and cos together?

Posted by Danvil on Stack Overflow See other posts from Stack Overflow or by Danvil
Published on 2010-04-21T14:05:53Z Indexed on 2010/04/21 14:13 UTC
Read the original article Hit count: 243

Filed under:
|
|
|
|

I would like to compute both the sine and co-sine of a value together (for example to create a rotation matrix). Of course I could compute them separately one after another like a = cos(x); b = sin(x);, but I wonder if there is a faster way when needing both values.

© Stack Overflow or respective owner

Related posts about math

Related posts about algorithm