What is the output of the following code? [code]syms x;limit((((Inf*x)-cos(x))/(x^2)),x,0)[/code]

Stasenndb

New member
What is the output of the following code?
Code:
syms x;limit((((Inf*x)-cos(x))/(x^2)),x,0)
A. limit(Inf/x, x, 0)
B. Inf
C. Nan
D. Error
 
Answer: a
Explanation: We observe that the numerator is Infinite and the denominator tends to 0. Hence the function is of the form ∞/0. This is an inbuilt form in MATLAB and MATLAB returns option a whenever it faces such a function. The result is of symbolic class.
Output: limit(Inf/x, x, 0)
 

Tìm kiếm

Back
Top