from matplotlib.numerix import *
from numarray import *
from pylab import plot, subplot, legend, axis, xlabel, ylabel, text, show
Error.setMode(all=None, overflow='warn', underflow='ignore', dividebyzero='warn', invalid='warn')
import LinearAlgebra as la

e = 0.0001
n = arange(1,100001)
p = 1 - (1-2*e)**n
plot(n,p)
axis([0,n[-1],0,1.2])
xlabel('number of dimensions')
ylabel('percentage of volume')
text(0.8*n[-1], 1.1, r'$\epsilon=0.0001$')
show()
