Subject: Making the result of INTEGRATE into a function
From: Daniel Lyddy
Date: Thu, 11 Aug 2005 09:43:52 -0700 (PDT)
--- Robert Dodier wrote:
> On 8/10/05, Billinghurst, David (CALCRTS) wrote:
>
> > (%i2)
> g(x,y):=''(integrate(integrate(f(x,y),x),y));
>
> In case it's not clear, there are two single quotes
> there,
> not a double quote. The '' tells Maxima to give the
> following
> expression an extra evaluation.
I had tried something like this, only I did not know
you needed to enclose the expression on the right in
parentheses.
F(x,y) := ''integrate(integrate(f(x,y),x),y);(%o5)
F(x,y):=INTEGRATE(INTEGRATE(f(x,y),x),y)(%i6)
F(1,1);Attempt to integrate wrt a number: 1#0:
F(x=1,y=1) -- an error. Quitting. To debug this try
DEBUGMODE(TRUE);
Now that I look at the reference manual again, I see
that there is a difference:
''(F(X)) means evaluate the expression F(X) an extra
time. ''F(X) means return the verb form of F applied
to [X].
Although I must confess I have no idea what "return
the verb for of F applied to [X]" means. As near as I
can tell, the following two commands return the same
result:
F(x,y) := ''integrate(integrate(f(x,y),x),y);
F(x,y) := integrate(integrate(f(x,y),x),y);
Maybe someone could explain the difference in detail
in a newbie manual. :-)
Thank you, David and Robert.
Dan
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs