필터 지우기
필터 지우기

How to calculate the coefficients of a non-polynomial?

조회 수: 6 (최근 30일)
Usman Saleem
Usman Saleem 2021년 1월 7일
댓글: Usman Saleem 2021년 1월 13일
I want to subtitute this expansion in an equation and want to equate the coefficients of powers of ϵ, so that i can solve them afterwards. But due to negative power of ϵ, the built-in function 'coeffs' does not work cause as an input it needs a polynomial.
syms E x0 x1 x2 y k
u1=[y x0 x1 x2];
UU=sum(subs(u1(1:4)).*subs(E^k,k,-1:2));
G=coeffs(collect(B(UU,E),E))
I get this error while doing so.
Error using symengine (line 59)
Expression is not a polynomial.
Error in sym/coeffs (line 38)
cSym = mupadmex('symobj::coeffs',p.s, args{:});
Any one knows how to fix this?
Thanks
  댓글 수: 12
J. Alex Lee
J. Alex Lee 2021년 1월 13일
check out the function "children"
Usman Saleem
Usman Saleem 2021년 1월 13일
I will check out the function and thank you for your help.

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

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