function b = myeuler2(n) % myeuler2(n) is an approximation of Euler's number using the Taylor % expansion of the exponential function up to order n c = 1; b = 1; for k = 1:n c = c/k; b = b + c; end