필터 지우기
필터 지우기

function of roots

조회 수: 2 (최근 30일)
Dwyane  Wade
Dwyane Wade 2011년 8월 15일
I have another problem it says:
give the function whose roots are 4, -3, -2, 1/5 and 0.
should I use poly(x) or roots(x)?
  댓글 수: 2
Jan
Jan 2011년 8월 15일
Does this question concern MATLAB? As far as I can see the polynomial with the shown roots can be created manually in some seconds.
Walter Roberson
Walter Roberson 2011년 8월 15일
According to the poly() documentation, it uses eigenvalues. It says,
It is possible to prove that poly(A) produces the coefficients in the characteristic polynomial of a matrix within roundoff error of A. This is true even if the eigenvalues of A are badly conditioned. The traditional algorithms for obtaining the characteristic polynomial, which do not use the eigenvalues, do not have such satisfactory numerical properties.

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

채택된 답변

Walter Roberson
Walter Roberson 2011년 8월 15일
roots() is to find the roots of a polynomial that has the given coefficients. The opposite of it is poly.
This is described right in the documentation, http://www.mathworks.com/help/techdoc/ref/poly.html

추가 답변 (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