## A community for students. Sign up today

Here's the question you clicked on:

## TuringTest 4 years ago could someone show me how to write a step function properly please?

• This Question is Closed
1. anonymous

in latex? or you mean a piecewise function?

2. TuringTest

yes, exactly

3. anonymous

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

4. anonymous

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

5. anonymous

the "text" part is an unnecessary frill

6. anonymous

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

#### Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy