- #1
Sarah rob
- 16
- 0
If I want to put these two functions
j[x_] := 2 x
k[x_] := 3 x
in pairs e.g. for the 1 st 4 terms of the functons i done
Table[{j[x], k[x]}, {x, 1, 4}]
to get
{{2, 3}, {4, 6}, {6, 9}, {8, 12}}
However i want to run this for several interations so that I get
{{2, 3}, {4, 6}, {6, 9}, {8, 12}}
{{4, 9}, {8, 18}, {12, 27}, {16, 32}}
{{8, 27}, {16, 54}, {24, 81}, {32, 96}}
etc ...
I am trying to use NestList but it doesn' t work with Table, is there
another way other than Table I can combine the functions
j[x_] := 2 x
k[x_] := 3 x
in pairs e.g. for the 1 st 4 terms of the functons i done
Table[{j[x], k[x]}, {x, 1, 4}]
to get
{{2, 3}, {4, 6}, {6, 9}, {8, 12}}
However i want to run this for several interations so that I get
{{2, 3}, {4, 6}, {6, 9}, {8, 12}}
{{4, 9}, {8, 18}, {12, 27}, {16, 32}}
{{8, 27}, {16, 54}, {24, 81}, {32, 96}}
etc ...
I am trying to use NestList but it doesn' t work with Table, is there
another way other than Table I can combine the functions