[newbie] ratsimp question



(%i1) trace(ratsimp)$
(%i2) ratsimp(x^g(x^(b+1/b))), ratsimpexpons : true;
1 Enter ratsimp[-1]
1 Exit  ratsimp-1
1 Enter ratsimp[b+1/b]
1 Exit  ratsimp(b^2+1)/b
1 Enter ratsimp[2]
1 Exit  ratsimp2
1 Enter ratsimp[-1]
1 Exit  ratsimp-1
1 Enter ratsimp[g(x^((b^2+1)/b))]     <--- ratsimp applied to exponent
1 Exit  ratsimpg(x^(b+1/b))           <--- revert exponent 
1 Enter ratsimp[x^g(x^(b+1/b))] 
1 Exit  ratsimpx^g(x^(b+1/b))
(%o2) x^g(x^(b+1/b))

Another workaround:

(%i7) scanmap('ratsimp, (x^g(x^(b+1/b))),'bottomup),ratsimpexpons : true;

(%o7) x^g(x^((b^2+1)/b))

Barton

maxima-bounces at math.utexas.edu wrote on 01/24/2010 08:18:43 AM:

> [image removed] 
> 
> Re: [Maxima] [newbie] ratsimp question
> 
> Stavros Macrakis 
> 
> to:
> 
> gelu precup
> 
> 01/24/2010 08:18 AM
> 
> Sent by:
> 
> maxima-bounces at math.utexas.edu
> 
> Cc:
> 
> maxima
> 
> Sorry, this appears to be a bug.
> 
> A workaround:
> 
> substpart(ratsimp(piece),expr,2,1,2);
> 
> Check
>   ? substpart
>   ? piece
> 
> for more info.
> 
>            -s

> On Sun, Jan 24, 2010 at 9:12 AM, gelu precup <geluprecup at yahoo.com> 
wrote:
> expr:x^g(x^(b+1/b)); 
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima