       Re: Particular structure

• To: mathgroup at smc.vnet.net
• Subject: [mg33560] Re: Particular structure
• From: "Allan Hayes" <hay at haystack.demon.co.uk>
• Date: Sun, 31 Mar 2002 04:09:10 -0500 (EST)
• References: <a81jgj\$778\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Yas,

F/@Map[First,Transpose[Outer[f,{x1,x2,x3},{y1,y2,y3,y4},{z}]],{2}]

{F[{f[x1,y1,z],f[x2,y1,z],f[x3,y1,z]}],F[{f[x1,y2,z],f[x2,y2,z],f[x3,y2,z]}]
,

F[{f[x1,y3,z],f[x2,y3,z],f[x3,y3,z]}],F[{f[x1,y4,z],f[x2,y4,z],f[x3,y4,z]}]}

Where F is the function to be used at the second stage.

--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Yas" <yast at optushome.com.au> wrote in message
news:a81jgj\$778\$1 at smc.vnet.net...
> G'day,
> How do I go about achieving the structured list below,
>
> {f[x1, y1, z], ... , f[xn, y1, z]}
>
> followed by some operation on the above list (e.g Fold), store the
> result and then, do the same again for other y values, as in,
>
> {f[x1, ym, z], ... , f[xn, ym, z]}
>
> until the last value of ym.
>
> In summary, the n values of x get slotted in first for one value of y
> then the resulting list is evaluated, the answer stored, values of x get
> slotted in again, y is incremented and so forth until all (m) values of
> y have been done.
>
> Thanks
> Yas
>
>

```

• Prev by Date: Re: a + b = c + d where a^2 + b^2 = c^2 + d^2.
• Next by Date: Re: Plotting multiple functions with different plot ranges?
• Previous by thread: Re: Particular structure