Increase the precision of the finding roots
Mostra commenti meno recenti
Hi I have written a m file in which I'm trying to find ROOTs of a polynomial of of 6'th degree.I do this in a cycle using "do" because a parameter in the coefficients of the polynomial have to change in each step and the ROOTs should be calculated and saved for further mathmatical calculations. The problem is that in this exact case of mine the real part of each root is very small so that matlab ignores them in some steps and doesnt ignore in other cases(by cases I mean change of that parameter).and this cause the results to oscillate.I know that this real part despite it's smallness is'nt zero. HOW CAN I INCREASE THE PRECISION IN THIS EXACT CASE? thanks for your attention.
Risposta accettata
Più risposte (1)
Andrew Newell
il 17 Nov 2011
0 voti
3 Commenti
Atta Oveisi
il 17 Nov 2011
Andrew Newell
il 17 Nov 2011
I'm just saying that if you don't have any compelling reason to write the m file yourself, you'd be better off using the MATLAB function.
Atta Oveisi
il 17 Nov 2011
Categorie
Scopri di più su Special Functions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!