script to evaluate approximation errors