I like that :-) That's probably actually all I need for this case

On 01/18/2016 10:36 AM, Francesco Bonazzi wrote:


On Friday, 15 January 2016 17:04:20 UTC+1, Alexander Lindsay wrote:


    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


This is a trick: declare /A, B, C/ as non commutative variables:

|
In[1]:A,B,C =symbols('A B C',commutative=False)

In[2]:A *B /(A *C)
Out[2]:
-1
A*B*(A*C)

|


--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[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/9250df72-10c5-4f13-871e-42856ee4ae33%40googlegroups.com <https://groups.google.com/d/msgid/sympy/9250df72-10c5-4f13-871e-42856ee4ae33%40googlegroups.com?utm_medium=email&utm_source=footer>.
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/56A01DB0.8000100%40ncsu.edu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to