2

OBASuppose there is a vector $A^{a}$ appears in the result in different component form like $A^{\mu},A^{\nu},A^{\alpha}...$, I want all of them to be zero because the components of the tensor are zero, what method can I use?

Jh Wang
  • 53
  • 4

1 Answers1

2

You have two main ways of doing this:

expr /. A[_] -> 0

or

expr /. A -> Zero

where Zero is a xTensor object that returns 0 for any input indices.

jose
  • 6,328
  • 1
  • 14
  • 24