Updates:
        Status: Accepted
        Labels: Assumptions Solvers

Comment #1 on issue 3078 by [email protected]: Adding a "real" keyword to solve()
http://code.google.com/p/sympy/issues/detail?id=3078

I think what we should do is allow to pass in new style assumptions as arguments to solve somehow (perhaps just as another equation). For example, something like solve([x**3 - 1, Q.real(x)], x) or solve(x**3 - 1, x, assumptions=Q.real(x)). That would be much more expressive than a handful of predetermined keyword args, and less ambiguous.

Of course, for now, you can just define x to be real initially (x = Symbol('x', real=True)), and it will do what you want. If you don't want to do that for some reason, you could filter the solutions with something like [i for i in sols if i.is_real].

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to