trying to calculate the error of eigen functions, not fully tested