Composition of functions
There are different ways to define a function of more than one variable in Mathematica.
f[x_,y_,z_,t_]:=
g[x_,y_]:={y,}
h[t_]:={Sin[t],Cos[t],t,2t}
Taking the composition of two functions is relatively easy (don't forget to evaluate the functions above first):
However, try:
This doesn't work. It SHOULD work, but it doesn't. To get around this problem, we will often define functions of more than one variable in the following way:
Now:
Problem
Will f[h[t]] work with the above definitions? Should it? If so, modify the definitions so it does.
Created by Mathematica (February 28, 2007) |