I would like to construct a list of Functions that can be used like:
F[z][[i]]
Where one can choose between list elements with i
and that the function evaluates at the point z
. So that one can have either a List of Functions when z
is declared or a List of Values when z
has a particular value.
I tried to do it like:
n = 10;
t[z_] := 0.58 ( 1 - 0.02624 Power[ Abs[z]/500, 2.2306]);
c[z_] := t[z] - t[0];
R1[z_] := 125 + t[z] + c[z];
RList = {Function[z, R1[z]]};
Do[AppendTo[RList, RList[[i]] + Function[z, t[z] + c[z]] ], {i,n-1}];
AppendTo
works that way. But You misuseFunction
. The example from the Mathematica documentation forFunction
isf = (3 + #) &
and{f[a], f[b]}
with the result{3 + a, 3 + b}
. Pure functions are the path to success for such kind of operation. Best luck. $\endgroup$Function
to the standard introduced in V10. $\endgroup$