SelectFree[expr, a, b, ...]
is equivalent to
Select[expr, FreeQ2[#, {a,b, ...}]&]
, except the
special cases: SelectFree[a, b]
returns a
and
SelectFree[a,a]
returns 1 (where a
is not a
product or a sum).
Overview, FreeQ2, SelectNotFree.
[a + b + f[a] + d, a] SelectFree
b+d
[x y, x] SelectFree
y
[2 x y z f[x], {x, y}] SelectFree
2 z
[a, b] SelectFree
a
[a, a] SelectFree
1
[1, c] SelectFree
1
[f[x], x] SelectFree
1