Ask Your Question
1

Problem with solution_dict=True

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

jllb gravatar image

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

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
3

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

This looks like a bug introduced in Sage 6.3. It's been reported at http://trac.sagemath.org/ticket/17128.

edit flag offensive delete link more

Comments

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

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

And this fix will be in Sage 6.4!

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

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

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)
sol

gives

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

answered 2014-10-09 23:12:04 -0600

god.one gravatar image

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

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

gives

[{x: -y}]

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

edit flag offensive delete link more

Comments

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 -0600 )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

Stats

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

Seen: 229 times

Last updated: Oct 10 '14