For a given polynomial p(x) = a_{n}x^{n} + a_{n-1}x^{n-1} + ... + a_{1}x + a_{0} , of a single variable x and with the real coeffiecints a_{n}, a_{n-1}, ... , a_{1}, a_{0} . ( a_{i} ∈ ℝ , i=0, ... , n ) , find the the roots x_{n}, x_{n-1}, ... , x_{1} such that p(x) = (x - x_{n})(x - x_{n-1})...(x - x_{2})(x - x_{1}) In other words, find all x_{i} such that p(x_{i}) = 0 , where i=1, ... , n, and n is a degree of a polynomial p. Please Note:

For polynomials of degrees 1, 2 and 3, we will calculate the exact roots. For polynomials of degrees 4 and higher, we might need to use numeriacl methods to find closest values to the actual roots.

Use only explicit real numbers for coefficients, no parameters or variables are allowed.

The default polynomial variable is x but you can choose any other.

To raise the variable to the power of n (where n must be an explict positive integer), use the operator ^

as in X^2

Please enter the polynomial whose roots you are looking for:p( ) =