function res = squarerootV3(vec)
res = zeros(size(vec)); %! The output has the same number of elements as the input
for k=1:length(vec)  
   res(k) = squarerootV2( vec(k) ); %! Version 2 for each element singly
end
