A polyfill for ES6 mathematical and helper functions and constants.