ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 14 Jun 2019 16:48:56 +0200solve equation with two variables over RRhttps://ask.sagemath.org/question/46915/solve-equation-with-two-variables-over-rr/Hi,
I have a problem with the following code (minimal example) in SageMath 8.7 notebook:
x, y = var('x,y', domain=RR)
solve(x == 0, x, y)
when executed, I get the following error:
/opt/sagemath-8.7/local/lib/python2.7/site-packages/sage/symbolic/relation.pyc in _solve_expression(f, x, explicit_solutions, multiplicities, to_poly_solve, solution_dict, algorithm, domain)
1357 if to_check:
1358 for ix, soln in reversed(list(enumerate(X))):
-> 1359 if soln.lhs().is_symbol():
1360 if any(a.contradicts(soln) for a in to_check):
1361 del X[ix]
AttributeError: 'list' object has no attribute 'lhs'
both
x, y = var('x,y')
solve(x == 0, x, y)
and
x, y = var('x,y', domain=RR)
solve(x == 0, x)
work as expected.
I am sorry if that question a already been posted, I don't know which keyword to use.
Pierre MacherlFri, 14 Jun 2019 16:48:56 +0200https://ask.sagemath.org/question/46915/