Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:ref:collect [2015/11/20 20:30]
poslavskysv [Examples]
documentation:ref:collect [2015/11/21 12:33] (current)
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.
Line 10: Line 11:
   * In the case of scalar vars, the behaviour of ''​Collect''​ is similar to other CASs.    * In the case of scalar vars, the behaviour of ''​Collect''​ is similar to other CASs. 
  
-  * To prevent expand of symbolic terms when collecting tensors one can use option ''​%%Collect[[vars, [ExpandSymbolic: ​true]]%%''​+  * To prevent expand of symbolic terms when collecting tensors one can use option ''​%%Collect[[var1, var2, ..., [ExpandSymbolic: ​false]]%%''​
 ====Examples==== ====Examples====
  
Line 91: Line 92:
   * Related guides: [[documentation:​guide:​applying_and_manipulating_transformations]],​ [[documentation:​guide:​list_of_transformations]]   * Related guides: [[documentation:​guide:​applying_and_manipulating_transformations]],​ [[documentation:​guide:​list_of_transformations]]
   * Related transformations:​ [[documentation:​ref:​collectnonscalars]]   * Related transformations:​ [[documentation:​ref:​collectnonscalars]]
-  * JavaDocs: [[http://​api.redberry.cc/​redberry/​1.1.8/​java-api/​cc/​redberry/​core/​transformations/​collect/​CollectTransformation.html| CollectTransformation]]+  * JavaDocs: [[http://​api.redberry.cc/​redberry/​1.1.9/​java-api/​cc/​redberry/​core/​transformations/​collect/​CollectTransformation.html| CollectTransformation]]
   * Source code: [[https://​bitbucket.org/​redberry/​redberry/​src/​tip/​core/​src/​main/​java/​cc/​redberry/​core/​transformations/​collect/​CollectTransformation.java|CollectTransformation.java]]   * Source code: [[https://​bitbucket.org/​redberry/​redberry/​src/​tip/​core/​src/​main/​java/​cc/​redberry/​core/​transformations/​collect/​CollectTransformation.java|CollectTransformation.java]]
 +