I often find some of my students write $m=\text{undefined}$ in their answer sheets. Is it formally correct? Should I suggest them to write $m$ is undefined instead?
For example the question is
Determine the slope $m$ for a line passing through $(1,2)$ and $(1,1)$. Use the previously explained equation $m=\frac{y_2-y_1}{x_2-x_1}$.
\begin{align} m &= \frac{2-1}{1-1}\\ &= \frac{1}{0}\\ &= \text{undefined} \end{align}
Should I suggest them to write as follows? \begin{align} m &= \frac{2-1}{1-1}\\ &= \frac{1}{0} \end{align} $m$ is undefined.