x=1
term=1;
sum=term;
for i=1:1000
    term=term*x/i;
    sum=sum+term;
end
sum
