|
|
| File Information |
| Description |
A given polynomial with multiple roots is solved by the routine
Z = polyroots(p), where
Input: p polynomial coefficient vector, real or complex.
Output: Z root-multiplicity pairs.
The MATLAB source code is very compact, using only basic MATLAB built-in functions, and existing double precision.
A short routine p = polyget(A) is also provided for creating a test polynomial coefficient vector.
This simple routine gives amazingly the expected results for test polynomials of very high degree and multiplicity, such as
p(x) = (x -123456789)^9876
p(x) = (x^8-1)^1000
p(x) = (x^100-1)^100
p(x) = (x^6 -1) *(x^5 -1)^2*(x^4 -1)^3*(x^3 -1)^4*(x^2 -1)^5*(x -1)^6
p(x) = (x-1+2i)^9 *(z+3-4i)^8 *(z-5-6i)^7
For detail description, please refer to
F.C. Chang, "Solving multple-root polynomials" IEEE Antennas and Propagation Magazine, Vol.51, No.6, pp. 151-155, Dec. 2009.
Or get a pdf file by e-mail from fcchang007@yahoo.com.
|
| MATLAB release |
MATLAB 6.5 (R13)
|
| Zip File Content |
|
| Other Files |
license.txt, polyget.m, polyroots.m, polyroots_examples.doc, polyroots_examples.m
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 23 Oct 2009 |
Update the m-file, the very small roots can thus be solved. |
| 04 Jan 2010 |
Update m-file -- improve help description |
| 26 Feb 2010 |
Update the m-file to speed up operations. Also present 17 typical examples for test polynomials in MATLAB script file. |
| 09 Mar 2010 |
add some examples |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com