tokenizer / parser declarations (?)



-----maxima-bounces at math.utexas.edu wrote: -----

>Maybe it is the ALIAS property that's the key here; the trig verbs
>seem to have it. With the above stuff + (setf (get '$blip 'alias) '%blip)
>I get this:

Thanks! That seems to work. I think each bessel function needs an alias;
consider:

(%i1) tellsimp(bessel_j(0,z), 42);
(%o1) [bessel_jrule1,false]

Bad:

(%i2) bessel_j(0,z);
(%o2) bessel_j(0,z)

Bad:

(%i3) 'bessel_j(0,z);
(%o3) bessel_j(0,z)

OK:

(%i4) '(bessel_j(0,z));
(%o4) 42

Give $bessel_j an alias and try again:

(%i5) :lisp(setf (get '$bessel_j 'alias) '%bessel_j);

(%i5) tellsimp(bessel_j(0,w), 137);
(%o5) [bessel_jrule1,bessel-j-simp]

All is well:

(%i6) bessel_j(0,w);
(%o6) 137

(%i7) 'bessel_j(0,w);
(%o7) 137

(%i8) '(bessel_j(0,w));
(%o8) 137

BW