1>>> from sympy import Symbol, S, tan, log, pi, sqrt
2>>> from sympy.sets import Interval
3>>> from sympy.calculus.util import continuous_domain
4>>> x = Symbol('x')
5>>> continuous_domain(1/x, x, S.Reals)
6Union(Interval.open(-oo, 0), Interval.open(0, oo))
7>>> continuous_domain(tan(x), x, Interval(0, pi))
8Union(Interval.Ropen(0, pi/2), Interval.Lopen(pi/2, pi))
9>>> continuous_domain(sqrt(x - 2), x, Interval(-5, 5))
10Interval(2, 5)
11>>> continuous_domain(log(2*x - 1), x, S.Reals)
12Interval.open(1/2, oo)
13