Hi.. I need to use the cos and sin functions. what are the libraries I need to add ? is it only <math.h> ? if yes, i tried that and i got error message:
/cygdrive/h/Ex3/FFT/FFT.c(45): error: undefined reference to 'cos'
Thankx
The nice little tool "grep" will tell you which file it is in. If grep can't find the symbol in any of your existing include files, then it just isn't there. Embedded compilers doesn't have all standard symbols defined...
i forgot to ask,, the angle of a cos or sin function is in radians or degrees.??
There are a huge number of functions available in the standard library. Hence, the only reasonable way you can make use of them is by making it a habit to check the manual. It will - of course - describe the parameters for the available functions.