From 9ee1dc214b3d03747db93463dac9b3f0c63e1501 Mon Sep 17 00:00:00 2001 From: Chris Dams Date: Mon, 7 Aug 2006 16:13:43 +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 7235248a..815064a9 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -2674,11 +2674,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 21e7d4ce..57749cd5 100644 --- a/ginac/container.h +++ b/ginac/container.h @@ -129,6 +129,7 @@ template