# creating an array

Printable View

• August 24th 2011, 06:22 PM
wik_chick88
creating an array
i want to create an array that looks as follows:
$T(x,0) = 0, 0b$
with a curly bracket joining all 3 conditions on the left, however in the latex tutorial pdf the code given doesn't work! it says invalid function when i attempt it
• August 24th 2011, 06:41 PM
Ackbeet
Re: creating an array
Quote:

Originally Posted by wik_chick88
i want to create an array that looks as follows:
$T(x,0) = 0, 0b$
with a curly bracket joining all 3 conditions on the left, however in the latex tutorial pdf the code given doesn't work! it says invalid function when i attempt it

Note that
[TEX]T(x,0)=\begin{cases}0,&\quad 0<x<a\\ T_{0},&\quad a<x<b\\ 0,&\quad x>b\end{cases}.[/TEX]

produces

$T(x,0)=\begin{cases}0,&\quad 0b\end{cases}.$
• August 25th 2011, 03:26 AM
CaptainBlack
Re: creating an array
Quote:

Originally Posted by wik_chick88
i want to create an array that looks as follows:
$T(x,0) = 0, 0b$
with a curly bracket joining all 3 conditions on the left, however in the latex tutorial pdf the code given doesn't work! it says invalid function when i attempt it

Another way

[TEX]T(x,0)= \left\{\begin{array}{ll}0,&0<x<a\\T_0,&a<x<b\\0,& x>b \end{array} \right.[/TEX]

$T(x,0)= \left\{\begin{array}{ll}0,&0b \end{array} \right.$