Define the range of a function from its equation