1.

The solve[] command can do which of the following things?(a) Produce the exact solution(b) Produce a symbolic solution(c) Produces exact roots(d) Produces complex rootsI got this question during an interview.The query is from Solving Equations in division MATLAB Basics of MATLAB

Answer»

Correct choice is (b) Produce a symbolic solution

Easy explanation: The SOLVE[] function is an inbuilt function to generate the solutions of ONE or more than one equations. But the result is always produced in symbolic form. So, even if the answer CONTAINS the value of square root of 5, solve[] will return the value as sqrt(sym(5)).



Discussion

No Comment Found

Related InterviewSolutions