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.
I would write in words, something like:
I would avoid writing $\frac{1}{0}$ at any time, and would avoid saying that $m$ is equal to anything at all.
Strictly speaking the question is not well posed, because you are asking them to "determine" something which does not exist. Better wording would be something like