cadabra2 icon indicating copy to clipboard operation
cadabra2 copied to clipboard

Enable pattern matching which compares explicit index or object names

Open kpeeters opened this issue 2 years ago • 0 comments

See https://cadabra.science/qa/2362/pattern-matching-noncommuting-expressions-matrices-indices : it would be useful to have a substitute conditional which lexicographically compares index or generic object names. So that you can write

substitute(ex, $\gamma^{a?} \gamma^{b?} | a? < b? -> \gamma^{b?}\gamma^{a?} + 2\eta^{a? b?}$);

kpeeters avatar Dec 01 '22 16:12 kpeeters