File: sym.tex

package info (click to toggle)
cadabra2 2.4.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,732 kB
  • sloc: ansic: 133,450; cpp: 92,064; python: 1,530; javascript: 203; sh: 184; xml: 182; objc: 53; makefile: 51
file content (26 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (9)
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
\cdbalgorithm{sym}{}

Symmetrise a product or tensor in the indicated objects. This works
both with normal objects, as in
\begin{screen}{1,2}
A B C;
@sym!(%){A,B,C};
1/6 A B C + 1/6 A C B + 1/6 B A C 
              + 1/6 B C A + 1/6 C A B + 1/6 C B A;
\end{screen}
as well as with indices. When used with indices, remember to also
indicate whether you want to symmetrise upper or lower indices, as in
the example below.
\begin{screen}{1,2}
A_{m n} B_{p};
@sym!(%){ _{m}, _{n}, _{p} };
1/6 A_{m n} B_{p} + 1/6 A_{m p} B_{n} + 1/6 A_{n m} B_{p}
   + 1/6 A_{n p} B_{m} + 1/6 A_{p m} B_{n} + 1/6 A_{p n} B_{m};
\end{screen}
Anti-symmetrisation (i.e.~introducing a sign depending on the
permutation of each term) is handled by the \subscommand{asym}
algorithm.  

\cdbseealgo{asym}
\cdbseealgo{young_project}
\cdbseealgo{young_project_tensor}