Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Lists of all values of a two-variable function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64768] Re: Lists of all values of a two-variable function
  • From: "Mark Westwood" <markc.westwood at gmail.com>
  • Date: Thu, 2 Mar 2006 06:48:38 -0500 (EST)
  • References: <du3vcn$mjd$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Jose,

Try something like this:

In[1]:=
l1={a,b,c,d,e};

In[2]:=
l2={x,y,z};

In[6]:=
Outer[fun,l1,l2]//Flatten

replacing fun in the example by your function of 2 variables.  Then
have a look at the Book if you need help in figuring out what is going
on.

Where are the duplicated values you're trying to remove ?  In the
original lists, in the cartesian product of the lists, or in the
results ?  Wherever they are, the right application of Union[] is often
a very good way of eliminating duplicates; as always, refer to the
Book.

Regards
Mark Westwood


  • Prev by Date: Re: NSolve and array
  • Next by Date: Re: Lists of all values of a two-variable function
  • Previous by thread: Re: Lists of all values of a two-variable function
  • Next by thread: Re: Lists of all values of a two-variable function