solveset(): solveset function not following symbol constraint

25 views
Skip to first unread message

Gaurav Dhingra

unread,
May 3, 2015, 6:36:56 AM5/3/15
to sy...@googlegroups.com
Hi everyone

>>> from sympy import *
>>> from sympy.solvers.solveset import *
>>> a = symbols( 'a' , real=False )
>>> solve( a**2 - 1, a)
[]
>>> solveset( a**2 - 1, a )
{-1, 1}

Should  not the output of both solve() and solveset() functions be same ?
Is there anything i am doing wrong ?

AMiT Kumar

unread,
May 3, 2015, 9:57:33 AM5/3/15
to sy...@googlegroups.com
Hi Gaurav,

As of now the solveset doesn't supports assumptions on symbols,
and moreover it's still in sandbox mode. Solveset will eventually
replace solve by the time it fixes all the mess around old solve.

Also, It is very important that the solveset to be tied with the `new`
assumption system, which is still in development. Hopefully, soon
we will have both of these tied together. 

AMiT Kumar
3rd Year Undergrad
Delhi Technological University

Gaurav Dhingra

unread,
May 3, 2015, 10:40:40 AM5/3/15
to sy...@googlegroups.com
Ok thanks Amit.
Reply all
Reply to author
Forward
0 new messages