Borrar filtros
Borrar filtros

i need to find the roots of the polynomial

1 visualización (últimos 30 días)
ahmed allaheani
ahmed allaheani el 14 de Nov. de 2017
Comentada: Walter Roberson el 14 de Nov. de 2017
>> p=[1 8 22 24 9];
>> roots(p)
  • for some reason i get this error message*
Error in roots (line 32)
r = zeros(0,1,class(c));
can anyone help please????
  1 comentario
Walter Roberson
Walter Roberson el 14 de Nov. de 2017
Please show the complete error message. Also please show
which roots

Iniciar sesión para comentar.

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 14 de Nov. de 2017
in my MATLAB:
>> format longg
>> p=[1 8 22 24 9];
roots(p)
ans =
-3.00000009061347 + 0i
-2.99999990938653 + 0i
-1 + 6.12790365933349e-09i
-1 - 6.12790365933349e-09i
>>

Más respuestas (0)

Categorías

Más información sobre Polynomials en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by