Ask Your Question

Problem with solution_dict=True

asked 2014-10-09 08:48:51 -0500

jllb gravatar image

updated 2014-10-10 19:40:57 -0500

tmonteil gravatar image
var('x y')
solve(x + y, [x, y], solution_dict=True)

yields AttributeError: 'list' object has no attribute 'left'

Is this a bug?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2014-10-10 00:58:27 -0500

This looks like a bug introduced in Sage 6.3. It's been reported at

edit flag offensive delete link more


There is now a fix posted there. If you can, please test it.

John Palmieri gravatar imageJohn Palmieri ( 2014-10-10 10:02:44 -0500 )edit

And this fix will be in Sage 6.4!

kcrisman gravatar imagekcrisman ( 2014-11-11 09:56:23 -0500 )edit

answered 2014-10-10 02:45:07 -0500

ndomes gravatar image

A workaround (tested with Sage Cell Server):

var('x y')
sol = []
for v in [x,y]:
    sol +=  solve(x + y == 0,v, solution_dict=True)


[{x: -y}, {y: -x}]
edit flag offensive delete link more

answered 2014-10-09 23:12:04 -0500 gravatar image

Hi, could you please tell us which version of sage you are using? Going to

var('x y')
sol=solve(x + y, [x, y], solution_dict=True)


[{x: -y}]

which still surprises me since the system of equation is more than incomplete.

edit flag offensive delete link more


Version is 6.3. Seems to me sagenb is using an old version without the bug.

jllb gravatar imagejllb ( 2014-10-10 05:06:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-10-09 08:48:51 -0500

Seen: 215 times

Last updated: Oct 10 '14