I am writing the code for this equation
I tried this code
\begin{equation}
\left\{ \hat{y}_{i}^{k} = 0 if {S}_{i}^{k} < \tau \right\}
\left\{ \hat{y}_{i}^{k} = 1 if {S}_{i}^{k} > \tau \right\}
\end{equation}
I am unable to shift the second line \hat{y}_{i}^{k} = 1 if {S}_{i}^{k} > \tau
to the next line by using big curly bracket, and I want to put a bracket on both sides.
How to also add space between each symbol?
Best Answer
There are four usual ways to the problem of which anyone could be choosed as you like and are used very often. Of course, some unusual packages may also supply different ways which is not advised by me since they may be more complicated and used quite few.
cases
environment in theamsmath
package.\left\{ \right.
codes and thearray
environment in theamsmath
package. And you could add 1 to 3\!
to adjust the space after the left brace or before the right brace.\left\{ \right.
codes and thealigned
environment in theamsmath
package.dcases
ordcases*
environment in themathtools
package