Sorry for the "did you try plugging it in" question but what happens if you 
```
#include <cmath>
```

or our mathstuff.h header (which includes cmath).