On Apr 17, 2009, at 11:49 AM, MikeF wrote: > Thank you for the explanation. Not being familiar with python, I had > no way of knowing wether it was Sage or python. The examples in Sage > tend to use x, y & z as variable symbols so I naturally used them, as > well. The logical construct of "print bool (symbol = symbol) should > then not be used, I take it, as it generates a keyword error?
And it has a totally different meaning. > And = should be replaced with ==? What occurs then when an > assumption is > explicitly symbol = some other symbol or , again, is the proper usage > to use ==? In Python, = is assignment (including to keyword arguments), wheras == is equality testing. sage: var('x,y,z') (x, y, z) Here we construct a symbolic equation. sage: x == y x == y sage: type(x == y) <class 'sage.calculus.equations.SymbolicEquation'> This is an assignment--we have just overwritten the variable with a new value. sage: x = y sage: x y sage: x = "some string" sage: x 'some string' - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---