#define M_PI 3.1415926 extern double floor(double x); extern int abs(int j); double exp(double x);