Extracting explicit higher derivative terms from a list

25 views
Skip to first unread message

Sukruti

unread,
Sep 15, 2024, 11:12:04 AMSep 15
to xAct Tensor Computer Algebra
Hi,

Given a list of terms which are functions of some variables, how to extract those terms from the list which have explicit second or higher order derivatives in them?

I am looking for a solution specifically for the kind of terms shown in the attached notebook.

Cheers
Sukruti
Extracting Higher Derivative Terms.nb

Thomas Bäckdahl

unread,
Sep 15, 2024, 11:16:57 AMSep 15
to xa...@googlegroups.com
Hi!

Try
Select[list1, Not@FreeQ[#, CD[_][CD[_][_]]] &]

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/19f1dac9-3c91-43cc-91c8-70ca8ae295efn%40googlegroups.com.

Sukruti

unread,
Sep 15, 2024, 12:54:26 PMSep 15
to xAct Tensor Computer Algebra
Hi,

This does the job. Thanks!

Cheers
Sukruti

Reply all
Reply to author
Forward
0 new messages