a script for testing eigenproblem