Arguments of operatorp



On 2012-06-19, J?rome Laurens <jerome.laurens at u-bourgogne.fr> wrote:

> but I don't know how to recognize diff or integrate operators
> for example operatorp(integrate(...),"integrate"),
> operatorp(diff(...),"diff'), operatorp(diff(...),"derivative") both
> return false.

Try 'integrate, 'diff, 'derivative or nounify('integrate),
nounify('diff), nounify('derivative). Operator names in quotes are for
operators which require special action by the parser (binary, n-ary,
etc).

But I'm not convinced you really want to do that; more below.

> how would I walk an expression to find the integrate and diff operators ?

Well, my advice is, do not continue down this road. Maxima already has
various functions for expression hacking. What are you trying to
accomplish exactly? I will try to help you figure out how to use
existing functions to accomplish it.

best

Robert Dodier