The law of cosines is a generalization of the Pythagorean theorem that can be used to determine the length of any side of a triangle if the lengths and angles ...