We faced similar questions in sympy.physics.quantum. I think that all mathematical objects should subclass Expr.
On Mon, May 9, 2011 at 4:23 PM, Gilbert Gede <[email protected]> wrote: > In PyDy (which we plan to merge into SymPy.physics.classical this summer) > Vector is one of the classes already implemented (along with UnitVector). > Vectors extend Basic, and UnitVector extend Expr. > The way it works now, you can't use Vector as part of a SymPy expression: > In [57]: test > Out[57]: x*n1> + x*a1> > In [58]: x*test*x > Out[58]: x**2*x*n1> + x*a1> > Do people want to be able to use Vector (which comes with dot, cross, outer > products, and derivative (between reference frames) functions implemented) > in SymPy expressions? Or is it the type of thing no one really wants? > I'm looking forward to getting to work on PyDy & SymPy this summer. > -Gilbert > > -- > 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. > -- Brian E. Granger Cal Poly State University, San Luis Obispo [email protected] and [email protected] -- 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.
