cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

pow() function in EZ-USB Suite - KBA231148

ChaitanyaV_61
Employee

pow() function in EZ-USB Suite - KBA231148

Version: **

The pow(a,b) function returns the value of ‘a’ raised to the power of ‘b’. It is defined inside the math.h header file. Do the following to use this function in an FX3 project in EZ USB Suite:

  1. At the top of the source file where pow() is to be used, add a reference to the math.h header file.
    #include "math.h"
  2. Right-click the project and select Properties.
  3. On the Project Properties window, select C/C++ build > Settings.
  4. Under Cross ARM C Linker, select Libraries. 
    pastedImage_16.png
  5. Add the new library (m) to the set of default libraries present and click OK.
    pastedImage_17.png
  6. Click OK and then refresh the project before building.
  7. Build the project.
0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Sep 28, 2020 01:19 AM
Updated by:
 
Contributors