This M-file calculates all the real roots of the given polynomial. It calls syn_division, a synthetic division function, and derivate, differentiation function.
There exist a build in function to compute the roots of polynomial in Matlab already (type help roots). What if you want to do another nonlinear function and not a polynomial?
Please I need a Matlab code to iterate this function urgently
Det (I - H*Bdiag(f+g)B')= 0 ; where I=Identity matrix, H=3 by 3 matrix,B=3 by 2 matrix,B'=B transpose while (f+g) is 2by 2 matrix.
find polynomial roots through polynomial evaluation is not numerically stable. For example, consider the polynomial which has roots at 1,2,3,4,5,6,7,8,9,10,11,12. The coefficients of this polynomial can be obtained by c=poly(1:12); then test this code:
newton(poly(1:12),1,1e-6,100)
It can only detect roots 1:9, not 10, 11, and 12.
MATLAB already has function, roots to find all roots of a polynomial. It calculates the eigenvalues of the companion matrix of the polynomial, hence is stable. Therefore, there is no any reason one should use this code.
18 Feb 2008
tien quach
12 Feb 2008
Sohail iqbal
Works perfectly!
22 Jan 2008
enes yigitbas
good work. thanks a lot...
25 Sep 2007
Jimmy Banker
it always say error
Error in ==> syn_division at 6
order_fun=size((coeff_function),2);
17 Sep 2007
Mihon Honda
Very interesting!! Your algorithm is clean and worthy!
Is there a reason why do you create a m file derivate? Can't u just use the polyder function? Or are there limitations?
15 Sep 2007
shiran jaya
hi every one .. plz help me to develop my matlab knowledge. also i am a beginner for
matlab and it is pleaser to me joining with you.
tanks .....
08 Sep 2007
john kan
19 Aug 2007
Sanjay Malakar
08 Aug 2007
ooi heng
can u let me know how to use, when i simulate got error, URGENT!
07 Aug 2007
adrian pramanta
13 Jul 2007
ddt tio
goood code
28 Jun 2007
Qu Suhan
very useful!
02 May 2007
eeee weew
ewthays good
22 Apr 2007
chiali lotfi
its butiful
11 Apr 2007
thamer hamad
thank you
19 Mar 2007
Eric Bowman
very helpful, thank you
15 Mar 2007
prithvi gopinath
great work.. thanks a lot. i need an example of m-r method in matlab to solve power system analysis problems.
thank you
03 Mar 2007
Haomin Zhang
Thank you for your work
01 Mar 2007
jeua jea
good
23 Feb 2007
Hans Andrew
Very Useful in Power Flow Analysis, i hope i can have it. Thank you very much.