Bird
0
0

What does the MATLAB function roots(p) return when p is a vector of polynomial coefficients?

easy📝 Conceptual Q1 of 15
MATLAB - Numerical Methods
What does the MATLAB function roots(p) return when p is a vector of polynomial coefficients?
AThe derivative of the polynomial
BThe roots (zeros) of the polynomial represented by <code>p</code>
CThe integral of the polynomial
DThe degree of the polynomial
Step-by-Step Solution
Solution:
  1. Step 1: Understand the input vector p

    The vector p contains coefficients of a polynomial in descending powers.
  2. Step 2: Understand the roots function

    The roots function calculates the values of x where the polynomial equals zero.
  3. Final Answer:

    The roots (zeros) of the polynomial represented by p -> Option B
  4. Quick Check:

    roots(p) = polynomial zeros [OK]
Quick Trick: roots() finds where polynomial equals zero [OK]
Common Mistakes:
  • Confusing roots() with derivative or integral functions
  • Thinking roots() returns polynomial degree
  • Assuming roots() returns coefficients

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More MATLAB Quizzes