Subject: How does one tell if something is a function?
From: James Amundson
Date: Sun, 03 Apr 2005 16:04:57 -0500
On Fri, 2005-03-18 at 10:45, Barton Willis wrote:
> -----maxima-admin@math.utexas.edu wrote: -----
>
> > Nevermind, found mfboundp.
>
> There's a problem using mfboundp.
>
> (%i1) f(x) := x$
> (%i2) to_lisp()$
> Type (to-maxima) to restart
> MAXIMA>(mfboundp '$f)
> NIL
> MAXIMA>(mfboundp '|$f|)
> (MEXPR ((LAMBDA) ((MLIST) |$x|) |$x|))
>
> How does one convert $f to |$f|?
(obviously, I'm way behind on email...)
I don't know which version of Maxima you are using, but that's not the
way it works for me in the current cvs version:
(%i1) f(x) := x$
(%i2) to_lisp()$
Type (to-maxima) to restart, ($quit) to quit Maxima.
MAXIMA> (mfboundp '$f)
(MEXPR ((LAMBDA) ((MLIST) $X) $X))
MAXIMA> ($quit)
Returning to Maxima
--Jim