I am writing my Computer Science Master Thesis. I am wondering what is the correct or in your opinion best looking style for piecewises:
See examples below:
- Do I use a comma at the end of each line (ex last line)?
- Do I end the last line with a dot?
- Do I use a separator, and if yes which (in this example a colon) to seperate condition and formula?
- What other things are stylewise wrong in the example below?
$$f(x) = \left\{ \begin{array}{lr} 0 & : x \leq 0, \\ 1 & : x > 0. \end{array} \right.$$
I usually would write with a semicolon, so $$\begin{cases}0;& x\leq 0\\ 1;& x>0\end{cases}$$ but it's a matter of preference. I remember having the same question, I just asked my supervisor.