function b = myeuler3(n) % myeuler3(n) is an approximation of Euler's number using the Taylor % expansion of the exponential function up to order n b = sum(1./factorial(0:n));