This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
documentation:ref:collect [2015/11/20 20:30] poslavskysv [Examples] |
documentation:ref:collect [2015/11/20 20:31] poslavskysv [Description] |
||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
====Description==== | ====Description==== | ||
- | * ''Collect[var1, var2, ..., [transformations]]'' collects together terms involving the same powers of specified vars and applies specified transformations to the expression that forms the coefficient of each term obtained. | + | * ''Collect[var1, var2]'' collects together terms involving the same powers of specified vars. |
+ | * ''Collect[var1, var2, ..., transformations]'' or ''%%Collect[var1, var2, ..., [Simplifications: transformations]]%%'' additionally applies specified transformations to the expression that forms the coefficient of each term obtained. | ||
* In the case of tensorial vars, ''Collect'' will insert [[documentation:ref:Kronecker delta|Kronecker deltas]] or [[documentation:ref:metric tensor|metric tensors]] in order to "uncontract" indices and factor out tensorial parts. | * In the case of tensorial vars, ''Collect'' will insert [[documentation:ref:Kronecker delta|Kronecker deltas]] or [[documentation:ref:metric tensor|metric tensors]] in order to "uncontract" indices and factor out tensorial parts. |