Hello

I am in the bring-up phase of our new design with the MCF52234 using the CodeWarrior 7.2. I need the pow(), log() and exp() functions for some calculations.

Does anyone has an example how and what to include to be able to use this functions?

Thanks in advance.

This has never been clear to me either, but I have figured a way around this.

At a certain point I needed to use some math functions in my program and faced the same problem as you have now.

In CW7.1, the source code of the libraries was present, including the code of the math functions (not sure if this is also available in CW7.2 as this uses a different approach). What I did was to extract the source code of the functions that I needed from the libraries and merged the code with my code.

This has 2 advantages ;

- only needs float.h

- no need to include a large library of math functions in your program

Disadvantage : the functions I use are only single precision.

I have included the source code I use in attachment. All functions you need are in there + some others. They work fine with CW7.2 also!