I want to list {a,c} but c is depend on b, suppose the dependence on b can not written as a simple function c(b). How can I create a list of {a,c} list without list out b in the intermediate.
My workaround is this:
list = Table[{a, b = a^2, c = b^2}, {a, 0, 10, 1}];
listWanted = list[[All, {1, 3}]]
However suppose the intermediate variable is many, doing this is cumbersome, at least not neat. I just want to calculate these intermediate value but not list them.
list = Table[{a, (a^2)^2}, {a, 0, 10, 1}]. – march Oct 26 '15 at 03:41Table[{a, b = a^2; c = b^2}, {a, 0, 10, 1}]. – J. M.'s missing motivation Oct 26 '15 at 03:49cis can not be written as a simple function ofa– an offer can't refuse Oct 26 '15 at 06:19