Thanks for the help. I had been using: gcc file.c When I should have been using gcc -lm file.c I didnt know I had to use the switch on the command line. I thought just using #include <math.h> was sufficient. Steve __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools