generate polynomial - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Algebra : Polynomials : generate polynomial

genpoly

generate polynomial from integer n by Z-adic expansion

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

genpoly(n, b, x)

Parameters

n

-

integer or polynomial with integer coefficients

b

-

integer

x

-

variable name

Description

• 

genpoly computes the unique polynomial ax over x from the integer n with coefficients less than b2 in magnitude such that  subsx=b,ax=n.

• 

This is directly related to b-adic expansion of an integer. If the base-b representation of the integer n is c0+c1b++ckbk where ci are integers modulo b (using symmetric representation) then the polynomial generated is c0+c1x++ckxk.

• 

If n is a polynomial with integer coefficients then each integer coefficient is expanded into a polynomial.  This polynomial, n, must be in fully expanded form.

Thread Safety

• 

The genpoly command is thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

genpoly11,5,x

1+2x

(1)

genpoly11y213y+21,5,x

1+2xy2+x2+2x+2y+x2x+1

(2)

See Also

subs