This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Trig functions on CC3200

Other Parts Discussed in Thread: CC3200

Hello,

I am new to CCS, and I am having trouble performing a cosine function on the CC3200.

I copied the uart_demo from the SDK and I added a #include <math.h> and #include <stdio.h> at the top of program.

In my main(), I included:

double answer;
answer = cos(30);
Report("%f\n", answer);

The answer should be ~0.154 but the print out reads 1.000000. Other values are not correct either. 

How can I use trig functions on the CC3200?

Any help is appreciated. Thanks!