Hello!
I am enjoying using Mathematica on a daily basis, but as I am a newbie I do not manage to do everthing I want , yet.
How do I tell Mathematica to compute f(f(x)) when f(x)=(x+3)^2 or something like that?
Best regards,
Ulf Karlsson
Hello!
I am enjoying using Mathematica on a daily basis, but as I am a newbie I do not manage to do everthing I want , yet.
How do I tell Mathematica to compute f(f(x)) when f(x)=(x+3)^2 or something like that?
Best regards,
Ulf Karlsson
I would do it this way:
f[x_] := (x + 3)^2;
f[f[x]]
Beware the difference between square brackets and round parentheses, and between the pattern x_ and the variable x.
Thanks!
//Ulf
Thanks!
//Ulf