change rational_approximation assert to allow approximately-zero values