Is $\frac 1{x^2-2} $ a function from $\mathbb{R}\to \mathbb{R}$? Is it a function from $\mathbb{Z}\to \mathbb{R}$? I have been thinking about this but, I can't find any example for which you can have an input that outputs something that is either not a real number, or where there is 2 outputs for 1 input.
So I assume both examples that this formula is a function, but I feel that is not right, nor would I know how to explain my logic.
Also would $\frac10$ be part of the set of real numbers?