Cadabra
a field theory motivated approach to computer algebra

collect_terms

Collect identical terms in a sum.
Collect terms in a sum that differ only by their numerical pre-factor. This is part of the default post_process function, so does not need to be called by hand. Note that this command only collects terms which are identical, it does not collect terms which are different but mathematically equivalent. See sort_sum for an example.
Copyright © 2001-2017 Kasper Peeters
Questions? info@cadabra.science