10 Jul 2012 22:13
Fwd: Question about op, args.
SoC Stevenson <steve <at> cs.clemson.edu>
2012-07-10 20:13:31 GMT
2012-07-10 20:13:31 GMT
bash-3.2$ maxima Maxima 5.26.0 http://maxima.sourceforge.net using Lisp SBCL 1.0.57 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. Good afternoon, I was exploring my understanding of the internals. My idea was to take something apart and put it back together. (%i1) teste : a + b $ First surprise was that op(teste) is not a symbol but nounify(op(teste)) is. That's fine. (%i2) lop : nounify(op(teste)); (%o2) mplus So here's the second surprise that args(teste) are reversed. (%i3) largs: args(teste); (%o3) [b, a] (%i5) buildq( [mop : lop, margs : largs], mop ( splice(margs))); (%o5) mplus(b, a) My question is: Am I guaranteed that reverse(args( ... )) is the correct order? --(Continue reading)
RSS Feed