2
$\begingroup$

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?

$\endgroup$

1 Answer 1

2
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.