Added method to find definition domain of a function