Without the right feature macros M_PI is not defined in math.h.
Attach a file by drag & drop or click to upload