isPalindromic -- Check if a polynomial is palindromic
Usage:
isPalindromic f
Inputs:
f, a polynomial in one variable with nonzero coefficients
Outputs:
true if $f$ is palindromic, otherwise false
Description
Let $f = a_0 + a_1 x + \cdots + a_d x^d$. The polynomial $f$ is palindromic if and only if $a_i = a_{d-i}$ for all $i = 0, \ldots, d$. This routine checks whether $f$ satisfies this condition.