I would like to write the equation, $$I=\begin{cases} k & N \text{ even} \\ 0 & N \text{ odd} \end{cases}$$ as a function of $N$ in a non-piecewise format.
Any guidance/suggestions would be appreciated.
I would like to write the equation, $$I=\begin{cases} k & N \text{ even} \\ 0 & N \text{ odd} \end{cases}$$ as a function of $N$ in a non-piecewise format.
Any guidance/suggestions would be appreciated.