7.4: Cosine Rule