POLYVAL
polyval
p(x)=3x2+2x+1 at the points x=5,7,9
p = [3 2 1]; x = [5 7 9]; y = polyval(p,x)
y = 1×3 86 162 262
Create a vector to represent the polynomial integrand 3x4−4x2+10x−25. The x3 term is absent and thus has a coefficient of 0.Usepolyint
to integrate the polynomial using a constant of integration equal to0
.Find the value of the integral by evaluatingq
at the limits of integration.
Yorumlar
Yorum Gönder