Created
May 29, 2021 21:32
-
-
Save silgon/dae7f89a01b75c7568a5c96d755d3fab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import * | |
from sympy.abc import k | |
B=Matrix([[1, .5], [.5, 1]]) | |
print(B.eigenvals()) | |
A=Matrix([[1+k, .5], [.5, 1+k]]) | |
print(A.eigenvals()) | |
A=Matrix([[1+k, .5, 1], [.5, 1+k, 1],[.5, 1, 1+k]]) | |
print(A.eigenvals()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment