determine whether a polynomial is self-reciprocal
recipoly(a, x, 'p')
Important: The polytools package has been deprecated. Use the superseding command PolynomialTools[IsSelfReciprocal] instead.
Determine whether a is a ``self-reciprocal'' polynomial in x. This property holds if and only if coeff⁡a,x,k=coeff⁡a,x,d−k for all k=0..d, where d=degree⁡a,x.
If d is even and if the optional second argument p is specified, p is assigned the polynomial P of degree d2 such that xd2⁢P⁡x+1x=a.
Note that if d is odd, a being self-reciprocal implies a is divisible by x+1. In this case, if p is specified then the result computed is for ax+1.
Download Help Document
What kind of issue would you like to report? (Optional)