Fortune Telling Collection - Comprehensive fortune-telling - How to write matlab calculation

How to write matlab calculation

To calculate this limit problem with matlab, three commands are needed, namely limit () limit command, sqrt () root command and symsum () sum command.

Computational code

syms k n

limit(sqrt(symsum(k, 1,n))-sqrt(symsum(k, 1,n- 1),n,inf)

vpa(ans)

Calculation result