Hi all --
My question regards Maxima's facility for creating lists. The context
for this is sequences. I have a simple question:
Suppose I have two lists, say [1,2,3] and the other made from doubling
each value of the first, i.e., [2,4,6].
So, the list I'd like returned would be: [[1,2],[2,4],[3,6]]
It's not create_list:
(%i20) create_list([i,j],i,[1,2,3],j,[2,4,6]);
(%o20) [[1, 2], [1, 4], [1, 6], [2, 2], [2, 4], [2, 6], [3, 2], [3, 4], [3, 6]]
I couldn't really identify a proper function for this from the Manual.
I even tried outermap:
(%i35) ii:makelist(i,i,1,5);
(%o35) [1, 2, 3, 4, 5]
(%i36) outermap(lambda([x,y],[x,y]),ii,xx);
1 1 1 1
(%o36) [[[1, 1], [1, - -], [1, -], [1, - -], [1, -]],
2 3 4 5
1 1 1 1
[[2, 1], [2, - -], [2, -], [2, - -], [2, -]],
2 3 4 5
1 1 1 1
[[3, 1], [3, - -], [3, -], [3, - -], [3, -]],
2 3 4 5
1 1 1 1
[[4, 1], [4, - -], [4, -], [4, - -], [4, -]],
2 3 4 5
1 1 1 1
[[5, 1], [5, - -], [5, -], [5, - -], [5, -]]]
2 3 4 5
Any help appreciated. TIA.
Henry