Differences

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

 documentation:ref:expandtensors [2015/11/20 20:43]poslavskysv [Examples] documentation:ref:expandtensors [2015/11/21 12:33] (current) Both sides previous revision Previous revision 2015/11/20 20:45 poslavskysv [Examples] 2015/11/20 20:43 poslavskysv [Examples] 2015/11/20 20:42 poslavskysv [Examples] 2015/11/20 20:42 poslavskysv [Examples] 2015/11/20 20:41 poslavskysv [Examples] 2015/11/20 20:41 poslavskysv [Examples] 2015/11/20 20:40 poslavskysv [Examples] 2015/11/20 20:39 poslavskysv [Description] 2015/11/20 20:39 poslavskysv [Description] 2015/11/20 20:38 poslavskysv [Examples] 2015/11/20 20:38 poslavskysv created Next revision Previous revision 2015/11/20 20:45 poslavskysv [Examples] 2015/11/20 20:43 poslavskysv [Examples] 2015/11/20 20:42 poslavskysv [Examples] 2015/11/20 20:42 poslavskysv [Examples] 2015/11/20 20:41 poslavskysv [Examples] 2015/11/20 20:41 poslavskysv [Examples] 2015/11/20 20:40 poslavskysv [Examples] 2015/11/20 20:39 poslavskysv [Description] 2015/11/20 20:39 poslavskysv [Description] 2015/11/20 20:38 poslavskysv [Examples] 2015/11/20 20:38 poslavskysv created Line 44: Line 44: + (c+r)*((a+b)*(c+d)*(k+i) + (a + c))*(c+d)*t_a*t^a + (c+r)*((a+b)*(c+d)*(k+i) + (a + c))*(c+d)*t_a*t^a ​ + + ---- + Specify additional simplifications:​ + + + def simplify = '​f_a*f^a = a'.t & '​f_a*t^a = b'.t & '​t_a*t^a = c'.t + def t = '​(2*(c+a)-164*a)*(f_{a}+t_{a})*f^{a}'​.t + println ExpandTensors[simplify] >> t + ​ + + > a*(-164*a+2*(c+a))+b*(-164*a+2*(c+a)) + ​ + ====See also==== ====See also==== * 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:​expand]], ​ [[documentation:​ref:​expandall]],​ [[documentation:​ref:​expandnumerator]],​ [[documentation:​ref:​expanddenominator]] * Related transformations:​ [[documentation:​ref:​expand]], ​ [[documentation:​ref:​expandall]],​ [[documentation:​ref:​expandnumerator]],​ [[documentation:​ref:​expanddenominator]] - * JavaDocs: [[http://​api.redberry.cc/​redberry/​1.1.8/​java-api/​cc/​redberry/​core/​transformations/​expand/​ExpandTensorsTransformation.html|ExpandTensorsTransformation]] + * JavaDocs: [[http://​api.redberry.cc/​redberry/​1.1.9/​java-api/​cc/​redberry/​core/​transformations/​expand/​ExpandTensorsTransformation.html|ExpandTensorsTransformation]] * Source code: [[https://​bitbucket.org/​redberry/​redberry/​src/​tip/​core/​src/​main/​java/​cc/​redberry/​core/​transformations/​expand/​ExpandTensorsTransformation.java|ExpandTensorsTransformation.java]] * Source code: [[https://​bitbucket.org/​redberry/​redberry/​src/​tip/​core/​src/​main/​java/​cc/​redberry/​core/​transformations/​expand/​ExpandTensorsTransformation.java|ExpandTensorsTransformation.java]] +