Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Why does the compiler hate this statement?
accel = sqrt(pow(Ax,2)+pow(Ay,2)+pow(Az,2))/1333.0;
In particular the 'pow'... Am I missing somethign in the manual? The compiler won't do it.. I ran into this once before, about a week ago.. I just looked at http://www.keil.com/support/docs/2518.htm
and http://www.cplusplus.com/reference/clibrary/cmath/pow/
I mean... I know it's almost 4am, but.. can someone enlighten me? I'm mostly curious, and probably totally missing something obvious....