Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How can I input a Piecewise function like in TraditionalForm output?

I want something like this:

Piecewise[{{1, x > 0}, {0, x == 0}, {-1, x < 0}}] // TraditionalForm

enter image description here

But as an Input instead of an Output.

Simply entering a brace ({) followed by a Matrix or Table after it doesn't work.

share|improve this question

closed as too localized by Michael E2, Artes, Mr.Wizard May 27 '13 at 18:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

How about Esc+pw+ESC –  HyperGroups May 27 '13 at 13:45
It's right there in the Piecewise details section reference.wolfram.com/mathematica/ref/Piecewise.html –  bill s May 27 '13 at 13:46
@HyperGroups typing Ctrl+, after this gives you grid boxes you can fill in. Such templates often live in the Classroom Assistant, this one lives under the Typesetting section. –  Martin John Hadley May 27 '13 at 13:48
@bills I think you should make an answer. There is not much more to add to it. –  Ali May 27 '13 at 17:07

1 Answer 1

up vote 3 down vote accepted

In the details section of the help file for Piecewise, there are instructions:

help file for Piecewise

It's always a good idea to check the "details" section of the help files, which can be reached quickly by hitting F1 while the cursor is on the command.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.