In any triangle, the sum of the interior angles is \(180^\circ\). Hence,
\[
A + B + C = 180^\circ
\]
This implies:
\[
A + B = 180^\circ - C
\]
Thus, we can write:
\[
\cos \left( \frac{A + B}{2} \right) = \cos \left( \frac{180^\circ - C}{2} \right) = \sin \left( \frac{C}{2} \right)
\]
Thus, the correct answer is option (3).