This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
documentation:ref:diracsimplify [2015/11/20 20:13] poslavskysv [Examples] |
documentation:ref:diracsimplify [2015/11/20 20:20] poslavskysv [Examples] |
||
---|---|---|---|
Line 55: | Line 55: | ||
<sxh groovy; gutter: true> | <sxh groovy; gutter: true> | ||
defineMatrices 'G_a', 'G5', Matrix1.matrix | defineMatrices 'G_a', 'G5', Matrix1.matrix | ||
- | def dSimplify = DiracSimplify[[Dimension: 'N']] | + | def dSimplify = DiracSimplify[[Dimension: 'D']] |
println dSimplify >> 'G_a*G^a'.t | println dSimplify >> 'G_a*G^a'.t | ||
</sxh> | </sxh> | ||
<sxh plain; gutter: false> | <sxh plain; gutter: false> | ||
- | > N | + | > D |
+ | </sxh> | ||
+ | <sxh groovy; gutter: true; first-line: 4> | ||
+ | println dSimplify >> 'G_a*G_b*G^a'.t | ||
+ | </sxh> | ||
+ | <sxh plain; gutter: false> | ||
+ | > -(-2+D)*G_{b} | ||
</sxh> | </sxh> | ||
+ | ---- | ||
+ | Specify additional simplifications: | ||
+ | <sxh groovy; gutter: true> | ||
+ | defineMatrices 'G_a', 'G5', Matrix1.matrix | ||
+ | def dSimplify = DiracSimplify[[Simplifications: 'p_a*k^a = s'.t]] | ||
+ | println dSimplify >> 'p^b*k^c*G_a*G_b*G_c*G^a'.t | ||
+ | </sxh> | ||
+ | <sxh plain; gutter: false> | ||
+ | > 4*s | ||
+ | </sxh> | ||
====See also==== | ====See also==== | ||
* Related guides: [[documentation:guide:applying_and_manipulating_transformations]], [[documentation:guide:Setting up matrix objects]], [[documentation:guide:list_of_transformations]] | * Related guides: [[documentation:guide:applying_and_manipulating_transformations]], [[documentation:guide:Setting up matrix objects]], [[documentation:guide:list_of_transformations]] |