Skip to main content
1 of 2
kglr
  • 400.5k
  • 18
  • 488
  • 929

You can Evaluate the rhs of the definition to suppress the HoldAll attribute of SetDelayed:

f[x_, y_, z_] := Evaluate[(int1 + int2 + int3) /. rule1 /. rule2];
f[1, 2, 3]

14

kglr
  • 400.5k
  • 18
  • 488
  • 929