Polynomial functions and their domains