Q: nounify symbols with a 'm prefix ?



On 2/17/07, Douglas Crosher <dtc at scieneer.com> wrote:

> This issue is repeatable here on the unmodified maxima CVS source even on
> CLISP, but does only show up the first time it is executed:
>
> CLISP:
> (%i1) (postfix ("f2"), "f2"(x));
> (%o1)                                F2(x)
> (%i2) (postfix ("f2"), "f2"(x));
> (%o2)                                x f2

OK, I see now. "f2" is not yet declared when "f2"(x) is parsed in %i1,
so %o1 is displayed differently. I don't feel strongly enough about
this particular bit of strangeness to want to change it.

> With these changes:
> "sin"(1)    => sin(1)
> "abs"(1)    => 1
> "SIN"(1)    => SIN(1)
> "ABS"(1)    => ABS(1)
> ?print(nounify("sin")) => %SIN
> ?print(verbify("sin")) => $SIN
> ?print(nounify("abs")) => %MABS
> ?print(verbify("abs")) => MABS

Without thinking too hard about it -- these look OK to me.

Thanks for working on this problem --

Robert