I want to write an equation with two cases, to represent something like "x = 1 if y > 0, otherwise x = -1". I know that this can be done using the cases environment:
Code: Select all
\begin{cases}
1, & \text{if } y > 0 \\
0, & \text{otherwise}
\end{cases}
Effectively, this is the same as simply removing the original equals from the brace, and just writing in the "approximately equals" and "equals" symbols on the relevant lines. Does anybody know if this is possible?
Thanks!