#include <math.h>
sqrt
but it is possible that the needed math function wasn't included in your precompiled library. So in project settings under linker you may need to change your "c" library to a different one. For example the one the default projects pick for my processor is:
"${PAToolsBaseDir}/PA_Support/ewl/lib/libc_E200z760_VLE.a"
I needed to switch to
"${PAToolsBaseDir}/PA_Support/ewl/lib/libc99_E200z760_VLE.a" - the regain some left out functions. The docs in the help folder under your Codewarrior install should help, assuming you as using Codewarrior.