Sum of powers of polynomial roots – codegolf.stackexchange.comalephalpha5/18/2026In this challenge, you are given a polynomial \$p(x)\$ and a positive integer \$k\$. Your task is to compute the sum of the \$k\$-th powers of the roots of \$p(x)\$ (with multiplicity). In other ...mathematicspolynomial