Code covered by the BSD License  

Highlights from
Polynomial roots tracker

Be the first to rate this file! 1 Download (last 30 days) File Size: 2.69 KB File ID: #30364
image thumbnail

Polynomial roots tracker

by Emanuele Natale

 

10 Feb 2011

This package allows to see how the roots continuously change from a polynomial to another.

| Watch this File

File Information
Description

(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.

Acknowledgements

Trajectories Of Eigenvalues inspired this file.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
complex plane, plot, polynomial, random polynomials, roots
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us