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

Bảo Vy

Member
What is the output of the following code?
Code:
syms n;limit((1+1/n)^n,Inf,’right’)
A. Nan
B. Inf
C. Error
D. e(1)
 
Answer: d
Explanation: We cannot approach infinity from the right hand side. Hence MATLAB will show an error. If we had given the direction as left or if we had not given any direction, the answer would have been e(1).
 

Tìm kiếm

Back
Top