function s = MySqrt(A)
% A is a positive real scalar
% s is an approximation to its square root

L = A; W = 1;
for k=1:10
L = (L+W)/2;
W = A/L;
end
s = L;