Does 'freeof' have any friends?



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

>I'm?looking?for?a?function?(perhaps?called?'freevars')?that?does?much?of
>the?same?work?as?'freeof',?but?simply?returns?a?list?of?all?the?free
>variables?in?an?expression.??

Maybe you can build what you need using the option variable listdummyvars. Here is
a start:

 (%i12) free_vars(e) := block([listdummyvars : false, listconstvars : false], listofvars(e))$

 (%i15) free_vars(integrate(%pi * f(x + h),x,p,q+w));
 (%o15) [h,p,q,w]

You might search the bug list for bugs associated with listdummyvars : false.

--Barton