r/programming • • Jul 20 '20

Implementing cosine in C from scratch

http://web.eecs.utk.edu/~azh/blog/cosine.html
503 Upvotes

104 comments sorted by

View all comments

Show parent comments

17

u/Simon_Luner Jul 20 '20

Indeed, all Digital Signal Processing libraries that I have seen only stores 1/4 of the sin period in a table for all their sin and cos needs

-3

u/zoinks Jul 20 '20

If you only store a quarter do the 7 deadly sins round down to 1 or up to 2?