Processing math: 100%
Cadabra
a field-theory motivated approach to computer algebra

combine

Combine two consecutive indexbracket objects
Combine two consecutive objects with indexbrackets and consecutive contracted indices into one object with an indexbracket. An example with two contracted matrices:
ex:=(\Gamma_r)_{\alpha\beta} (\Gamma_{s t u})_{\beta\gamma}; combine(_);
(Γr)αβ(Γstu)βγ
(ΓrΓstu)αγ
An example with a matrix and a vector:
ex:=(\Gamma_r)_{\alpha\beta} v_{\beta}; combine(_);
(Γr)αβvβ
(Γrv)α
The inverse of combine is expand.
Copyright © 2001-2024 Kasper Peeters
Questions? info@cadabra.science