Certain MATLAB functions operate essentially on scalars, but operate
element-wise when applied to a matrix. The most common such functions
are:
sin cos tan asin acos atan sinh cosh tanh exp log(natural log) rem(remainder) abs sqrt sign round floor ceil |