How to set the terminal condition of the Matlab built-in function roots?

2 visualizaciones (últimos 30 días)
like this.

Respuesta aceptada

Steven Lord
Steven Lord el 29 de Jul. de 2020
You don't. roots builds the companion matrix and computes the eigenvalues of that matrix.
I can't see the context before that section of that paper or assignment but I'm guessing the process was to repeatedly create a polynomal coefficient vector, use roots to solve it, and stop the repetition if one / the smallest of the roots of the current coefficient vector became "small enough." That uses the output of roots as part of the temination criteria for the process, but it doesn't try to control roots itself.

Más respuestas (0)

Categorías

Más información sobre Function Creation 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