matrix_determinant
Computes the determinant of a square matrix from row data and returns the numeric result, aiding linear algebra and matrix calculations.
Instructions
Computes the determinant of a square matrix.
Args: matrix: A square matrix as a list of rows.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> matrix_determinant([[1, 2], [3, 4]]) {'result': -2.0}
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": {
"matrix": "<matrix>"
},
"name": "matrix_determinant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix | Yes |