Error with M_PI in assignment 2

Dear all,

If you experience compilation errors related to "M_PI" when compiling the handout code, you can fix this using one of two approaches:

1: Define M_PI using the C preprocessor or as a constant variable, or

2: Define _USE_MATH_DEFINES before including the cmath library.

Publisert 18. sep. 2014 12:54