Compute cos A for A = {{ 0, pi }, {-pi, 0 }}