MATLAB: Could someone explain what the code means

MATLABsumwhile loop

s = 0;
t = Inf;
n = 0;
while s ~= t
n = n+1;
t = s;
s = s + 1/n^4;
end
s

Best Answer

1/1^4 + 1/2^4 + 1/3^4 + 1/4^4 + 1/5^4 + 1/6^4 and keep going adding values until the number stops changing (which will happen because the values start getting too small to individually make a difference)