At my school we are going over rational functions and discontinuities, and we often are asked to find the domain/range of a function. Sometimes the range feels quite lengthy, however, which is why I'm asking this question.
For example, look at the function
$$f\left(x\right)=\frac{x-3}{\left(x+3\right)\left(x+1\right)\left(x-2\right)}$$
My teacher makes us write the domain of $f\left(x\right)$ as
$$\left(-\infty,-3\right)\cup\left(-3,-1\right)\cup\left(-1,2\right)\cup\left(2,\infty\right)$$
I would like to know if this is equivalent
$$\{x\in \mathbb{R},x\ne[-3,-1,2]\}$$
Even if this is not the same, is there a better way to write the domain?