m_exp_sum function

Computes exp(Sx) via series representation