Mathematical symbols in MATLAB

Minimising required brackets

 

The following expressions both have a value of 12.

> Type in the equivalent MATLAB expressions to obtain the correct answer using as few pairs of brackets as possible.

 

  1. (needs 1 pair of brackets)
  2. (needs 3 or 4 pairs of brackets)