Heuristically, you could do something like this a few times:
is (equal( subst(s:random(100),x,g), subst(s+random(100),x,g) ).
You should control for error escapes and some number of trials.
Though maybe this is not what you want, since it will detect dependencies
that may not be explicit ?
RJF
> -----Original Message-----
> From: maxima-bounces at math.utexas.edu
> [mailto:maxima-bounces at math.utexas.edu] On Behalf Of Edwin Woollett
> Sent: Sunday, June 15, 2008 1:38 PM
> To: maxima mailing list
> Subject: inexpression(x,g) ?
>
> I want to get a yes/no answer to the question:
>
> does the expression g depend explicitly on a variable x.
>
> Is there some built in function for this?
>
> My only approach so far is
>
> elementp( string(x), setify( charlist( string(g) ) ) )
>
> Ted Woollett
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>