num2str() fails to convert a sum to a string. In the sum(1) example "syntax is incorrect", in the sum(4) example "n is not defined".
Edit: This is now BTS issue SS-43

Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx