use std:: namespace for most cmath functions:

http://en.cppreference.com/w/cpp/header/cmath
Merge pull request #394 from abma/master

use std:: namespace for most cmath functions: