n=0
tn=1;
total=tn;
for n=1:10
    tn=tn*x/n;
    totalOld=total
    total=total+tn;
    estError=n*tn;
    if total==totalOld
        break
    end
end
total
totalExact=exp(x)
