function f = fex3(x)

  f=ones(length(x),1);
  f(x>1/pi)=-1;
  f(abs(x-1/pi)<eps)=0;

end
