So I have a function $f(x,y,z)$ where $x,y\in \mathbb{R}$ and $z \in \mathbb{R} \cup \{\infty \}$. Now, I want to write something like $f:\mathbb{R}^3 \rightarrow \mathbb{R}$. But the thing is that $z$ includes $\infty$...So what is the correct way of mapping the function $f$ given the domains of $x,y,z$?
Thanks!