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!