Compute all third degree monomials out of a given vector

조회 수: 3 (최근 30일)
Mohamed Abdalmoaty
Mohamed Abdalmoaty 2019년 5월 30일
편집: Matt J 2019년 6월 4일
Suppose you are given a vector
How can one effieciently construct a vector containing all third degree monomials of the vector entries? That is a vector of dimension containing the entries .
  댓글 수: 5
Mohamed Abdalmoaty
Mohamed Abdalmoaty 2019년 6월 3일
편집: Mohamed Abdalmoaty 2019년 6월 3일
Are you counting and as two different monomials? (or and ) ...These count as 1 for me.
Matt J
Matt J 2019년 6월 4일
For me too.

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

답변 (1개)

Matt J
Matt J 2019년 6월 3일
편집: Matt J 2019년 6월 4일
p=eps(u);
p(u<0)=-p(u<0);
logresult = nchoosek(log(u+p),2)*[3 2 1 0 ; 0 1 2 3];
result= real(exp(logresult))

카테고리

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

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by