function y = sim9_halfcircle_1param(u)

offset = u(3);
r = u(2);
x = u(1) - r - offset;

if(x > r)
    x = r;
end;

if(x < -r)
    x = -r;
end

y = sqrt(r*r - x*x);