Is this a bug in pattern matching in Maxima?



Looks like a bug, perhaps  in the definition or use of findexpon

 Robert Marik wrote:
> Hello I have the following code
>
> matchdeclare(g,true);
> defrule(myrule,exp(g),print("exp(g) entered with g=",g));
> myrule(2^(exp(x)));   --- gives g=x but I expected false
> myrule(exp(exp(x)));   ---- gives g=exp(x), as expected
> myrule(x^(exp(x)));   ---- gives g=x but false have been expected
>
>
> Is this a bug in maxima or am I doing something wrong?
>
> Thank you
> Robert
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>