Experiment - 3 Objective: Date - 18/09/2024
Experiment - 3 Objective: Date - 18/09/2024
EXPERIMENT - 3
Objective – To determine roots of given polynomial equation using
MATLAB.
SOFTWARE REQURIED:-
1. MATLAB R2010a.
2. Windows 11.
THEORY:-
r = roots(p) returns the roots of the polynomial represented by the coefficients in p as a column
vector r. Input p is a vector containing n+1 polynomial coefficients, starting with the
coefficient of xn. For example, p = [3 2 -2] represents the polynomial 3x2+2x−2. A coefficient
of 0 indicates an intermediate power that is not present in the equation.
The roots function solves polynomial equations of the form p1x n+...+pnx+pn+1=0.
Polynomial equations contain a single variable with nonnegative exponents.
Calculations:
Calculations:
PRECAUTIONS:-
Never use the M-file name in the MATLAB function or command and vice versa.
Never use the number before file name.
Never use blank space in file name.