Dear Sunil
Since |.| mod operator is used maximum and minimum values of both sine and cosine are 1 and 0.
But we know that when sine is max, cosine is min which is justified by
sin^2(x) + cos^2(x) = 1
So answer to your question is [-2, 3]
Regards
Arun (askIITians forum expert)