def test_solve_polynomial_cv_2():
 assert (solve(((x + (1 / x)) - 1), x) in [[(Rational(1, 2) + ((I * sqrt(3)) / 2)), (Rational(1, 2) - ((I * sqrt(3)) / 2))], [(Rational(1, 2) - ((I * sqrt(3)) / 2)), (Rational(1, 2) + ((I * sqrt(3)) / 2))]])

def test_solve_polynomial_cv_2 ( ) : assert ( solve ( ( ( x + ( 1 / x ) ) - 1 ) , x ) in [ [ ( Rational ( 1 , 2 ) + ( ( I * sqrt ( 3 ) ) / 2 ) ) , ( Rational ( 1 , 2 ) - ( ( I * sqrt ( 3 ) ) / 2 ) ) ] , [ ( Rational ( 1 , 2 ) - ( ( I * sqrt ( 3 ) ) / 2 ) ) , ( Rational ( 1 , 2 ) + ( ( I * sqrt ( 3 ) ) / 2 ) ) ] ] )
test for solving on equations that can be converted to a polynomial equation multiplying both sides of the equation by x**m .