use the math lib ( #include<math.h> and -lm at the link ) see also http://forums.ps2dev.org/viewtopic.php?p=19341#19341 Mathematical Library Functions atan(3M) NAME atan - arc tangent function SYNOPSIS cc [ flag ... ] file ... -lm [ library ... ] #incl...