MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/huc7vm/implementing_cosine_in_c_from_scratch/fyntrbv
r/programming • u/azhenley • Jul 20 '20
104 comments sorted by
View all comments
Show parent comments
3
I think it may have been:
double cos_table_0_01(double x) { x = x - (int)(x * (1 / (CONST_PI * 2))) * (CONST_PI * 2); int index = (int)((x / 0.01) + 0.5); return costable_0_01[index]; }
1 u/MH_VOID Jul 20 '20 thanks
1
thanks
3
u/azhenley Jul 20 '20
I think it may have been: