The cmath library has built in functions to calculate the sin, cos, and tan. Look here for more info:
http://www.cplusplus.com/reference/clibrary/cmath/
Nick Evan commented: That'll do just fine! +10
nav33n commented: :D +0
Grn Xtrm 84 Posting Pro in Training
Towely commented: You're awesome, thanks! +1
BestJewSinceJC commented: Thank God for computer majors. :) +4
Rashakil Fol commented: you forgot about top-posting, ya fascist -1
kvprajapati commented: N/A +6
gibson.nathan commented: great posts, very helpful +1
Ezzaral commented: Great song! +0
nav33n commented: correct! +0
EGutierrez91 commented: thanks! +0
~s.o.s~ commented: For taking this all in good spirit... +0
BestJewSinceJC commented: Nevermind, it was a misunderstanding. +4