factor
Factor any polynomial or rational expression over the rational numbers. Input a SymPy-compatible expression to get the factored result.
Instructions
Factor a mathematical expression over the rational numbers.
Args:
expression: SymPy-compatible polynomial or rational expression.
Examples: "x**3 - 6*x**2 + 11*x - 6", "x**4 - 1"
Returns:
Standard result dictionary containing the factored expression.
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": {
"expression": "<expression>"
},
"name": "factor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||