There is some work in progress to create a DotProduct for matrix expressions, which should do what you want here https://github.com/sympy/sympy/pull/10252.
Aaron Meurer On Fri, Jan 15, 2016 at 11:04 AM, Alexander Lindsay <[email protected]> wrote: > Hi all, > > I'm pretty new to sympy. I'm wondering whether it's possible to manipulate > expressions with vector dot products without sympy trying to actually > evaluate the dot product. Let's say A and B are vectors; I want the > expression A * B to simply be A * B, not a1*b1 + a2*b2 + a3*b3. I can't > simply use: > > A, B = symbols('A B') > > and carry them around in expressions that way because I want to avoid > simplifications like (C is another vector): A * B / (A * C) = B / C > > My full expressions contain many scalars as well as dot products; I want to > allow scalar simplification, e.g. I want x*y / x*z = y / z, while avoiding > incorrect vector simplifications like the possibility above. > > I hope that this is not too strange or stupid of a question! > > Alex > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/7ab512af-b031-4b1f-bd09-f66b2e188b50%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6KMnGGaOv0s1kNQRGLbE0d8AFxSykwypJWnQTZ%3DhB5aJQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
