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

Trang Esther

New member
What is the output of the following code?
Code:
syms n;limit(n-1,n,Inf,’right’)
A. Inf
B. Nan
C. 0
D. Error
 
Answer: d
Explanation: We cannot approach the limiting value Infinity from the right-hand side. So, MATLAB will return an error while trying to run the code. The answer would have been Inf if the limiting value was approached from the left hand side.
 

Tìm kiếm

Back
Top