> -48 + 4*y + 12*x > > The problem is, though "in" thinks x (and y are in the equation)... > > >>> x in line > > True > > the local variables that I created above are not actually in there: > > >>> x in line.atoms(), y in line.atoms() > > (False, False)
The inconsistency looks like a bug, doesn't it? > Does anyone have suggestions on how to better accomplish that > remapping? Perhaps the equation() should take two variables rather > than two strings. Right now it essentiall creates x as > Symbol(given_string_for_x, real=True). The problem is that the local > symbol may not have the same assumptions and then the two variables > are not the same. remap() would make them the same: Is this something that can be solved elegantly with the new assumptions? The problem would disappear if the assumption "x is real" was associated with the line equation, instead of directly to the symbol. Øyvind -- You received this message because you are subscribed to the Google Groups "sympy" group. 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/sympy?hl=en.
