What does roots/ eig do exactly?
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Thomas Waljor
el 5 de Ag. de 2015
Comentada: James Tursa
el 5 de Ag. de 2015
I want to write a programm on Matlab, without using implemented functions. This programm should be similiar to the Matlab function roots. But I am not sure what roots does, is there any possibility to read something like a pseudo-code of roots or eig? Or is it possible to find .m file that fullfills this conditions?
Is roots simply using the QR decomposition with shifts ?
0 comentarios
Respuesta aceptada
Sean de Wolski
el 5 de Ag. de 2015
Editada: Sean de Wolski
el 5 de Ag. de 2015
>>edit roots
7 comentarios
James Tursa
el 5 de Ag. de 2015
By looking at the code for roots you have that answer. It constructs a matrix where the characteristic polynomial of that matrix is your polynomial. Then it uses eig to find eigenvalues of that matrix, which will be equal to the roots of the characteristic polynomial.
Más respuestas (0)
Ver también
Categorías
Más información sobre Linear Algebra 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!