I'm using a mix
part to try to extract the arguments of a function that I need.
I use a function like $ J ^ mu (1,2,3) $
and I will try to portray this as
J[mu,Range[1,3]]or more generally for any index or any number of arguments,
I have to pick the first element each time, that is H. The index of this function, and then I have to select some consecutive elements of the list. I.E; I have to choose terms like
I tried with some variations of
span in the
partArgument, but I'm having trouble taking just the first variable and some extras.
In particular, I'm trying to program the Berends-Giele recursion relationship for n-gluons.
Any help would be appreciated.
To show an example:
gives a result of
as expected. If I take;
I will get
that is not as expected. What I want is something like saying;
what would come back
Is that possible with