You can verify this using Mathematica, Maple, Matlab, or your own C/C++/Python code. Again let me stress: Mathcad is absolutely atrocious software. I've seen the source, and it's not pretty. Avoid it like the plague.
Thirdly, to evaluate the sum in Matlab you can do something like the following:
Code:
% First declare and initialize a dummy variable
x = 0;
% Now perform the summation:
for i = 0:100
for j = 1:101
x = x + (i / j)^2 + log(sqrt(j));
end
end
This should leave you with the variable x holding the result. Note that this is neither a particularly efficient nor elegant way of computing such a sum.
Actually the mathcad result is correct. In matlab, log means ln, log10 means log.The answer shoehorn gives is for ln.
so the code is
% First declare and initialize a dummy variable
x = 0;
% Now perform the summation:
for i = 0:100
for j = 1:101
x = x + (i / j)^2 + log10(sqrt(j));
end
end
for i=1:3000
x(i)=-4+i/1000;
y(i)=-x^2-4*x-2;
end
for i=3000:5000
x(i)=-4+i/1000;
y(i)=abs(x);
end
for i=5000:8000
x(i)=-4+i/1000;
y(i)=2-exp(sqrt(x-1));
end
plot(x,y);