🧮 Pythagorean Theorem Calculator

Compute sides of a right triangle (a^2 + b^2 = c^2).

📐 计算公式
勾股定理三边互求:缺 a 时 a=√(c²−b²)、缺 b 时 b=√(c²−a²)、缺 c 时 c=√(a²+b²);求直角边时须 c>该直角边,否则提示「斜边必须大于直角边」。校验:a、b、c 任一已填值必须是大于 0 的有限数值,负数、零、非数字直接报错;三边齐全时先校验任意两边之和大于第三边,再用 |√(a²+b²)−c|<1e−9 判断是否满足勾股定理;∠A=atan(a÷b)×180÷π、∠B=90°−∠A。

输入直角三角形任意两条边,自动计算第三边和锐角。

公式:a² + b² = c²(c 为斜边)。输入任意两边即可求第三边。

Formula & Standard References

Item Formula / Note Source / Standard
Pythagorean theorem a^2 + b^2 = c^2, where c is the hypotenuse Euclid, Elements, Book I, Prop. 47; Zhoubi Suanjing (Chinese gnomon text)
Converse If a^2 + b^2 = c^2, the triangle is right-angled Euclid, Elements, Book I, Prop. 48
Pythagorean triples Positive integer triples with a^2 + b^2 = c^2, e.g. 3-4-5 Euclid, Elements, Book X, generating formula
Euclid formula For m > n, take a = m^2 - n^2, b = 2mn, c = m^2 + n^2 Euclid, Elements, Book X
⚠️ 使用说明与注意事项