R (programming language)/Tutorials/Algebra

Solving polynomial equations
To solve $$ a x^k + bx^{k-1} +\cdots+ n=0$$, where $$a,b,\dots,n$$ are given integers, use the command

polyroot(c(a,b,...,n))