Macaulay2 » Documentation
Packages » PolyominoIdeals » isPalindromic
next | previous | forward | backward | up | index | toc

isPalindromic -- Check if a polynomial is palindromic

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.

i1 : R = QQ[x];
i2 : isPalindromic(x^4 + 2*x^3 + 3*x^2 + 2*x + 1)

o2 = true

Ways to use isPalindromic:

  • isPalindromic(RingElement)

For the programmer

The object isPalindromic is a method function with options.


The source of this document is in PolyominoIdeals.m2:1569:0.