Sum to Integral