X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2Fginac.texi;h=9f2abc1c86cb4f12a2125ae3714eb25e79f98358;hp=bdea81b80a842aa0c6c71a5b193dbcf8e8754f60;hb=ef2ed9a711c416722c34548015b4ae3621948c1c;hpb=4cf53676d7823ec3c55a90df7723f7f1492a95b2 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: