# Tag Info

Probably you accumulated rotations wrong. At each step, you have a working matrix $D$ that starts from $D=A$ and should converge to a diagonal matrix, and a matrix $Q$ that accumulates all rotations performed on $D$. Print after each step $\|QDQ^T - A\|$, and see where it stops being small.