File: multiterm.cdb

package info (click to toggle)
cadabra2 2.4.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 78,796 kB
  • sloc: ansic: 133,450; cpp: 92,064; python: 1,530; javascript: 203; sh: 184; xml: 182; objc: 53; makefile: 51
file content (31 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Portugal's examples involving Ricci cycling do not yet work:
#
R_{m n p q}::RiemannTensor.
tst11a:= R_{a b c d} R_{e a c f} R_{f b d e} 
  +  R_{a b e f} R_{c d a b} R_{c e d f}
  +2 R_{a b c d} R_{e a f c} R_{f d b e};
@riemann_index_regroup!(%);
@canonicalise!(%);
@collect_terms!(%);

tst11b:= R_{a b c d} R_{e f a k} R_{h c k b} R_{d h e f}
 +4 R_{a b c d} R_{e f k a} R_{h b c e} R_{d k f h}
 -  R_{a b c d} R_{e f k a} R_{h b f e} R_{c d k h}
 +4 R_{a b c d} R_{h k d f} R_{e f k a} R_{h b c e};
@riemann_index_regroup!(%);
@canonicalise!(%);
@collect_terms!(%);



# One other non-trivial one involving the cyclic identity.
# This one is not handled because the anti-symmetrisation in the 
# brackets is not recognised, and therefore the regroup function 
# does not see that it can Ricci cycle.
#
W_{a b m n} W_{a b p q} - 2*(W_{a m b n} W_{a p b q} - W_{a m b n} W_{a q b p});
#
# Use this one to test the Young tableau idea. I think it should
# handle this one, since it essentially boils down to the idea
# that you write down the full Young symmetrised objects of all
# terms, and then collect.