Incorrect use of logical operator
math function declarations no longer needed in VS2013