Tool
Python
Intermediate
40 min
Sparse eigenvalues with scipy.sparse.linalg.eigsh: the tones of a drum
Afterwards you can build a sparse matrix from a stencil, get its lowest eigenvalues and eigenvectors with eigsh and shift-invert, and check them on exact cases.