余弦定理求边计算器
输入两边a、b及其夹角C(度),按 c = √(a²+b²−2ab·cosC) 计算第三边,适用于非直角三角形求解。
Law of Cosines Calculator
Compute the third side of a triangle from two sides and the included angle.
📐 计算公式
c² = a²+b²−2ab·cosC
输入两边 a、b 及其夹角 C(度),求第三边 c。
📌 计算说明
- C=90° 退化为勾股定理。
- 3,4,90° → 5。
📚 深度解析:余弦定理
💡 常见使用场景
求第三边
a=5,b=7,夹角 C=60°:c²=5²+7²-2×5×7×cos60°=25+49-70×0.5=39,c=√39≈6.245。
求角度
三边 a=3,b=4,c=5:cosC=(a²+b²-c²)/(2ab)=(9+16-25)/24=0,故 C=90°,印证直角三角形。