setAND(a,b)

Returns the set of elements that are in both of two sets.


Syntax

setAND(a,b)
a: array any - input set
b: array any - input set
return: array 1D any - array that includes all elements that are part of both A and B

Usage

Use this to perform set operation "intersection"

Location

menu: veeos ==> Math ==> Sets ==> setAND

library: mathLib

Example

setAND( [2   3  4  3  5  5  3  1] ,  [6  3  4  7  1] ) returns [3  4  1]

Notes

setAND is equivalent to an intersection of two sets with duplicate elements removed, as in the intersecting area of a Venn diagram.

Reference

Dependencies

uses unique(A)

Supported On

VEE 7.0+, all platforms

See Also

isElement, setComplement, setOR, setXOR, unique


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 24 October 2015 19:30. © 2015.