Slope Calculator
slope_calculatorCompute slope, y-intercept, slope-intercept and point-slope equations, distance, midpoint and line inclination from two distinct points, including vertical lines.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x1": 0,
"x2": 1,
"y1": 1,
"y2": 2
},
"name": "slope_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | x1 coordinate, in the common length unit (±10^9). | |
| x2 | Yes | x2 coordinate, in the common length unit (±10^9). | |
| y1 | Yes | y1 coordinate, in the common length unit (±10^9). | |
| y2 | Yes | y2 coordinate, in the common length unit (±10^9). | |
| unit | No | Common length unit for every coordinate or side; area uses its square. | units |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||