Problem with solution_dict=True
var('x y')
solve(x + y, [x, y], solution_dict=True)
yields AttributeError: 'list' object has no attribute 'left'
Is this a bug?
var('x y')
solve(x + y, [x, y], solution_dict=True)
yields AttributeError: 'list' object has no attribute 'left'
Is this a bug?
This looks like a bug introduced in Sage 6.3. It's been reported at http://trac.sagemath.org/ticket/17128.
There is now a fix posted there. If you can, please test it.
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.
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}]
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2014-10-09 15:48:51 +0100
Seen: 1,308 times
Last updated: Oct 10 '14
How do I understand the result of symbolic integrals
Can desolve_system return dict?
Plot picewise function + infinity, error message
Problem with sign / sgn and .n()
Plotting an integral with a variable as a limit
def f(x): evaluvates individually but not inside plot