function y = Q5(x,k) s = 1; for i = 1:9 f = roundk(x/(10-i), k); t = roundk(s * f, k); s = roundk(t + 1, k); end y = roundk(1/s, k); end %Result: Q5(5,4) = 0.006954