Hi David, > That's the bug; if anyone knows of a workaround for now I'd like to > hear it. My code builds up complicated expressions involving > rationals and symbols, and no matter how I reorder things, one of them > fails in this manner. I know I can use 'var' instead of 'Symbol', but > I need non-commutative symbolic multiplication, which as I understand > var does not support.
This happens because no one has implemented a _sympy_ method for rationals yet. I went ahead and made this a ticket at http://trac.sagemath.org/sage_trac/ticket/3963 . This will be in the next version of Sage, but you could make that change in your local copy. You may also want to look at FreeAlgebra in Sage depending on what you're doing: sage: R = FreeAlgebra(QQ, 2, 'x,y') sage: x,y = R.gens() sage: 2*x*y - y*x 2*x*y - y*x --Mike --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com 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://www.sagemath.org -~----------~----~----~----~------~----~------~--~---