Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Virtual Book > Core Language > Building Up Calculations > The Four Kinds of Bracketing in Mathematica >

The Four Kinds of Bracketing in Mathematica

There are four kinds of bracketing used in Mathematica. Each kind of bracketing has a very different meaning. It is important that you remember all of them.
(term)parentheses for grouping
f[x]square brackets for functions
{a,b,c}curly braces for lists
v[[i]]double brackets for indexing (Part)

The four kinds of bracketing in Mathematica.

When the expressions you type in are complicated, it is often a good idea to put extra space inside each set of brackets. This makes it somewhat easier for you to see matching pairs of brackets. is, for example, easier to recognize than .
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF