Polynomial roots tracker
(Comments in the files are in italian only, sorry.)
The main file is 'pertpoly.m' that define the funcion pertpoly(P1,P2,T).
This function plot in the complex plane the trajectories of the roots of the polynomial t*P1+(1-t)*P2, whit t ranging from 0 to 1. The input T only define how smooth the trajectories are.
'randpoly.m' contains the function randpoly(n,kP1,kP2), that writes in csv files the real and imaginary part of the coefficients of two polynomials of degree n. The coefficients are integer ranging from -kP1 to kP1 for the first polynomial and analogously for the second.
With [P1,P2]=readpoly in 'readpoly.m' the polynomials in the files prealP1.csv, pimgP1.csv, prealP2.csv and pimgP2.csv are read.
Last but not the least, polyrandpert(deg,thick1,thick2,N) contained in 'polyrandpert.m', is a function that first calls randpoly(deg,thick1,thick2), then calls readpoly allocating P1 and P2, and finally runs pertpoly(P1,P2,N).
Have an nice trip studying how the roots change from a specified polynomial to another.
Citation pour cette source
Emanuele Natale (2026). Polynomial roots tracker (https://fr.mathworks.com/matlabcentral/fileexchange/30364-polynomial-roots-tracker), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Mathematics > Elementary Math > Polynomials >
Tags
Remerciements
Inspiré par : Trajectories of eigenvalues
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
