> Though `solveset_real` claims to be complete in terms of real solution 
> returned

Well, solveset_real assumes that you are working in a real system,
that means both the equation and the solutions are in a real domain.
So solveset_real expect users to input equations like `exp(I*x) = 0`
and it should probably raise an error or maybe the doc string needs to
be updated. As you have figured out for yourself if someone wants to
work in the complex domain they can always use solveset_complex.


On 1 July 2015 at 23:11, Gaurav Dhingra <[email protected]> wrote:
> Hi all
> Though `solveset_real` claimes to be complete in terms of real solution
> returned
> But for this
>
>>>> x = Symbol('x', real=True)
>>>> solveset_real(exp(I*x), x)
> FiniteSet(0)
>
> But probably the solution is what is returned for the `solveset_complex`
>>>> y = Symbol('y')
>>>> solveset_complex(exp(I*y), y)
>
> ImageSet(Lambda(_n, 2*_n*pi), Integers())    # correct solution returned
>
>                                      # same should be returned for
> `solveset_real` ?
>
>
> Is there any reason why we just get `FiniteSet(0)`  ?
>
> Cheers
>
> Gaurav
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/fbf1e47b-3bab-4c7c-9099-25a2eef27062%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Harsh

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CADN8iur%3Dr7PF5JKiC7j4nt%2BkXbLB7767m5dV0%3DjPod5UeWWXAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to