monomial - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


type/monomial

check for a monomial

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

type(m, monomial)

type(m, monomial(K))

type(m, monomial(K, v))

Parameters

m

-

any expression

K

-

(optional) type name for the coefficient domain

v

-

(optional) variable(s)

Description

• 

The call type(m, monomial(K, v)) checks to see if m is a monomial in the variable(s) v over the coefficient domain K, where v is either an indeterminate or a list or set of indeterminates.

• 

A monomial is defined to be a polynomial in v which syntactically is the product of powers of indeterminates in v with nonnegative exponents, times a coefficient c free of the indeterminates in v, i.e., it is of the form c⋅x1e1⁢⋯⁢xkek, where v=x1,…,xk, e1,…,ek∈ℕ, and c does not contain any of the xi. Note that the coefficient c may be a sum. This function returns true if m is such a monomial, and false otherwise.

• 

If v is omitted, it is taken to be the set of all indeterminates appearing in m, that is, it checks if m is a monomial in all of its variables.

• 

The domain specification K should be a type name, such as rational or algebraic.  If K is specified, then this function will check that the coefficients of m come from the domain K.  If the coefficient domain K is omitted, then only coefficients of type constant are allowed.

Examples

> 

type⁡sin⁡1⁢x2,monomial

true

(1)
> 

type⁡sin⁡1x2,monomial

false

(2)
> 

type⁡1+y⁢x2,monomial⁡anything,y

false

(3)
> 

type⁡1+y⁢x2,monomial⁡anything,x

true

(4)
> 

type⁡sin⁡x⁢y,monomial⁡anything,y

true

(5)

The following is not syntactically a monomial.

> 

f≔x+sqrt⁡2⁢x

f≔x+2⁢x

(6)
> 

type⁡f,monomial⁡radalgnum

false

(7)
> 

type⁡collect⁡f,x,monomial⁡radalgnum

true

(8)
> 

type⁡collect⁡f,x,monomial⁡rational

false

(9)

Any constant is a monomial.

> 

type⁡1+sqrt⁡2,monomial

true

(10)

Compatibility

• 

The type/monomial command was updated in Maple 2020.

See Also

indets

type

type/polynom