#define _USE_MATH_DEFINES /**< required for MS Visual C */ #include <math.h> #include <stdio.h> #include <stdlib.h> #