>> The other issue that came up is, I see from the archives, again a >> known problem: if I want to define multiplication for "tuples", a >> multiplication of a tuple by a scalar (on the left or the right) is >> the tuple of each component multiplied by the scalar. I define the >> __mul__ and __rmul__ methods, but __rmul__ fails to get called when >> the scalar is a sympy object, because scalar defines a __mul__ that >> can handle other sympy objects
> In the current master branch you can use the _op_priority class > attribute to make sure your own __mul__() overrides the default. Thanks. Since I don't want to install the master branch on all the student computers, I will hold off on this solution, but will implement it in the future. I see that there is active discussion on the trigsimp/cse problem with derivatives, so maybe, in the near future, all these problems would be fixed in a "released" version of sympy! That would be very nice. One more question: what is the recommended procedure for simplifying algebraic/trigonometric objects? Is there any function / any setting for "simplify" that would automatically get the "simplest" form of an expression, by some metric? Or should I advise users to call their own simplification routine themselves, according to "taste" and their current problem? By sometime next week I will make public an early version of my code, which would have basically all of the first two chapters of SICM (the "Lagrangian" part), and enough "infrastructure" that implementing the rest should be much quicker. Rahul -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.