Changing lookup of math constants to use GLM