SelectNotFree[expr, x]
returns that part of expr
which is not free of any occurrence of x
.
SelectNotFree[expr, a, b, ...]
is equivalent to Select[expr, !FreeQ2[#, {a, b, ...}]&]
, except the special cases: SelectNotFree[a, b]
returns 1
and SelectNotFree[a, a]
returns a
(where a
is not a product or a sum).
[a + b + f[a], a] SelectNotFree
f(a)+a
[2 x y f[x] z, {x, y}] SelectNotFree
x y f(x)
[a, b] SelectNotFree
1
[a + x, b] SelectNotFree
0
[a, a] SelectNotFree
a
[1, c] SelectNotFree
1
[f[x], x] SelectNotFree
f(x)