solve_quadratic
Computes the discriminant and real or complex roots for a quadratic equation ax^2 + bx + c = 0; requires a != 0.
Instructions
Solve a*x^2 + b*x + c = 0 and return its roots.
Reports the discriminant and the (real or complex) roots. Requires
a != 0; use a linear solve otherwise.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"a": "<a>",
"b": "<b>",
"c": "<c>"
},
"name": "solve_quadratic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| c | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||