Define the domain of a function from its equation (#343)