Matrix Determinant
matrix_determinantCalculate the determinant of a square matrix from a 2D list to evaluate invertibility, scaling, and other linear algebra properties.
Instructions
Calculate the determinant of a square matrix.
Note: Requires NumPy. Raises ValueError if NumPy is unavailable.
Examples: matrix_determinant([[1, 2], [3, 4]]) matrix_determinant([[1, 0, 0], [0, 1, 0], [0, 0, 1]]) # Identity matrix
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 | 2D list of numbers representing a square matrix. Each inner list is a row. Example: [[1, 2], [3, 4]] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| topic | Yes | ||
| difficulty | Yes | ||
| determinant | Yes |