 
 
 
 
 
 
algebraic substitution rules
- To: mathgroup at smc.vnet.net
- Subject: [mg30716] algebraic substitution rules
- From: Cattiaux Isabelle <Isabelle.Cattiaux at univ-valenciennes.fr>
- Date: Sat, 8 Sep 2001 02:55:46 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
                   
Hi,
                  
  Could someone tell me why the first substitution rule
 works and the second doesn't
                    
In[1]:==
1+x^2+x^3+x^4 /. {x^2->1+x ,x^3->x(1+x) ,x^4->(1+x)^2}
Out[1]==
2 + x + x(1 + x)+ (1 + x)^2
                   
In[78]:==
1+x^2+x^3+x^4 /. {x^2->1+x ,x^3->x(1+x) ,x^4->(1+x)^2,a_->Expand[a]}
Out[78]==
1 + x^2 + x^3 + x^4
--
Isabelle Cattiaux-Huillard
Universite de Valenciennes

