 Then

When the angle, , is small and the adjacent sides, and , are of similar length, the right hand side of the standard form of the law of cosines can lose a lot of accuracy to numerical loss of significance.In situations where this is an important concern, a mathematically equivalent version of the law of cosines, similar to the haversine formula, can prove useful