From e93f20fd0deb9b45d2163cbec247e5181f021a28 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Thu, 21 Nov 2002 19:22:39 +0000 Subject: [PATCH] fixed a bug in the dummy index symmetrization [Chris Dams] --- ginac/indexed.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index a52d6d77..e32f4c7a 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -820,13 +820,13 @@ public: symminfo(const ex & symmterm_, const ex & orig_) { - if (is_a(orig_)) { + if (is_a(orig_) && is_a(orig_.op(orig_.nops()-1))) { ex tmp = orig_.op(orig_.nops()-1); orig = orig_ / tmp; } else orig = orig_; - if (is_a(symmterm_)) { + if (is_a(symmterm_) && is_a(symmterm_.op(symmterm_.nops()-1))) { coeff = symmterm_.op(symmterm_.nops()-1); symmterm = symmterm_ / coeff; } else { -- 2.44.0