#NEWLINE# def test_improve_coverage( ) : #NEWLINE# #INDENT# from sympy.solvers.solveset import _has_rational_power #NEWLINE# x = Symbol ( 'x' ) #NEWLINE# y = exp ( ( x + ( 1 / ( x ** 2 ) ) ) ) #NEWLINE# solution = solveset ( ( ( y ** 2 ) + y ) , x , S . Reals ) #NEWLINE# unsolved_object = ConditionSet ( x , Eq ( ( ( exp ( ( ( ( x ** 3 ) + 1 ) / ( x ** 2 ) ) ) + 1 ) * exp ( ( ( ( x ** 3 ) + 1 ) / ( x ** 2 ) ) ) ) , 0 ) , S . Reals ) #NEWLINE# assert ( solution == unsolved_object ) #NEWLINE# assert ( _has_rational_power ( ( ( sin ( x ) * exp ( x ) ) + 1 ) , x ) == ( False , S . One ) ) #NEWLINE# assert ( _has_rational_power ( ( ( sin ( x ) ** 2 ) * ( ( exp ( x ) + 1 ) ** 3 ) ) , x ) == ( False , S . One ) )