delayed evaluation



Maybe you want what you get from  ff1(x):=''gg(x).    That is, two '  in a
row.
RJF

> -----Original Message-----
> From: maxima-bounces at math.utexas.edu 
> [mailto:maxima-bounces at math.utexas.edu] On Behalf Of Barton Willis
> Sent: Wednesday, June 20, 2007 4:04 AM
> To: amli at comcast.net
> Cc: maxima at math.utexas.edu
> Subject: Re: [Maxima] delayed evaluation
> 
> What is wrong with your function ff?
> 
> (%i18) ff(x);
> (%o18) x^3
> 
> Alternatively, try ev(%,nouns) instead of ev(%):
> 
> (%i19) ff1(x);
> (%o19) gg(x)
> (%i20) ev(%,nouns);
> (%o20) x^3
> 
> Barton
> 
> -----maxima-bounces at math.utexas.edu wrote: -----
> 
> >To: maxima at math.utexas.edu
> >From: amli at comcast.net
> >Sent by: maxima-bounces at math.utexas.edu
> >Date: 06/20/2007 01:04AM
> >Subject: delayed evaluation
> >
> >
> >I have an expression that has some common long expressions.  
> I would like
> >to represent this as a function which depends upon other 
> functions (like
> >substituting functions for long expressions).   Consider
> >
> >gg:lambda([x],x^3);
> >
> >ff:lambda([x],gg(x));
> >
> >ff1:lambda([x],'gg(x));
> >
> >
> >What I want is function ff1.   But how does one evaluate ff1 
> so that gg(x)
> >is subsitituted when desired?
> >
> >  ff1(x);
> > (%o6) gg(x)
> >(%i7) ev(%);
> >(%o7) gg(x)                       // I would like this to be x^3
> >
> >
> >Thanks for your help
> >
> >
> >Ram Kochhar
> >
> >
> >
> >
> >_______________________________________________
> >Maxima mailing list
> >Maxima at math.utexas.edu
> >http://www.math.utexas.edu/mailman/listinfo/maxima
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>