Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VarList={x_, y_};
- ParList={x, y};
- ValList={2, 3};
- f[x_, y_] := x^2 + 3 y^3;
- g[x_, y_] := 3 f[x, y];
- f@@ValList
- g@@ValList
- Out[1]=85
- Out[2]=255
- Clear[f, g];
- f[Sequence@@VarList] := x^2 + 3 y^3;
- g[Sequence@@VarList] := 3 f@@ParList;
- f@@ValList
- g@@ValList
- Out[3]=85
- Out[4]=3 (x^2 + 3 y^3)
Add Comment
Please, Sign In to add comment