Hello, I'm trying to parse symbolic expressions, but got stuck very quickly.
If I say: (x^2).operator() I get: <built-in function pow> If I say: pow I also get: <built-in function pow> But if I say: (x^2).operator()==pow I get: False How do I properly test if the topmost operation of an expression is a power, product, sum, whatever? Stefan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---