FreeQ2[expr, {form1, form2, ...}]
yields True
if expr
does not contain any occurrence of form1, form2, ...
and False
otherwise.
FreeQ2[expr, form]
is the same as FreeQ[expr, form]
.
Overview, SelectFree, SelectNotFree.
[x + f[x] + y, {a, x}] FreeQ2
\text{False}
[x + f[x] + y, {a, b}] FreeQ2
\text{True}
[x, y] FreeQ2
\text{True}
[f[x], f] FreeQ2
\text{False}