Computation of the Magnus Series