added std:: prefix to all cmath function calls