({{, (RefLink[TargetFunctions, paclet:ref/TargetFunctions])
is an option for functions such as (RefLink[ComplexExpand, paclet:ref/ComplexExpand]) and (RefLink[FindDistribution, paclet:ref/FindDistribution]) that specifies what functions to attempt to generate in the output. }})

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

This gives an answer in terms of (RefLink[Re, paclet:ref/Re])[z] and (RefLink[Im, paclet:ref/Im])[z]:

ComplexExpand[Re[Tan[z]],z]

With (RefLink[TargetFunctions, paclet:ref/TargetFunctions])->{(RefLink[Abs, paclet:ref/Abs]), (RefLink[Arg, paclet:ref/Arg])}, the answer is given in terms of (RefLink[Abs, paclet:ref/Abs])[z] and (RefLink[Arg, paclet:ref/Arg])[z]:

ComplexExpand[Re[Tan[z]],z,TargetFunctions->{Abs,Arg}]

Use (RefLink[Conjugate, paclet:ref/Conjugate]) as a target function:

ComplexExpand[Re[Tan[z]],z,TargetFunctions->Conjugate]

Generate data sampled from a mixture distribution:

𝒟 =MixtureDistribution[{1,1},{ExponentialDistribution[1],NormalDistribution[9,0.8]}];

data=RandomVariate[𝒟, 2000];

Estimate the best distribution from this data:

(Subscript[e𝒟, 1]) = FindDistribution[data]

With (RefLink[TargetFunctions, paclet:ref/TargetFunctions])->{(RefLink[GammaDistribution, paclet:ref/GammaDistribution]),(RefLink[NormalDistribution, paclet:ref/NormalDistribution])}, the answer is given in terms of gamma distributions and normal distributions:

(Subscript[e𝒟, 2]) = FindDistribution[data, TargetFunctions->{GammaDistribution, NormalDistribution}]

With (RefLink[TargetFunctions, paclet:ref/TargetFunctions])->{(RefLink[GammaDistribution, paclet:ref/GammaDistribution])}, the answer is given in terms of gamma distributions:

(Subscript[e𝒟, 3]) = FindDistribution[data, TargetFunctions->{GammaDistribution}]

Compare the PDFs for the three distributions:

Plot[{PDF[(Subscript[e𝒟, 1]),x],PDF[(Subscript[e𝒟, 2]),x], PDF[(Subscript[e𝒟, 3]),x]},{x,-3,15},PlotLegends->{"(Subscript[e𝒟, 1])","(Subscript[e𝒟, 2])","(Subscript[e𝒟, 3])"}, PlotRange->All]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[FunctionExpand, paclet:ref/FunctionExpand])  ▪  (RefLink[TransformationFunctions, paclet:ref/TransformationFunctions])}})}})