Ticket 8553 doesn't fix this, so while it is a related issue this will
need a ticket of its own.  Looking at the source its not clear to me
why your last example doesn't return a list.

I created http://trac.sagemath.org/sage_trac/ticket/11618 to address
this.  Hopefully someone from 8553 can fix this pretty easily.

-Marshall Hampton

On Jul 21, 8:09 am, Clemens Heuberger <[email protected]>
wrote:
> In the fourth call of solve below, solve(..., solution_dict=True) does
> not return a list, but a dictionary, in contrast to the documentation
> ("solution_dict - bool (default: False); if True, return a list of
> dictionaries containing the solutions.")
>
> f(x)=x-1
> g(x)=0
> print solve(f(x)==0,x)
> print solve(f(x)==0,x,solution_dict=True)
> print solve(g(x)==0,x)
> print solve(g(x)==0,x,solution_dict=True)
>
> [
> x == 1
> ]
> [{x: 1}]
> [x == r1]
> {x: r1}
>
> I think that it would be more consistent to return [{x: r1}].
> (Obviously, as it stands here, the input is rather stupid, but the
> inconsistency popped up in a more involved context).
>
> (Sage 4.7, compiled locally for debian stable amd_64).
>
> Possibly related tohttp://trac.sagemath.org/sage_trac/ticket/8553

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to