What will be the output of the following code? [code]syms x;limit('(sin(x)/x)',x,Inf,'left')[/code]

What will be the output of the following code?
Code:
syms x;limit('(sin(x)/x)',x,Inf,'left')
A. 0
B. Nan
C. Inf
D. 1
 
Answer: a
Explanation: We will get a warning since we have given our function as string input to our limit command. But the output will be 0. This is because as x approaches infinity, the function will approach zero because sin(x) has a finite value though we are not sure of the value it still is a finite value.
Output: 0
 

Tìm kiếm

Back
Top