content - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Algebra : Polynomials : content

content

content of a multivariate polynomial

primpart

primitive part of a multivariate polynomial

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

content(a, x, 'pp')

primpart(a, x, 'co')

Parameters

a

-

multivariate polynomial in x

x

-

(optional) name or set or list of names

pp

-

(optional) unevaluated name

co

-

(optional) unevaluated name

Description

• 

If a is a multivariate polynomial, content returns the content of a with respect to x, thus returning the greatest common divisor of the coefficients of a with respect to the indeterminate(s) x.

• 

The indeterminate(s) x can be a name, or a list or set of names. If x is not specified, then its default value is the set of all indeterminates occurring in a, as determined by indets.

• 

The third argument pp, if present, will be assigned the primitive part of a, namely a divided by the content of a.  For all inputs, the primitive part is a polynomial with integer or floating-point coefficients whose content is 1.

• 

The coefficients in a can be arbitrary expressions independent of x. If a is not a polynomial with numeric coefficients, then normal will be called on it (or parts of it), and the numerator and denominator are dealt with separately. Any floating point values are left untouched: any floating-point value is assumed to be indivisible with respect to any other value. Other nonpolynomial, nonrational subexpressions get the same treatment.

• 

The sign is removed from the content, and not removed from the primitive part.

• 

The primpart command returns a/content(a, x). The third argument co, if present, will be assigned the content.

Examples

The content of a univariate integer polynomial is the GCD of its coefficients.

content33x,x

3

(1)

The content of a multivariate polynomial a with respect to some of its variable(s) x is the GCD of its coefficients, considering a as a polynomial in the variable(s) x with any remaining variables being part of the coefficient ring. In the example below, a is viewed as a polynomial in x with coefficients that are polynomials in y. The example after that takes the same polynomial, but views it as a multivariate polynomial in x and y with integer coefficients.

content3xy+6y2,x

3y

(2)

content3xy+6y2,x,y

3

(3)

The following example computes not just the content, but also the primitive part.

content4xy+6y2,x,'pp'

2y

(4)

pp

3y2x

(5)

In this example, you can see the effect of calling normal, which happens because the polynomial doesn't have purely numeric coefficients (the coefficient of x is 1a).

contentxa12,x,'pp'

12a

(6)

pp

2xa

(7)

normalxa12

2x+a2a

(8)

Floating point coefficients are considered indivisible with respect to each other -- even if they are equal. As a consequence, the content in the following example is 1.

content2.ux2.v,x,'pp'

1

(9)

pp

2.ux2.v

(10)

In the presence of floating-point numbers, other content is still detected. For example, the factor u below.

content2.ux2.u,x,'pp'

u

(11)

pp

2.x2.

(12)

Non-numeric, nonpolynomial coefficients are also considered indivisible with respect to each other. For example, you could consider 2 to be a common divisor between the two coefficients 10 and 6, but they are considered indivisible with respect to each other for this command and the content is considered to be 1.

content10x+6,x

1

(13)

The primpart command computes just the primitive part of the expression.

primpart4xy+6y2,x

3y2x

(14)

primpartxa12,x

2xa

(15)

Compatibility

• 

The a parameter was updated in Maple 2017.

See Also

coeffs

Content

gcd

icontent