Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105325] Re: to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sat, 28 Nov 2009 01:05:48 -0500 (EST)

On 11/27/09 at 6:27 AM, lawrenceteo at yahoo.com (Lawrence Teo) wrote:

>I have a question. How to make {f,g}[a,b,c] to become
>{{f[a],g[a]},{f [b],g[b]},{f[c],g[c]}}?

In[6]:= Transpose[Thread[#[{a, b, c}]] & /@ {f, g}]

Out[6]= {{f[a], g[a]}, {f[b], g[b]}, {f[c], g[c]}}



  • Prev by Date: Re: How to make {f,g}[a,b,c] to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}
  • Next by Date: distorting an image
  • Previous by thread: Re: ItemSize and ImageSize->Full , I do not understand what happens
  • Next by thread: Re: to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}