I am trying to write a function of two functions. A function of one function works as in
h[f___, x_, y_] := Integrate[f, x]
h[x^2 + y, x, y]
and this function of two functions also works
h[f___, g___, x_, y_] := f + g
h[x^2 + y, x^3, x, y]
however, this does not work
h[f___, g___, x_, y_] := Integrate[f, x]
h[x^2 + y, x^3, x, y]
Returning the error msg: "Integrate::argmu: Integrate called with 1 argument; 2 or more arguments are expected"
___
(BlankNullSequence
) at all. It may be simply a misunderstanding, and you can use_
(Blank
) instead. Or do you need some kind of optional argument behavior? $\endgroup$