Approximation properties of Jacobi's algorithm