lstsq
Compute a least-squares solution to Ax ≈ b, finding the best approximate fit for overdetermined or inconsistent linear systems.
Instructions
Compute a least-squares solution to Ax ≈ b.
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>"
},
"name": "lstsq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| method | No | gelsd | |
| regularization | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||