function f = fex2(x)

  f=ones(length(x),1);
  f(x>1/pi)=-1;

end
