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.
Cite As
Emanuele Natale (2024). Polynomial roots tracker (https://www.mathworks.com/matlabcentral/fileexchange/30364-polynomial-roots-tracker), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Elementary Math > Polynomials >
Tags
Acknowledgements
Inspired by: Trajectories of eigenvalues
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |