## [Maxima-commits] [git] Maxima CAS branch, master, updated. branch-5_32-base-38-ge61b215

 [Maxima-commits] [git] Maxima CAS branch, master, updated. branch-5_32-base-38-ge61b215 From: Jorge Barros de Abreu - 2014-01-29 08:24:55 This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Maxima CAS". The branch, master has been updated via e61b21595368a73864c158606702cc9b7c2ad461 (commit) from ee204b4af4b39923d5f71586ba9ca7868f60a2c7 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit e61b21595368a73864c158606702cc9b7c2ad461 Author: Jorge Barros de Abreu Date: Wed Jan 29 06:24:51 2014 -0200 Adding an example for commutative in Simplification.texi diff --git a/doc/info/Simplification.texi b/doc/info/Simplification.texi index 11de252..5c87ce6 100644 --- a/doc/info/Simplification.texi +++ b/doc/info/Simplification.texi @@ -126,6 +126,31 @@ If @code{declare(h, commutative)} is done, this tells the simplifier that @code{h} is a commutative function. E.g. @code{h(x, z, y)} will simplify to @code{h(x, y, z)}. This is the same as @code{symmetric}. +Exemplo: + +@c ===beg=== +@c S (b, a); +@c S (a, b) + S (b, a); +@c declare (S, commutative); +@c S (b, a); +@c S (a, b) + S (b, a); +@c S (a, c, e, d, b); +@c ===end=== +@example +(%i1) S (b, a); +(%o1) S(b, a) +(%i2) S (a, b) + S (b, a); +(%o2) S(b, a) + S(a, b) +(%i3) declare (S, commutative); +(%o3) done +(%i4) S (b, a); +(%o4) S(a, b) +(%i5) S (a, b) + S (b, a); +(%o5) 2 S(a, b) +(%i6) S (a, c, e, d, b); +(%o6) S(a, b, c, d, e) +@end example + @opencatbox @category{Operators} @category{Declarations and inferences} @closecatbox ----------------------------------------------------------------------- Summary of changes: doc/info/Simplification.texi | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) hooks/post-receive -- Maxima CAS