Hi,

On Mon, May 10, 2010 at 04:22:16AM -0700, smichr wrote:
> If solve had an "as_Eq" option you could do something like
> 
> >> eq = Eq(y + x, 3 - x)
> >> solve(eq, y, as_Eq=1)
> [y == 3 - 2*x]
> 

in polys9 there is partial support for this implemented in solve()
(only when inequality solver is used), e.g.:

In [1]: var('x', real=True)
Out[1]: x

In [2]: solve(x**2 - 2*x + 1 > 0, x)
Out[2]: [(-∞, 1), (1, ∞)]

In [3]: solve(x**2 - 2*x + 1 > 0, x, relational=True)
Out[3]: x < 1 ∨ 1 < x

In [4]: solve([x**2 - 1 >= 0, x**2 - 1 <= 0], x, relational=True)
Out[4]: x = 1 ∨ x = -1

> -- 
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to 
> sympy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sympy?hl=en.
> 

-- 
Mateusz

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to