Fix :math: markup in factor() documentation