4.11. Polynomial Integration

The function polyint is used to compute the integration of a polynomial. The general form of this function is

polyint(y, k)

or

x = polyint(y,k)

where

y represents the vector of the coefficients of the polynomials whose integration is to be obtained, and

k is the scalar constant of integration and x contains the result.

Programming Tip 4.4

The constant of integration k is assumed to be 0 until and unless specified.

Example 4.16.

Integrate the polynomial y = 4s3 + 12s2 + 16s + 1. Take constant of integration as 3.

Solution:

The expression y is represented by the following row vector:

y = [4   12   16   1];

To integrate the polynomial, the command used is

x = polyint(y, 3)

The result obtained is

x =
     1    4    8    1    3

The resultant ...

Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.