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

MathGroup Archive 2013

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

Search the Archive

Re: Changing a list with the information of other

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131419] Re: Changing a list with the information of other
  • From: sigismond kmiecik <sigismond.kmiecik at wanadoo.fr>
  • Date: Wed, 3 Jul 2013 22:02:02 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <kr0ore$3fd$1@smc.vnet.net>

Alexei

How do you modify your code when some elements in lst2 are not included 
in lst1 ?

For example with lst1 unchanged
and
lst2 = {1, 1 + w, 2 + w, 2 w, 2, 2 + 2 w, z, zz};

the expected answer is to be
{0, 2, 7, 5, 4, 6}

Thanks

Sigismond Kmiecik






  • Prev by Date: Re: Calculating derivate in Mathematica 9 giving wrong result
  • Next by Date: Re: Multiple Line coloring and Dashing in ListPlot
  • Previous by thread: Re: Changing a list with the information of other
  • Next by thread: Re: Changing a list with the information of other