MathGroup Archive 2009

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105328] Re: How to make {f,g}[a,b,c] to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}
  • From: Peltio <peltio at twilight.zone>
  • Date: Sat, 28 Nov 2009 01:06:21 -0500 (EST)
  • Organization: [Infostrada]
  • References: <heoe15$4ph$1@smc.vnet.net>
  • Reply-to: peltioNOSP at Mgmail.com.invalid

Dopo dura riflessione, Lawrence Teo ha scritto :
> 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]}}?

How about

Map[Through[{f, g}[#]] &, {a, b, c}]

?



  • Prev by Date: distorting an image
  • Next by Date: DXF export success
  • Previous by thread: 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 thread: Re: How to make {f,g}[a,b,c] to become {{f[a],g[a]},{f[b],g[b]},{f[c],g[c]}}