Finding the Domain of Algebraic Functions