polynomial division issue, how to find the remainder
조회 수: 3 (최근 30일)
이전 댓글 표시
i have two polynomials like
a=X14 + X13 + X10 + X9
b=X8 + X7 + X6 + X4 + 1
i want to find a mod b using matlab pls.
채택된 답변
Roger Stafford
2013년 12월 9일
If your field is that of the real numbers, look at 'deconv' function at:
http://www.mathworks.com/help/matlab/ref/deconv.html
This is a quote from that documentation: "If u and v are vectors of polynomial coefficients, convolving them is equivalent to multiplying the two polynomials, and deconvolution is polynomial division. The result of dividing v by u is quotient q and remainder r."
댓글 수: 3
Walter Roberson
2013년 12월 9일
What datatype is c ? Do you mean c = [1 1 0 0 0 1 1 1 ...] or do you mean c = '1100011...' or do you mean c=110001111101010 decimal ?
추가 답변 (2개)
Walter Roberson
2013년 12월 9일
Possibly x^6 + x^3 depending on what your formulae mean.
댓글 수: 6
Walter Roberson
2013년 12월 9일
To convert c='110001111101010' to -1 for 1 and 1 for 0, use
2*('0' - c) + 1
M Naeem
2023년 8월 10일
how we divide two polynomials in Polynomial Ring (Z_2[x]) to find the remainde?... let suppose i want to divide x^113 by x^8+x^4+x^3+x^2+1
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Polynomials에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!