How to integrate polynomials ?

조회 수: 1 (최근 30일)
Raiven Balderas
Raiven Balderas 2018년 4월 9일
댓글: John D'Errico 2018년 4월 9일
How can i integrate polynomials without using built in integral commands...
For example : c=[1 2] d=[1 0 -1] Only thing i can use is p=conv(c,d) to multiply the polynomials, but how would i integrate it from a to b (0 to 1) without using built in integral commands.
  댓글 수: 1
John D'Errico
John D'Errico 2018년 4월 9일
Surely you can find the term-wise indefinite integral of a polynomial? So, what is the integral of x? Of x^2? Of x^n, for any value of n?
Next, what is the integral of the polynomial with coefficients [a,b,c]? Still just basic calc here.
In fact, if you have a polynomial of degree n, thus n+1 terms as a vector of coefficients, can you find the integral of each term? Again, basic calculus.
Once you have found the indefinite integral, how do you convert that into a definite integral? Is that not just the difference of two evaluations? Of what? Can you use polyval? Even if not, surely you can figure out how to use Horner's method to evaluate a polynomial? Even if that is a push, a simple loop would suffice.
This is your homework. So you need to make an effort.

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

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