Assigning custom properties



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

>I?would?like?to?assign?a?property?to?an?object?or?expression?in?Maxima
>that?is?not?already?known?to?Maxima.??For?example
>I?would?like?to?be?able?to?say,?declare(expr,?'piecewise)?even?though
>there?is?no?such?thing?to?Maxima.

Non-atoms cannot be declared, but you can do this:

 (%i1) declare(piecewise,feature)$
 (%i2) declare(f, piecewise)$
 (%i3) featurep(f, piecewise);
 (%o3) true

Barton