1 #include <math.h> 2 3 double fabs(double arg)4 fabs(double arg) 5 { 6 7 if(arg < 0) 8 return -arg; 9 return arg; 10 } 11