Carry out calculations involving brackets.