I have been trying to understand the notion of complex sine that was defined in my book. The book first starts out defining $ e^{z} $ as
$$ \text{If } z = x + iy, \text{ then } e^z = e^{x}\cos y + ie^x\sin y $$
Next, the book states that for any $ y \in \mathbb{R} $:
$$ \begin{eqnarray} e^{iy} &=& \cos y + i \sin y\\ e^{-iy} &=& \cos y - i \sin y\\ \implies \sin \ y &=& \frac{1}{2i}(e^{iy} - e^{-iy}) \end{eqnarray} $$
I followed up to this point, but then they generalized this to define $\sin z \text{ for } z \in \mathbb{C} $. This is the definition they gave:
$$ \sin z = \frac{1}{2i}(e^{iz} - e^{-iz}) $$
I do not understand want $ e^{iz} $ means in this equation. If $ z = x + iy $ then does $ e^{iz} = e^{-y + ix} = e^{-y}\cos x + ie^{-y}\sin x $. Is this correct, or does it mean something else?