Determine domain of logarithmic function (#500)