eq: x^2 + x + 1 = 0;

x2 + x + 1 = 0

s: solve(eq,x);

x = 3i + 1 2 ,x = 3i 1 2

s;

\left[ x=-{{\sqrt{3}\*i+1}\over{2}} , x={{\sqrt{3}\*i-1}\over{2}} \right]