detect sqrt in expression?



On Thu, Nov 17, 2011 at 16:59, Edwin Woollett <woollett at charter.net> wrote:

> ...I should have defined my goal, ...if the integrand expr contains
> multiple
> valued functions.
>

...Clearly this kind of filter will be rather complicated....
>

Really?  It seems pretty straightforward to me, something like

hasmultival(ex,var) := if mapatom(ex) then false

else if member(inop(ex), '[log, asin, acos, asinh, etc. etc.] ) and
member(var,listofvars(ex)) then true

else if inop(ex) = "^" and ...

else ...recursive case...

Not very complicated.

           -s