Law_of_Cosines
Provedcosine-functionlaw-of-cosinesnamed-theoremsproofwikitriangles
In a triangle with sides a, b, c opposite angles A, B, C: c^2 = a^2 + b^2 - 2ab cos(C)
Preamble
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic import Mathlib.Tactic
Formal statement
theorem Law_of_Cosines (a b C : ℝ) : (a ^ 2 + b ^ 2 - 2 * a * b * Real.cos C) = (a - b * Real.cos C) ^ 2 + (b * Real.sin C) ^ 2 := by sorry
Source