This script can be pasted into the Eigenmath app.