function t = sqrtsq( x, p ) 

t=x;

for i=1:p
    t = t.^2;
end

for i=1:p
    t = sqrt( t );
end

end
