function t = sqsqrt( x, p ) 

t=x;

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

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

end
