Here's the question you clicked on:
TuringTest
could someone show me how to write a step function properly please?
in latex? or you mean a piecewise function?
i have a nice template, but not with me. let me see if i can recreate it
\[ f(x) = \left\{ \begin{array}{lr} x^2 & \text{if} x\leq 5\\ x-1 & \text{if } x >5 \end{array} \right. \]
the "text" part is an unnecessary frill
\[f(x) = \left\{ \begin{array}{lr} x^2 & \text{if } x\leq 5\\ x-1 & \text{if } x >5 \end{array} \right.\] there that looks better
\[f(x) = \left\{ \begin{array}{lr} x^2 & \text{if } x\leq 5\\ x-1 & \text{if } x >5 \end{array} \right.\]hm... I knew it had array in it somewhere but have never seen the lr thing before. Thanks Satellite!