<Dd> c 2 = a 2 + b 2 − 2 a b cos ⁡ γ, (\ displaystyle c ^ (2) = a ^ (2) + b ^ (2) - 2ab \ cos \ gamma,) </Dd> <P> where γ denotes the angle contained between sides of lengths a and b and opposite the side of length c . </P> <P> The law of cosines generalizes the Pythagorean theorem, which holds only for right triangles: if the angle γ is a right angle (of measure 90 ° (degrees), or π / 2 radians), then cos γ = 0, and thus the law of cosines reduces to the Pythagorean theorem: </P> <Dl> <Dd> c 2 = a 2 + b 2 . (\ displaystyle c ^ (2) = a ^ (2) + b ^ (2).) </Dd> </Dl>

How is the law of cosines related to the pythagorean theorem
find me the text answering this question