DADiSP Worksheet Functions > Function Categories > Polynomials > POLYINT

 

POLYINT

Purpose:

Performs polynomial integration.

Syntax:

POLYINT(p, k, form)

p

-

A series, the coefficients of the source polynomial.

k

-

Optional. A scalar, the integration constant. Defaults to 0.0.

form

-

Optional. An integer, the polynomial coefficient form:

0:

ascending powers, lowest degree to highest

1:

descending powers, highest degree to lowest (default)

Returns:

A series, the resulting polynomial coefficients.

Example:

polyint({1, 2, 3})

 

returns the series {0.333, 1, 3, 0} representing the polynomial:

 

 

as the integration of:

 

image\polyd02.gif

Example:

polyint({1, 2, 3}, 10)

 

returns the series {0.333 , 1, 3, 10} representing the polynomial:

 

 

as the integration of:

 

image\polyd02.gif

 

with an integration constant of 10.0.

Example:

polyint({1, 2, 3}, 10, 0)

 

returns the series {10, 1, 1, 1} representing the polynomial:

 

 

as the integration of:

 

image\polyd05.gif

 

with an integration constant of 10.0.

Example:

polyder(polyint({1, 2, 3}))

 

returns the series {1, 2, 3} indicating that POLYDER is an inverse function of POLYINT.

Remarks:

If the input is a matrix, POLYINT considers each column to represent the polynomial coefficients with the result having the same number of columns as the input.

 

See POLYDER to calculate the derivative of a polynomial.

See Also:

CONV

DECONV

POLY

POLYDER

POLYFIT

POLYGRAPH

POLYVAL

ROOTS