Why is the implementation of computing both sine and cosine at the same time about the same speed as just computing one of them?

190 viewsMathematicsOther

Was messing around with C and found this quirk. How does this function work so quickly? How is it implemented?

In: Mathematics

3 Answers

Anonymous 0 Comments

The ELI5 answer is because sin and cos have the same values just 90 degrees out of phase. Just look at a graph of sin and a graph of cos to see what I mean.

You are viewing 1 out of 3 answers, click here to view all answers.