 In Euclidean geometry, for right triangles the triangle inequality is a consequence of the Pythagorean theorem, and for general triangles, a consequence of the law of cosines, although it may be proven without these theorems.The inequality can be viewed intuitively in either or .The figure at the right shows three examples beginning with clear inequality (top) and approaching equality (bottom).