8th degree polynomial numerical instability

조회 수: 11 (최근 30일)
Houman R
Houman R 2013년 3월 7일
hi there, I have a piece of my code where I form an 8th degree polynomial and find its roots via the "root" command. The problem is that the roots are not always correct. Basically for some polynomials the roots are all very close to zero. However if I slightly perturb my input values that eventually form the polynomial i do get the solution. I feel like there is some kind of numerical instability in this polynomial. And looking at it numerically the coefficients are wildly different. Some in the order of 10^-20 and some 10^20. I know that's a recipe for numerical instability, but i dont know what to do about it! any suggestions would be appreciated.
thanks in advance ,
H

채택된 답변

Sean de Wolski
Sean de Wolski 2013년 3월 7일
편집: Sean de Wolski 2013년 3월 7일
My suggestion is avoid any polynomial with degree greater than three or four. They are highly unstable and aren't actually modelling any physical process at this point. What are you trying to do? There is probably (i.e. definitely) a better fitting tool for whatever you are doing?
  댓글 수: 3
Sean de Wolski
Sean de Wolski 2013년 3월 7일
We need a little more detail about what you're actually doing. Can you show us some data and expected results? Have you looked at splines or other curves?
Houman R
Houman R 2013년 3월 7일
thank you for your answer. I can not provide more context without significantly expanding the scope of the question. I think I will try to think of a way of avoiding the 8th degree polynomial. And that means going back to the drawing board. I thank you for your response.
H

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by