📐 Triangle Calculator

Triangle Calculator - Compute perimeter, area (Heron) and angles from three sides, with type detection. Free, browser-only.

📐 工作原理与说明
三角形求解(SSS 已知三边)
构成条件:任意两边之和 > 第三边(a+b>c、a+c>b、b+c>a)
海伦公式:半周长 s = (a+b+c)/2,面积 = √[s(s−a)(s−b)(s−c)]
余弦定理求内角:cos A = (b²+c²−a²) ÷ (2bc),A = arccos(…)×180/π
类型判定:任一内角 = 90° 为直角三角形|全 <90° 锐角|否则钝角
三内角之和恒为 180°
按三角形已知条件求解边长、角度、面积与周长。
  • 内角和:三角形三个内角之和恒为 180°。
  • 勾股定理:直角三角形满足 a² + b² = c²,c 为斜边。
  • 海伦公式:令 s=(a+b+c)/2,面积 = √(s(s−a)(s−b)(s−c)),已知三边即可求面积。
  • 正余弦定理:a/sinA = b/sinB = c/sinC;c² = a² + b² − 2ab·cosC。

Formula & Standard References

Item Formula / Note Source / Standard
Law of cosines c^2 = a^2 + b^2 - 2ab cos(C) Euclidean geometry
Law of sines a/sin(A) = b/sin(B) = c/sin(C) = 2R Euclidean geometry
Triangle inequality sum of any two sides exceeds the third Euclidean geometry
⚠️ 使用说明与注意事项

📋 常用公式

量公式
半周长 s(a+b+c)/2
面积√[s(s−a)(s−b)(s−c)]
角 Aarccos((b²+c²−a²)/(2bc))