What is the output of the following code? [code]limit((1 + 1/n)^n,n=Inf)[/code]

What is the output of the following code?
Code:
limit((1 + 1/n)^n,n=Inf)
A. e
B. exp(1)
C. Syntactical Error
D. Cannot be determined
 
Answer: c
Explanation: The correct syntax would be to simply state the limiting value as Inf. This is for new versions of MATLAB. The above code would result in a syntactical error.
 

Tìm kiếm

Back
Top