[newbie] Question about quoting
- Subject: [newbie] Question about quoting
- From: Barton Willis
- Date: Fri, 19 Jan 2007 06:34:47 -0600
-----maxima-bounces at math.utexas.edu wrote: -----
>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?
Maybe the function 'nounify' will help:
(%i1) G(x) := x^3 + x^2$
(%i2) F : G$
(%i3) nounify(F)(x);
(%o3) G(x)
(%i4) ?print(%);
((|%g| SIMP) $X)
(%o4) G(x)
(%i5) 'G(x);
(%o5) G(x)
(%i6) ?print(%);
((|%g| SIMP) $X)
(%o6) G(x)
Barton