math.h pow() not working

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

math.h pow() not working

555 Views
turkmani_11
Contributor III

im working on MPC mcu im using an example project, i tried to include math.h and use pow(), its not showing errors but its not working, it should be highlighted in an other collor and also i should see where its declared when i press on it but it doesnt show it , the library is shown also at the includes of the project can you please help me 

turkmani_11_0-1666271363971.png

 

 

 

0 Kudos
Reply
2 Replies

431 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

can you please specify what's is not working on pow() function? There is wrong value or why you think that it is not working? 

 

Anyway - the pow() function is returning double by default. Also using pow() for left bit shifting is kind of odd. But seems that EWL STD C library can handle it and uses simple bit shifting. 

0 Kudos
Reply

446 Views
Mehul_Patel_NXP
NXP Employee
NXP Employee

Hi, @turkmani_11 , 

Is the problem fixed?

If not please can you provide more information to help with. 

Thank you. Best regards. 

- Mehul

0 Kudos
Reply