RE: ExpandAll[(a + b) ** c] ?
- To: mathgroup at smc.vnet.net
- Subject: [mg71162] RE: [mg71097] ExpandAll[(a + b) ** c] ?
- From: "David Park" <djmp at earthlink.net>
- Date: Thu, 9 Nov 2006 03:39:59 -0500 (EST)
Distribute[(a + b) ** c]
a ** c + b ** c
djmp at earthlink.net
From: Christoph Lhotka [mailto:lhotka at astro.univie.ac.at]
To: mathgroup at smc.vnet.net
Ho do I make the non-commutative operator ** distributiv with respect to +,
thus the expression "ExpandAll[(a + b) ** c]" evaluates to "a**c + b**c", by
setting appropiate attributes to ** and + ?
PS: Sure, the rule (a+b)**c->a**c+b**c after the expression works fine, but
its a rule, not an attribute to **, nor to +.
Discussion point: Is there a any reason, why the non-commutative but
associative opertor ** should not be distributive with respect to a linear
operator + in general? To my opinion this would be more straightforward,
calling the operator a multiplicative one. What do you think?
Prev by Date:
Re: Merge of Matrices
Next by Date:
Interupting long computations
Previous by thread:
ExpandAll[(a + b) ** c] ?
Next by thread:
Plotting multi-column data