From 4e53a7554e39c687b6cf467af3c967760ce3a521 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 22 Jul 2014 07:48:25 +0000 Subject: [PATCH] Fix example of symmetrization in tutorial. The old example was illegal C++. Thanks to Rubel Zilibowitz for reporting this error. --- doc/tutorial/ginac.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.25.4