Question
Predicted output: (b + (b² - 4*a*c)(½))/(2*a)
(b - (b² - 4*a*c)(½))/(2*a)
Code: solve (b*x² + c*x + a == 0)
Present output: -(c + (c² - 4*a*b)(½))/(2*b)
-(c - (c² - 4*a*b)(½))/(2*b)
a.
Predicted output is same as present output after math magic
b.
solve(a*x² + b*x + c == 0)
c.
vpa(solve(a*x² – b*x + c == 0))
d.
solve(a*x² – b*x + c == 0)
Posted under MATLAB
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Find the error in the following code?
Similar Questions
Discover Related MCQs
Q. What happens if dsolve does not return any numerical solution?
View solution
Q. If solve does not return any solution, what does it imply?
View solution
Q. Vectors depend upon brackets while scalars don’t.
View solution
Q. To see the sub-matrix with aᵢⱼ for 2<=i<=4 and 1<=j<=2 of a matrix a, of order 5*6, which code is used?
View solution
Q. Which code shows the use of ellipsis in MATLAB?
View solution
Q. What is the symbol used to evaluate the transpose of a vector?
View solution
Q. What is the advantage of MATLAB over other computing software with matrix dimensions?
View solution
Q. What is the function used to multiply a matrix, A, with itself n times?
View solution
Q. Which operator set is used for left and right division respectively?
View solution
Q. If A and B are two matrices, such that a./b=b.\a, what is concluded?
View solution
Q. If a./b=(b./a)ᵀ, what can be concluded about the matrices a and b?
View solution
Q. What is the difference between a[] and a{}?
View solution
Q. All matrices are vectors but all vectors are not matrices in MATLAB.
View solution
Q. If the dimensions of vectors don’t match, the plot command will always give an error.
View solution
Q. What is the name of a primary function?
View solution
Q. Predominantly, what are the two kinds of errors in MATLAB programs?
View solution
Q. If the program demands evaluation of multiple, only decimal, values of the same function, what is the better way amongst the following?
View solution
Q. What are persistent variables?
View solution
Q. Variables need to have same name while being passed from the primary function to the sub-function.
View solution
Q. Which command can be used for single step execution in debugging mode?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond MATLAB? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!