Re: Replacing expressions with smaller atoms

*To*: mathgroup at smc.vnet.net*Subject*: [mg100458] Re: [mg100447] Replacing expressions with smaller atoms*From*: Leonid Shifrin <lshifr at gmail.com>*Date*: Thu, 4 Jun 2009 06:32:53 -0400 (EDT)*References*: <200906040733.DAA11881@smc.vnet.net>

Ben, one way would be to use a local rule like L:>(x^2+x+1). Your L then does not have a global value, you use it in your expression until you want to substitute it with x^2+x+1, then you just use (your expression)/.L:>(x^2+x+1) It would be easier to answer your question if you'd provide more information about your problem/goals. Regards, Leonid On Thu, Jun 4, 2009 at 12:33 AM, Ben Forbes <bdforbes at gmail.com> wrote: > If I define an atom eg L=x^2+x+1, is there a way to rewrite an > expression with these atoms? For example: > > L=x^2+x+1 > M=x+(x(x^2+x+1))^(1/2) > > I would like some way to express this as x+(xL)^(1/2). Is this possible? >

**References**:**Replacing expressions with smaller atoms***From:*Ben Forbes <bdforbes@gmail.com>