fork download
  1. expr = '\frac{1}{32}e^{-5\jmath\theta} + \frac{5}{32}e^{3\jmath\theta} + \frac{5}{16}e^{\jmath\theta} + \frac{5}{16}e^{-\jmath\theta} + \frac{5}{32} e^{-3\jmath\theta} + \frac{1}{32}e^{-5\jmath\theta}'
  2. com = expr.split(' + ')
  3. print(com)
Success #stdin #stdout 0.02s 28520KB
stdin
Standard input is empty
stdout
['\x0crac{1}{32}e^{-5\\jmath\theta}', '\x0crac{5}{32}e^{3\\jmath\theta}', '\x0crac{5}{16}e^{\\jmath\theta}', '\x0crac{5}{16}e^{-\\jmath\theta}', '\x0crac{5}{32} e^{-3\\jmath\theta}', '\x0crac{1}{32}e^{-5\\jmath\theta}']