[newbie] Question about quoting



Hello All,

I have a quistion about quoting.

(%i1) G(x) := x^3 + x^2;
                                         3    2
(%o1)                           G(x) := x  + x
(%i2) F: G$


*** The question is: how to construct 'G(x) using F?


A seems-to-be-right for me answer is wrong:

(%i3) noundisp: true$

(%i4) '(''F)(x);
(%o4)                                G(x)

(%i5) 'G(x) - '(''F)(x);
(%o5)                           'G(x) - G(x)

From lisp point of view they are different (note %g vs $g):
(%i6) :lisp #$'G(x)$;

((%g SIMP) $X)

(%i7) :lisp #$'(''F)(x)$;

(($g SIMP) $X)


extra quoting doesn't help:
(%i8) 'G(x) - '('(''F))(x);
(%o8)                           'G(x) - 'G(x)

(%i9) ev(%);
(%o9)                           'G(x) - G(x)


but

(%i10) 'G(x) - 'G(x);
(%o10)                                 0

and

(%i11) :lisp #$'('(''F))(x)$;

((MQAPPLY SIMP) ((MQUOTE SIMP) $g) $X)



Please help!


-- 
    ????? ????????, ??????.
    http://landau.phys.spbu.ru/~kirr/aiv/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.math.utexas.edu/pipermail/maxima/attachments/20070119/46671b79/attachment-0001.pgp