The cosine addition and subtraction formulas on non-abelian groups | Synapse