({{, (RefLink[ExcludedForms, paclet:ref/ExcludedForms])
is an option that gives a list of patterns for expressions that should be excluded from an operation performed by a particular function. }})

OpenersNotesSection(Spacer1)Details

Different functions use different default settings for (RefLink[ExcludedForms, paclet:ref/ExcludedForms]).

In functions such as (RefLink[Simplify, paclet:ref/Simplify]) and (RefLink[FullSimplify, paclet:ref/FullSimplify]), (RefLink[ExcludedForms, paclet:ref/ExcludedForms]) specifies classes of expressions that should not be touched if they are encountered at intermediate stages in a computation.

In functions such as (RefLink[TakeLargest, paclet:ref/TakeLargest]) and (RefLink[TakeSmallest, paclet:ref/TakeSmallest]), (RefLink[ExcludedForms, paclet:ref/ExcludedForms]) specifies classes of expressions that should be considered in selecting elements to return.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

This gives no simplification:

Simplify[(x-1)(x+1)(x^2+1)(x-2)^10]

Excluding transformations of (x-2)^10 allows you to expand the remaining terms:

Simplify[(x-1)(x+1)(x^2+1)(x-2)^10,ExcludedForms->{(_Plus)^_}]

This gives a result in terms of (RefLink[Arg, paclet:ref/Arg])[x]:

FullSimplify[Im[Log[x]+2 x-3y]-2Im[x]]

This specifies that (RefLink[Log, paclet:ref/Log])[x] should not be transformed:

FullSimplify[Im[Log[x]+2 x-3y]-2Im[x],ExcludedForms->{Log[_]}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TimeConstraint, paclet:ref/TimeConstraint])  ▪  (RefLink[ComplexityFunction, paclet:ref/ComplexityFunction])  ▪  (RefLink[DeleteMissing, paclet:ref/DeleteMissing])  ▪  (RefLink[DeleteCases, paclet:ref/DeleteCases])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Simplification, paclet:tutorial/Simplification])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Algebraic Transformations, paclet:guide/AlgebraicTransformations])}})}})