Skip to main content
Glama
sdiehl
by sdiehl

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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
matrix_keyYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sdiehl/sympy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server