Update equilbrium.c

fixed error #2048: Undeclared identifier 'M_PI' caused when compiling the code using C99 standard.