X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=doc%2Ftutorial%2Fginac.texi;h=4a29969f1fd33160b7a0cc2e2718ccfd3231b0a6;hb=cc1134a8b44b7dc88030cb3385f01159ad5b74f7;hp=86ca84a5fb5eb588c28efe969598452306d02b09;hpb=a485a0a9917f8870bbb3f8c8d77292a736ba28b4;p=ginac.git diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index 86ca84a5..4a29969f 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -2658,7 +2658,7 @@ representation @code{diag(1, 1, 1, ...)}. It is constructed by the function k(symbol("k"), 3), l(symbol("l"), 3); ex e = indexed(A, i, j) * indexed(B, k, l) - * delta_tensor(i, k) * delta_tensor(j, l) << endl; + * delta_tensor(i, k) * delta_tensor(j, l); cout << e.simplify_indexed() << endl; // -> B.i.j*A.i.j @@ -3507,6 +3507,11 @@ create the symmetric and antisymmetric structure constants @math{d_abc} and @math{f_abc} which satisfy @math{@{T_a, T_b@} = 1/3 delta_ab + d_abc T_c} and @math{[T_a, T_b] = i f_abc T_c}. +These functions evaluate to their numerical values, +if you supply numeric indices to them. The index values should be in +the range from 1 to 8, not from 0 to 7. This departure from usual conventions +goes along better with the notations used in physical literature. + @cindex @code{color_h()} There's an additional function