Hi all,
I would like to know what is the correct way to pattern match and
substitute expressions in the new tensor canonicalization module.
For instance:
>>> Lorentz = TensorIndexType('Lorentz')
>>> i0,i1 = tensor_indices('i0:1', Lorentz)
>>> A = tensorhead('A', [Lorentz], [[1]])
>>> B = tensorhead('B', [Lorentz], [[1]])
I need something that will match any of these:
A(i0)*B(-i0)
B(-i0)*A(i0)
A(i1)*B(-i1)
Any suggestions?
Thanks
--
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 http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.