Ask your own question, for FREE!
LaTeX Practicing! :) 10 Online
mhchen:

How do you write piece-wise functions?

dude:

\(\begin{cases} 2x+3 & {if~x<0} \\ 1 & {if~x=2} \\ x^2 & {if~x>2} \end{cases}\) testIhopeitworks

dude:

```latex \(\begin{cases} 2x+3 & {if~x<0} \\ /*This is where the first second and every other eq would go, separate by line using 2 backslashes*/ 1 & {if~x=2} \\ x^2 & {if~x>2} \end{cases}\)```

mhchen:

That is amazing

mhchen:

unfortunately it doesn't work with the latex I'm using on another site. I'll just post it on this site and screenshot it.

mhchen:

\(\begin{cases} 0 & {if~a_{nn} \neq 0} \\ 1 & {if~a_{nn}=0} \end{cases}\)

dude:

Aw rip Yeah all sites always have variating syntax

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!