I can activate an expression with Inactive
objects such as
expr = Inactive[f][Inactive[f][x], y] + Inactive[f]
by applying Activate
:
Activate[expr]
(*f + f[f[x],y]*)
But also, I can achieve the same task with ReplaceAll
:
expr /. Inactive[f] :> f
Should I be aware of any differences between these two methods of activation? Or is Activate
really just ReplaceAll
under the hood? Or maybe it is the same as Replace[expr,Inactive[f] :> f,{0,Infinity},Heads->True
due to similarities in options?