1.

What is the code to solve limx→1(logx)^logx?(a) syms x;limit(‘log(x)^(log(x))’,x,1)(b) limit(‘log(x)^(log(x))’,x,1)(c) syms x;limit(log(x)^(log(x)),x,1)(d) Cannot be solvedThe question was asked at a job interview.My question is based upon Limits topic in chapter Beyond the Basics of MATLAB

Answer» RIGHT option is (c) syms x;limit(LOG(x)^(log(x)),x,1)

To elaborate: We should not give the function as an input to the limit command as a string. It will generate a warning but GIVES an output.We have to DECLARE our variables as symbolic before placing our function as an argument to the limit command.


Discussion

No Comment Found

Related InterviewSolutions