Skip to content

solve(x, [x], solution_dict=True) error #24477

@rwst

Description

@rwst

From https://groups.google.com/forum/#!topic/sage-devel/EL-kPIR1VFM:

solve(x, [x], solution_dict=True)
...
/home/ralf/sage/local/lib/python2.7/site-packages/sage/symbolic/relation.pyc in solve(f, *args, **kwds)
   1045 
   1046     if is_Expression(f): # f is a single expression
-> 1047         return _solve_expression(f, x, explicit_solutions, multiplicities, to_poly_solve, solution_dict, algorithm, domain)
   1048 
   1049     if not isinstance(f, (list, tuple)):

/home/ralf/sage/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)
   1369     if solution_dict:
   1370         if isinstance(x, (list, tuple)):
-> 1371             X = [{sol.left():sol.right() for sol in b} for b in X]
   1372         else:
   1373             X = [dict([[sol.left(),sol.right()]]) for sol in X]

TypeError: 'sage.symbolic.expression.Expression' object is not iterable

CC: @EmmanuelCharpentier

Component: calculus

Issue created by migration from https://trac.sagemath.org/ticket/24477

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions