genpoly
generate polynomial from integer n by Z-adic expansion
Calling Sequence
Parameters
Description
Thread Safety
Examples
genpoly(n, b, x)
n
-
integer or polynomial with integer coefficients
b
integer
x
variable name
genpoly computes the unique polynomial a⁡x over ℤx from the integer n with coefficients less than b2 in magnitude such that subs⁡x=b,a⁡x=n.
This is directly related to b-adic expansion of an integer. If the base-b representation of the integer n is c0+c1⁢b+⋯+ck⁢bk where ci are integers modulo b (using symmetric representation) then the polynomial generated is c0+c1⁢x+⋯+ck⁢xk.
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.
The genpoly command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
genpoly⁡11,5,x
1+2⁢x
genpoly⁡11⁢y2−13⁢y+21,5,x
1+2⁢x⁢y2+−x2+2⁢x+2⁢y+x2−x+1
See Also
subs
Download Help Document