From ef2ed9a711c416722c34548015b4ae3621948c1c Mon Sep 17 00:00:00 2001 From: Chris Dams Date: Sat, 29 Jul 2006 02:34:27 +0000 Subject: [PATCH] Bug in expand_dummy_sum is fixed. --- doc/tutorial/ginac.texi | 6 +---- ginac/container.h | 1 + ginac/indexed.cpp | 55 +++++++++++++++++------------------------ ginac/indexed.h | 2 +- ginac/inifcns.cpp | 4 +-- 5 files changed, 27 insertions(+), 41 deletions(-) diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index bdea81b8..9f2abc1c 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -2729,11 +2729,7 @@ arithmetic class, you just pass it to @code{simplify_indexed()}): The @code{scalar_products} object @code{sp} acts as a storage for the scalar products added to it with the @code{.add()} method. This method takes three arguments: the two expressions of which the scalar product is -taken, and the expression to replace it with. After @code{sp.add(A, B, 0)}, -@code{simplify_indexed()} will replace all scalar products of indexed -objects that have the symbols @code{A} and @code{B} as base expressions -with the single value 0. The number, type and dimension of the indices -don't matter; @samp{A~mu~nu*B.mu.nu} would also be replaced by 0. +taken, and the expression to replace it with. @cindex @code{expand()} The example above also illustrates a feature of the @code{expand()} method: diff --git a/ginac/container.h b/ginac/container.h index 28cf05e4..7f921002 100644 --- a/ginac/container.h +++ b/ginac/container.h @@ -129,6 +129,7 @@ template