Re: Creating an ordered list of pairs
- To: mathgroup at smc.vnet.net
- Subject: [mg132082] Re: Creating an ordered list of pairs
- From: "Harvey P. Dale" <hpd at hpdale.org>
- Date: Mon, 2 Dec 2013 01:58:02 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- References: <20131201132325.05AF46A00@smc.vnet.net>
Tony: Flatten[Outer[List,Range[3],5*Range[3]],1] Best, Harvey -----Original Message----- From: amannucci [mailto:Anthony.J.Mannucci at jpl.nasa.gov] Sent: Sunday, December 1, 2013 8:23 AM To: mathgroup at smc.vnet.net Subject: [mg132082] Creating an ordered list of pairs How do I create an ordered list of pairs of the following structure: {{x1,y1}, {x2,y2}, {x3,y3}, ...} ? I want x1, x2, and x3 to be increasing in constant-interval steps (e.g. 1,2,3) and similarly for the y's (e.g. 5,10,15). E.g. {{1,5}, {1,10}, {1,15}, {2, 5}, {2,10}, ...} etc. I cannot figure out how to do this with Table or Array. Is there another function that will do this? Table does not create the correct nesting or structure. Thanks! -Tony
- References:
- Creating an ordered list of pairs
- From: amannucci <Anthony.J.Mannucci@jpl.nasa.gov>
- Creating an ordered list of pairs