pythagorean theorem
pythagorean_theoremSolve for any side of a right triangle using the Pythagorean theorem (a² + b² = c²). Provide any two of the three sides (a, b, c) and the missing side is computed. Also returns the triangle area (0.5 * a * b), perimeter, and confirms it is a right triangle. Side c is always the hypotenuse. Fundamental to surveying, construction (squaring corners), navigation (distance calculations), physics (vector decomposition), and 3D graphics. Chain with slope_calc for coordinate geometry or square_root for simplified radical answers.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pythagorean_theorem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Length of side a (leg) | |
| b | No | Length of side b (leg) | |
| c | No | Length of side c (hypotenuse) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Length of side a | |
| b | Yes | Length of side b | |
| c | Yes | Length of side c (hypotenuse) | |
| area | Yes | Area of the right triangle (0.5 * a * b) | |
| perimeter | Yes | Perimeter of the triangle (a + b + c) | |
| is_right_triangle | Yes | Always true when computed from two sides |