Writing a function with multiple "behaviours"
Tue, 07 Jan 2014 - 12:56 PM
Hello everyone, my first post around here, hopefully I’m writing in the correct subforum.
I’d just like to ask, is it possible to write a formula for a function, for example,
the heaviside function, like
f(x) = { 1, x >= 0
0, x < 0
with the (only) curly bracket scaling properly, depending on the number of rows I typed.
I had no idea what to search for, as you can judge from the sketchy thread title.
Thanks, FallenShard.
f(x)=left lbrace matrix{1#x>= 0##0#x<o} right none
The part ‘right none’ is for the missing right bracket.
The part ‘matrix’ is for nice alignment.
The part ‘lbrace’ is for the curly bracket, because { is the invisible grouping bracket, and the text \{ does not scale.