format package and exp



1. Whatever simplification you have in mind for the power Z in %e^Z, why
don't you use tellsimp for this process, if it is not already something done
by maxima? You have not said what simplification you have in mind, so maybe
a built-in program (like ratsimp) does it already.

2.  you could do this:  exptest(f):= (not (atom(f)) and op(f)="^" and
inpart(f,1)=%e.

RJF 

> -----Original Message-----
> From: maxima-bounces at math.utexas.edu 
> [mailto:maxima-bounces at math.utexas.edu] On Behalf Of Javier Sanchez
> Sent: Thursday, March 01, 2007 1:52 AM
> To: maxima at math.utexas.edu
> Subject: format package and exp
> 
> What I want to do is to simplify the argument of the 
> exponential function.
> 
> I am using the "format" package and I konw how to simplify 
> the argument
> of different operators by building test functions.
> 
> What I do not know is how to do it with the exponential 
> function. I know
> that exp(x) is automatically simplified to %e^x. What I want 
> to do is to 
> find
> a way of finding the argument of the exponential in an 
> expression, i.e. 
> build the
> equivalent of the following function
> 
> logtest(f):=not(atom(f)) and op(f)='log
> 
> but with the exponential
> 
> exptest(f):=not(atom(f) and op(f)='the exponential operator 
> in the rigth 
> form
> 
> Thanks
> 
> Javi
> 
> 
> 		
> ______________________________________________ 
> LLama Gratis a cualquier PC del Mundo. 
> Llamadas a fijos y msviles desde 1 cintimo por minuto. 
> http://es.voice.yahoo.com
>