On Dec 20, 2007 8:18 AM, Carl Witty <[EMAIL PROTECTED]> wrote: > > On Dec 19, 4:50 pm, "Ted Kosan" <[EMAIL PROTECTED]> wrote: > > The following code works in version 2.8.13 of SAGE: > > > > a = (16*x - 13)/6 == (3*x + 5)/2 - (4 - x)/3 > > > > But when I execute it in version 2.9, the following error is generated: > > > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > File "/home/tkosan/.sage/sage_notebook/worksheets/admin/0/code/7.py", > > line 4, in <module> > > a = (Integer(16)*x - Integer(13))/Integer(6) == (Integer(3)*x + > > Integer(5))/Integer(2) - (Integer(4) - x)/Integer(3) > > File > > "/home/tkosan/download/sage-2.9-debian-32bit-i686-Linux/local/lib/python2.5/site-packages/sympy/plotting/", > > line 1, in <module> > > > > File "element.pyx", line 785, in > > sage.structure.element.ModuleElement.__sub__ > > File "coerce.pyx", line 272, in > > sage.structure.coerce.CoercionModel_cache_maps.bin_op_c > > TypeError: unsupported operand parent(s) for '-': '<type 'list'>' and > > 'Integer Ring' > > It works for me (in Sage 2.9): > sage: a = (16*x - 13)/6 == (3*x + 5)/2 - (4 - x)/3 > sage: a > (16*x - 13)/6 == (3*x + 5)/2 - (4 - x)/3 > > Is there any chance that you've assigned a value to x earlier in your > session, so that x is no longer a symbolic variable? >
Works for me too: $ ./sage ---------------------------------------------------------------------- | SAGE Version 2.9, Release Date: 2007-12-16 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: a = (16*x - 13)/6 == (3*x + 5)/2 - (4 - x)/3 sage: a (16*x - 13)/6 == (3*x + 5)/2 - (4 - x)/3 sage: Ondrej --~--~---------~--~----~------------~-------~--~----~ 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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---
