clear;
x1=randn(1000,1);
x2=randn(1000,1);
z1=x1./(1+abs(x1));
z2=x2./(1+abs(x2));
z=[z1,z2];
Z=max(z,[],2);
mean(Z<=.5);
