I have started adding the logic to make this possible, but it's slightly more complicated than I first thought. Give me another day or two. I'm very glad that you found Cadabra useful in the context of nuclear physics, and am happy to add other functionality you think is missing for your particular applications.

1 Answer

+1 vote

Best answer

I have pushed a fix for this to github master just now. It took a little while longer than planned as this was probably the first time such expressions got tested properly, and in that process I ran into a subtle other substitute bug which I wanted to fix as well.

Let me know if this does what you need (or not, in which case I'll be happy to make more changes/fixes).