Removing terms of a definite order?

51 views
Skip to first unread message

NotoGrav

unread,
Feb 11, 2022, 4:49:10 AM2/11/22
to xAct Tensor Computer Algebra
Hello Folks,

Here is attached a file where I am trying to implement perturbation for a Lagrangian.

In the last term Lflat1, how can I get rid of all the terms which have order of h^3 (h, PD[h], PD[PD[h]] all permutations combined). I would like to keep ONLY the terms of combined order of h^2.

Thanks in advance.
Try file.nb

Thomas Bäckdahl

unread,
Feb 11, 2022, 5:10:11 AM2/11/22
to xa...@googlegroups.com
Hi!

I suppose you mean powers of h, regardless of perturbation order.
For that I would do something like
DefConstantSymbol[\[Sigma]]
Coefficient[Series[Lflat1 /. gpert[args__] :> \[Sigma]*gpert[args], {\[Sigma], 0, 2}], \[Sigma], 2]

This idea is easily to adapt to other situations where you want to collect or extract terms with a specific total power defined multiplicatively.

By the way, I would write Sqrt[Scalar[g[-a, -b] v[a] v[b]]] instead of Sqrt[g[-a, -b] v[a] v[b]].

Regards
Thomas
--
You received this message because you are subscribed to the Google Groups "xAct Tensor Computer Algebra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xact+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xact/851792a1-b4c3-4af1-8767-9e219e325261n%40googlegroups.com.

Mehbub Khan

unread,
Feb 11, 2022, 4:27:18 PM2/11/22
to Thomas Bäckdahl, xAct Tensor Computer Algebra
Hello Thomas,

Thanks for your helpful feedback. I have two related questions.

1. Following what you mentioned, after doing so can I do the same to collect the terms which include h(1) terms ONLY?

2. In my expression for Lflat1, I am seeing Minkowski metric eta to be in two forms, one with the imaginary i, the other just eta.
Can you comment on whether I made any error while converting the general metric to eta metric?

Your feedback would be highly appreciated.
 

Reply all
Reply to author
Forward
0 new messages