Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

matlab work There are three ways to calculate the number e, also known as Euler's number:* the bigger the value n, the better the approximation.

matlab work

image text in transcribed

There are three ways to calculate the number e, also known as Euler's number:* the bigger the value n, the better the approximation. n does not have to be an integer.* OR (1 + n)n - the smaller the value n, the better the approximation. In this case make n be- Note: The ! is factorial there is a function in MATLAB called factorial that will calculate it for you. But for your own reference, k! is k * (k-1) * (k-2). all the way down to 1+ Note: exp (1) is e to the 1st power which is e. MATLAB doesn't have an e variable like it does pi.' a) For the first method, find the first integer n where the approximation is within 0.01 of MATLAB's version of e b) For the second method, find the smallest value of n-1/m where the approximation is within 0.01 of MATLAB's version of e. Make m be an integer.- c) Keep summing 1/k! until the approximation is within 0.01 of MATLAB's version of e. Self-check:^ My e version (1+1)An: 2.718181832191, MATLAB e: 2.718281828459, My e version (1+n)A(1): 2.718181832191, MATLAB e: 2.718281828459, +' My e version factorial: 2.71XXXX9 68254, MATLAB e: 2.718281828459, + n is 1xx91+ n is 0 .000073XX8103, m is 1XX91+ 8 iterations, k is 7+

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions