how to get the domain of the function?