Polynomial roots tracker

This package allows to see how the roots continuously change from a polynomial to another.
393 Downloads
Updated 10 Feb 2011

View License

(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
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Polynomials in Help Center and MATLAB Answers
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!
Version Published Release Notes
1.0.0.0