On Sat, Dec 13, 2008 at 10:11 AM, Thomas Kahle <tom...@gmx.de> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> Is this the right place for suggestions for the function "solve" ?

Yes.  Thanks.  I've submitted your bug report to the sage trac server:

   http://trac.sagemath.org/sage_trac/ticket/4786

and we are now tracking this there.

 -- William

>
> 1) The docstring has a typo : "... solve an equation of system ..."
> Should be an "or" here.
>
> 2) The section
> " solution_dict = True -- return a list of dictionaries containing the
> solutions. "
> made me think that solution_dict defaults to True which is not the case.
> Maybe this could be made more clear.
>
> 3) 'solution_dict = True' fails when only a single univariate equation
> is given. The solution is then not a list of lists and the conversion to
> dictionary fails:
>
> sage: var('a')
> a
> sage: solve ([a^2-1],a,solution_dict=True)
> -
> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
>
> /home/tom/<ipython console> in <module>()
>
> /usr/local/sage/local/lib/python2.5/site-packages/sage/calculus/equations.pyc
> in solve(f, *args, **kwds)
>   1436         sol_list = string_to_list_of_solutions(a)
>   1437         if 'solution_dict' in kwds and kwds['solution_dict']==True:
> - -> 1438             sol_dict=[dict([[eq.left(),eq.right()] for eq in
> solution]) for solution in sol_list]
>   1439             return sol_dict
>   1440         else:
>
> AttributeError: 'SymbolicVariable' object has no attribute 'left'
>
>
> Thanks for your great work.
> Thomas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAklD+tcACgkQrpEWPKIUt7PC/wCaApQxRJv5W+XEMyHOyehqHv0I
> lyQAn0XYSvy5YmWVcLzoP0BPYvqFi09l
> =LWVH
> -----END PGP SIGNATURE-----
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to