# Improving _invert method in solveset #10971

Open

## Conversation

Projects
None yet
2 participants
Member

### Shekharrajak commented Apr 5, 2016 • edited

 Fixes #10864 and complex solution of #11096 Old solver have `_tsolve` to solve transcendental equation, but in `solveset` `_invert` method can handle some works of the `_tsolve` method. One of them could be ``````x =symbols('x' , positive = True) solveset(x**(y*z) - x,x,S.Reals) ``````
``` added few lines in _invert_real ```
``` c527348 ```
Member Author

### Shekharrajak commented Apr 5, 2016

 I didn't understand `TypeError: Invalid comparison of complex -1 + I*pi` at line 390, in test_solveset_sqrt_2 same here fixed now.

### Shekharrajak added some commits Apr 5, 2016

``` Merge branch 'master' into 10864_solveset_pow_x_yz ```
``` 7d28f6a ```
``` Merge branch 'master' into 10864_solveset_pow_x_yz ```
``` 005490d ```
``` Merge branch 'master' into 10864_solveset_pow_x_yz ```
``` 6d9a062 ```

### Shekharrajak reviewed Apr 8, 2016

 @@ -909,7 +909,7 @@ def test_improve_coverage(): x = Symbol('x') y = exp(x+1/x**2) solution = solveset(y**2+y, x, S.Reals) unsolved_object = ConditionSet(x, Eq((exp((x**3 + 1)/x**2) + 1)*exp((x**3 + 1)/x**2), 0), S.Reals) unsolved_object = ConditionSet(x, Eq(exp(x + x**(-2)) + exp(2*x + 2/x**2), 0), S.Reals)

#### Shekharrajak Apr 8, 2016

Author Member

same thing is written in different way.

### Shekharrajak added some commits Apr 8, 2016

``` fixed failed cases ```
``` 3c6949e ```
``` update ```
``` 0965c42 ```
``` Merge branch 'master' into 10864_solveset_pow_x_yz ```
``` 366526b ```
``` #11096 complex solution ```
``` a089400 ```
``` Merge branch '10864_solveset_pow_x_yz' of https://github.com/Shekharr… ```
`…ajak/sympy into 10864_solveset_pow_x_yz`
``` be4b14e ```

Closed