Gistlib Logo

gistlib

find the roots of the equations x^5-3x^4+6x^2-5x+1=0 in matlab

main.m
% Coefficients of the polynomial equation
coefficients = [1, -3, 0, 6, -5, 1];

% Finding the roots of the polynomial equation
roots_of_equation = roots(coefficients);
disp(roots_of_equation);
193 chars
7 lines

similar matlab code snippets

plot a polynom with the roots [1,2.3] on the interval (-5,5) with 100 values along with the values of the polynom in the points x=[-pi, 0, e, sqrt(16)] represented by markers. in matlab
find the root of a second order polynomial in matlab
find the roots of a polynomial in matlab
least squares polynomial of degree n in matlab
least squares polynomial of degree 2 in matlab
find zeroes using secant line in matlab
least squares polynomial in matlab
write a user-defined function that adds or subtracts two polynomials of any order in matlab
find solutions of cubic equation in matlab
y = (2x^2)/((x-2)(x-6) in matlab

related categories

matlab
polynomial
roots

gistlibby LogSnag