Problem 1155. Find the solution of algebraic equation

Find the solution of algebraic equation of the form

an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0;

Input to the function is of the form : [an an-1 an-2 .....a2 a1 a0] :coef vector

eg: equation x^5-5=2 -> Input = [1 0 0 0 0 -5]

Solution Stats

28.13% Correct | 71.88% Incorrect
Last solution submitted on Feb 13, 2017

Problem Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!