MathGroup Archive 2005

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

Search the Archive

Re: operators for relations in sets


In article <dg8kar$qiq$1 at smc.vnet.net>,
 Andrzej Kozlowski <akoz at mimuw.edu.pl> wrote:

> First of all, \[SubsetEqual] is not defined in Mathematica. You can  
> define your own function SubsetEqual as:
> 
> SubsetEqual[A_List, B_List] := Intersection[A, B] == A
> 
> so that
> 
> SubsetEqual[{1},{1,2}]
> 
> True
> 
> etc. If you really want with the help of the Notation package you can  
> make the infix form A\[SubsetEqual]B equivalent to Subsetequal[A,B]  
> (although i would not bother).

Actually, there is no need to use the Notation package. The infix form 
{A}\[SubsetEqual]{B} _is_ interpreted automatically as SubsetEqual[A,B].

Cheers,
Paul

_______________________________________________________________________
Paul Abbott                                      Phone:  61 8 6488 2734
School of Physics, M013                            Fax: +61 8 6488 1014
The University of Western Australia         (CRICOS Provider No 00126G)    
AUSTRALIA                               http://physics.uwa.edu.au/~paul


  • Prev by Date: Re: Re: Re: Hardware question
  • Next by Date: Hamiltoncircuits on polyhedra
  • Previous by thread: Batch
  • Next by thread: Re: Re: operators for relations in sets