From: Stavros M. <mac...@gm...> - 2024-10-29 21:02:26
|
nounify/verbify aren't well-defined for non-Maxima symbols like ?foo. I suppose we should have this report an error. ( https://sourceforge.net/p/maxima/bugs/4397/) What is happening is that it adds verb/noun properties both ways when you nounify. On Tue, Oct 29, 2024 at 4:30 PM Eduardo Ochs <edu...@gm...> wrote: > Hi list, > > I was trying to fix a bug in how LispTree handles nouns and verbs and > I think that I found a bug in verbify... try this, and look at what > happens when we run low(f5(foo)) again after running low(f5(?foo)): > > format([args]) := apply(?format, append([false], args)); > low(o) := format("~s",o); > v(o) := verbify(o); > n(o) := nounify(o); > f5(o) := [n(v(o)), v(o), o, n(o), v(n(o))]; > low(f5(foo)); /* ((MLIST SIMP) %FOO $FOO $FOO %FOO $FOO) */ > low(f5(?foo)); /* ((MLIST SIMP) %FOO FOO FOO %FOO FOO) */ > low(f5(foo)); /* ((MLIST SIMP) %FOO $FOO $FOO %FOO FOO) */ > > The result of verbify(nounify(foo)) changes! > > Cheers =/, > Eduardo Ochs > http://anggtwu.net/eev-maxima.html > http://anggtwu.net/lisptree.html > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > |