No BSD License  

Highlights from
resid2wp.m

2.0

2.0 | 3 ratings Rate this file 3 Downloads (last 30 days) File Size: 5.21 KB File ID: #26

resid2wp.m

by Bradley Burchett

 

14 Aug 1997

This file fixes (to a certain degree) the numerical problems with repeated roots in 'residue.m'.

| Watch this File

File Information
Description

This file fixes (to a certain degree) the numerical problems with repeated roots in 'residue.m'. Also, it will recognize repetitions of complex roots regardless of whether or not they can be sorted by '[p,i] = sort(-abs(v));'

I have tested it on polynomials up to 9th degree on Matlab 5.0.

MATLAB release MATLAB 5.2 (R10)
Tags for This File  
Everyone's Tags
complex, polynomials, residuem, roots
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
03 Sep 2007 Tim S.

incorrect results in calculating the residue of pole of multiplcity e.g. num=[2 1 3] and den=poly([2 2 2]) correct r=[2 9 13]; code needs to be improved :-)

31 Aug 2007 Tim S.

compare
>> [a,b,c]=residue(1,poly([1,1,1,-1,-1,-1]))
to
>> [a,b,c,d]=resid2wp(1,poly([1,1,1,-1,-1,-1]))
works in 2006a !

09 Oct 2005 Tom Hearn

Doesn't work. compare
>> [a,b,c]=residue(1,poly([1,1,1,-1,-1,-1]))
to
>> [a,b,c,d]=resid2wp(1,poly([1,1,1,-1,-1,-1]))

Contact us