MathGroup Archive 2005

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

Search the Archive

Intersection @ Complement

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58104] Intersection @ Complement
  • From: Zak Seidov <zakseidov at yahoo.com>
  • Date: Sat, 18 Jun 2005 06:08:04 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Some crazy thing Mmca does with
Intersection/Complement:

s1={1,2,5,7,4,4,1};s2={1,6,3,5,7,7,1,6};
Intersection[s1,s2]
{1,5,7} (* not {1,1,5,7} ?!*)
Complement[s1,s2]
{2,4} (* not {2,4,4} ?!*)
Complement[s2,s1]
{3,6} (* not {3,6,6,7} ?!*)

Interestingly, in both cases Mmca Help
says that the result is SORTED list,
while actually it's UNION not SORT that works?!
And note that in the last case 7 is absent at all ?!
what d'u think about this? thanks a lot, zak


  • Prev by Date: plot command
  • Next by Date: Did something change?
  • Previous by thread: Re: Intersection @ Complement
  • Next by thread: Re: Intersection @ Complement