Arm_sqrt_q31 on a Kinetis K MCU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Arm_sqrt_q31 on a Kinetis K MCU

929 Views
paljano
Contributor II

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);

...

0 Kudos
Reply
1 Reply

578 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Eric,

Seem you used this function correctly. what is the issue you met?

Untitled.png


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply