how would i type in my fraction in the polynomial to find my real and complex roots
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    adriana resendez
 el 6 de Mzo. de 2015
  
    
    
    
    
    Respondida: Star Strider
      
      
 el 6 de Mzo. de 2015
               fx = x^5-((x^4)/2)-2x^3-x^2-3
roots = fx
0 comentarios
Respuesta aceptada
  Star Strider
      
      
 el 6 de Mzo. de 2015
        I expanded your function in the Symbolic Math Toolbox, and got the coefficient vector:
cfx = [1     -0.5       -2       -1        0       -3];
fxroots = roots(cfx)
produces:
fxroots =
       1.9710e+000 +             i
      -1.1131e+000 +654.8187e-003i
      -1.1131e+000 -654.8187e-003i
     377.6052e-003 +877.5463e-003i
     377.6052e-003 -877.5463e-003i
Note that the first root is real. It should be simply 1.9710, but since the others are complex, it is listed with a complex part for consistency. You could do all of this in the Symbolic Math Toolbox of course, but since you didn’t mention that you have access to it, I do not assume you do.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!