public override FiniteSet <Permutation> Intersection(FiniteSet <Permutation> SetIn) { /* IntegerFiniteSet outS = new IntegerFiniteSet(this); * outS.Name = "I"; * outS.IntersectWith(SetIn); * outS.FullRep = string.Format("{0}\\;\\cap\\;{1}\\;=\\;", this.Name, SetIn.Name) + outS.ToLatex(); */ return(this); }
public override FiniteSet <int> Intersection(FiniteSet <int> SetIn) { IntegerFiniteSet outS = new IntegerFiniteSet(this); outS.Name = "I"; outS.IntersectWith(SetIn); outS.FullRep = string.Format("{0}\\;\\cap\\;{1}\\;=\\;", this.Name, SetIn.Name) + outS.ToLatex(); return(outS); }
public abstract FiniteSet <T> Union(FiniteSet <T> SetIn); //All sets have an union operation so force deriving class to implment it public abstract FiniteSet <T> Intersection(FiniteSet <T> SetIn); //All sets have an intersection operation so force deriving class to implment it