f2[x_, y_] := x^2 + y^3;
g[t_] := {t^2, 3*t+1}
$g$ returns a list, but $f_2$ is a two variable function.
So, we cannot compose these functions:
f2[g[1]]
f1[v_] := v[[1]]^2 + v[[2]]^3
g[t_] := {t^2, 3*t+1}
We can compose these functions like the following:
f1[g[1]]
But I don't want to use a vector variable function like $f_1$.
Any good idea?
f1[{x_,y_}]:=x^2+y^3
be what you want? $\endgroup$