TuringTest Group Title could someone show me how to write a step function properly please? 2 years ago 2 years ago

1. satellite73

in latex? or you mean a piecewise function?

2. TuringTest

yes, exactly

3. satellite73

i have a nice template, but not with me. let me see if i can recreate it

4. satellite73

$f(x) = \left\{ \begin{array}{lr} x^2 & \text{if} x\leq 5\\ x-1 & \text{if } x >5 \end{array} \right.$

5. satellite73

the "text" part is an unnecessary frill

6. satellite73

$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

7. TuringTest

$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!