function y=u0(x)
    if(abs(x-pi)<1)
        y=1-abs(x-pi);
    else
        y=0;
    end
end