What is the error in the following code? [code]limit(x^2,y,1,'left')[/code]

What is the error in the following code?
Code:
limit(x^2,y,1,'left')
A. The function
B. The symbolic argument
C. Left should’ve been without
D. No error
 
Answer: b
Explanation: Our function does not have the character y. Hence, when we introduce y as an argument, MATLAB will show an error. If we had written limit(x^2,x,1,’left’)- the answer would’ve been 1.
 

Tìm kiếm

Back
Top