Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Plus sets in mathematica..?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76008] Re: Plus sets in mathematica..?
  • From: dh <dh at metrohm.ch>
  • Date: Mon, 14 May 2007 05:52:38 -0400 (EDT)
  • References: <f26ocl$4tn$1@smc.vnet.net>


Hi,

"Outer" does what you want, e.g:

A={1,2,3};

B={40,50,60,70};

Outer[Plus,A,B]//Flatten

hope this helps, Daniel





changbo wrote:

> I want to make a function "f", its domain is every thinkable two sets, and the result is  {a+b | aâ??A,bâ??B} for A,B.

> 

>  ex) A={1,2,3}, B={40,50,60,70}, 

>  then I have f[A,B] as

>  {41,42,43,51,52,53,61,62,63,71,72,73}.

> 

>  How can I construct function "f"? Let me know the source.. Thank you very much

> 




  • Prev by Date: Re: ListPlot
  • Next by Date: Re: Picking out pieces of a list
  • Previous by thread: Re: Plus sets in mathematica..?
  • Next by thread: Mathematica 6: How to add documentation for user packages?