You'll probably need a header line #include <cmath> to get type definitions for sin() and cos()
#include <cmath>
sin()
cos()