1
$\begingroup$

Let $f(x)=\sum_{i=0}^{n}a_{i}x^{i}$ be a polynomial with rational coefficients. I am interested in an efficient way which allows checking whether the finite sequence $A=(a_{i})_{i\in\{0,\ldots,n\}}$ is unimodal. Let us recall that the sequence is unimodal if there is $k\in\{0,\ldots,n\}$ such that $a_{0}\leq \ldots\leq a_{k-1}\leq a_{k}\geq a_{k+1}\geq \ldots \geq a_{n}$.

$\endgroup$
  • 1
    $\begingroup$ So you want to use the software Mathematica for this? $\endgroup$ – J. M. is away Sep 26 '17 at 6:08
  • $\begingroup$ @J. M. Yes, I want to use Mathematica for this computation for several values of $n$. $\endgroup$ – Maciej Ulas Sep 26 '17 at 11:04
  • $\begingroup$ Would Differences[Sign[Differences[CoefficientList[poly, x]]]] be useful to you? $\endgroup$ – J. M. is away Sep 26 '17 at 12:07
  • $\begingroup$ The best answer for me would be the information whether the sequence of coefficients is unimodal. Proposed approach gives another sequence of numbers and it is not clear to me how you want to extract the information concerning unimodality. $\endgroup$ – Maciej Ulas Sep 27 '17 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.