Law of cosines . The power of the point with respect to the circle is equal to both and . Therefore, which is the law of cosines. Using algebraic measures for line segments (allowing negative numbers as lengths of segments) the case of obtuse angle () and acute angle () can be treated simultaneously. By using the law of sines and knowing that the angles of a triangle must sum to 180 degrees, we have the following system of equations (the three unknowns are the angles): Then, by using the third equation of the system, we obtain a system of two equations in
Internal and external angles simple polygon and a line extended from an adjacent side. The interior angle concept can be extended in a consistent way to crossed polygons such as star polygons by using the concept of directed angles. In general, the interior angle sum in degrees of any closed polygon, including crossed (self-intersecting) ones, is then given by 180("n"–2"k")° where "n" is the number of vertices and the non-negative number "k" is the number of total revolutions of 360° one undergoes walking around the perimeter of the polygon. In other words, 360"k"° represents the sum of all the exterior angles. For example, for