Mathematica 9 is now available

FreeQ

Usage

FreeQ[expr, form] yields True if no subexpression in expr matches form, and yields False otherwise.
FreeQ[expr, form, levelspec] tests only those parts of expr on levels specified by levelspec.


Notes

form can be a pattern.
• Example: FreeQ[f[x^2] + y^2, x^_]LongRightArrow .
FreeQ looks at the heads of raw expressions, testing whether those heads match form.
• See also: MemberQ, Count, StringFreeQ.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.