using lapack's DSYEVR to calculate eigenvalues of the obtained tridiagonal matrix and prints correct and approximated eigenvalues