Re: Creating an ordered list of pairs

• To: mathgroup at smc.vnet.net
• Subject: [mg132089] Re: Creating an ordered list of pairs
• From: "Dr. Wolfgang Hintze" <weh at snafu.de>
• Date: Mon, 2 Dec 2013 02:00:22 -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: <l7fd6s\$k56\$1@smc.vnet.net>

```Am Sonntag, 1. Dezember 2013 14:22:36 UTC+1 schrieb amannucci:
> 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

In[19]:= Table[{i, 5*j}, {i, 1, 3}, {j, 1, 3}]

Out[19]= {{{1, 5}, {1, 10}, {1, 15}}, {{2, 5}, {2, 10}, {2,
15}}, {{3, 5}, {3, 10}, {3, 15}}}

Best regards,
Wolfgang

```

• Prev by Date: Re: Cubic Bezier Curves Intersection
• Next by Date: Re: Creating a list of 1x2 element arrays without procedural
• Previous by thread: Re: Creating an ordered list of pairs
• Next by thread: Re: Creating an ordered list of pairs