Let a, b, and c be the lengths of the sides of a triangle.
The theorem may be written more symmetrically using signed lengths of segments, in other words the length AB is taken to be positive or negative according to whether A is to the left or right of B in some fixed orientation of the line.