matrix_eigenvalues
Calculate the eigenvalues of a matrix using symbolic algebra. Input a matrix key to obtain eigenvalues expressed as a dictionary mapping values to their multiplicities.
Instructions
Calculates the eigenvalues of a matrix using SymPy's eigenvals method.
Args:
matrix_key: The key of the matrix to calculate eigenvalues for.
Example:
# Create a matrix
matrix_key = create_matrix([[1, 2], [2, 1]])
# Calculate its eigenvalues
evals_key = matrix_eigenvalues(matrix_key)
Returns:
A key for the eigenvalues expression (usually a dictionary mapping eigenvalues to their multiplicities).
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_key": "<matrix_key>"
},
"name": "matrix_eigenvalues"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix_key | Yes |