iconEuler Reference

Sets

Set functions union, intersection etc. (Version 1.0, Nov 2009 by WK)

Load with "load sets"

function union ()

  All different values of the args

necessary because of the existence of 0xn and nx0 matrices

function isempty (mat:numerical)

  1 if mat is an empty matrix
	a:=union(x1)|union(x2);
	y:=sort(a);
	diffy:=differences(y);
function isequal ()

  1 if all args are equal matrices,
  empty matrices are considered to be equal to each other
function isequalset ()

  1 if all args are equal sets
function issubset (x:numerical,y:numerical)

  returns 1 if x is a subset of y,
  bear in mind that an empty set is always a subset of y
function intersection ()

  intersection(args) returns only the values that exist in every arg.
function difference (universe)

  Values that exist in universe but not in the other args.

Documentation Homepage