Inverse trig functions

The value of Pi isn't included with math.h. You should just do something like:

#define PI 3.14.....

Then you can just use the "PI" definition where needed.