Suppose I have a function $f$ which can take different mappings depending on how $f$ is parameterized. For example, I want to write something like this:
\begin{equation} \label{eq4:bounds_ex1} f: \begin{cases} \mathbb{R}^n \rightarrow \mathbb{C}, & \text{if f is a function of }x \\ \mathbb{R}^{n+m} \rightarrow \mathbb{C}, & \text{if f is a function of }x\text{ and }y \end{cases} \end{equation}
Is there a correct (and neat) mathematical way to express this?
Thanks!