Hello guys,
I have a very big Problem. I have to implement the arm_sqrt_q31 on my MCU and I cant find any usefull example how I can use it. I wasted a whole day for trying to implement it succuessfull. Is here anyone who can give an example how I can use that function for getting the square root of 144 or another easy number?
Here is one of my tries:
#include "arm_math.h"
int main(void)
{
uint32_t n;
arm_status status;
status=ARM_MATH_SUCCESS;
int32_t temp4 = 0;
float temp5 = 0;
arm_sqrt_q31(144,&temp4);
arm_q31_to_float(&temp4,&temp5,1);
...
Hi Eric,
Seem you used this function correctly. what is the issue you met?
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------