X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2Fginac.texi;h=236d98ddeb93b61c477e6bb48cac78c2591245ec;hp=2010a9a7d6d1e8e7343c9131528c1c7c8862c574;hb=4e53a7554e39c687b6cf467af3c967760ce3a521;hpb=13964f3416ec9de8829b57d4a2bbd9fe9a6db4ef diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index 2010a9a7..236d98dd 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -5772,11 +5772,11 @@ almost any kind of object (anything that is @code{subs()}able): idx i(symbol("i"), 3), j(symbol("j"), 3), k(symbol("k"), 3); symbol A("A"), B("B"), a("a"), b("b"), c("c"); - cout << indexed(A, i, j).symmetrize() << endl; + cout << ex(indexed(A, i, j)).symmetrize() << endl; // -> 1/2*A.j.i+1/2*A.i.j - cout << indexed(A, i, j, k).antisymmetrize(lst(i, j)) << endl; + cout << ex(indexed(A, i, j, k)).antisymmetrize(lst(i, j)) << endl; // -> -1/2*A.j.i.k+1/2*A.i.j.k - cout << lst(a, b, c).symmetrize_cyclic(lst(a, b, c)) << endl; + cout << ex(lst(a, b, c)).symmetrize_cyclic(lst(a, b, c)) << endl; // -> 1/3*@{a,b,c@}+1/3*@{b,c,a@}+1/3*@{c,a,b@} @} @end example