This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Tests /

FreeQ

FilledSmallSquare FreeQ[expr, form] yields True if no subexpression in expr matches form, and yields False otherwise.

FilledSmallSquare FreeQ[expr, form, levelspec] tests only those parts of expr on levels specified by levelspec.

FilledSmallSquare form can be a pattern.

FilledSmallSquare Example: FreeQ[f[x^2] + y^2, x^_] LongRightArrow.

FilledSmallSquare FreeQ looks at the heads of raw expressions, testing whether those heads match form.

FilledSmallSquare See Section 1.8.5, Section 2.1.5 and Section 2.3.5.

FilledSmallSquare See also: MemberQ, Count.

FilledSmallSquare New in Version 1.

Further Examples