setOR(a,b)

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


Syntax

o_setOR(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 either A or B

Usage

Use this to perform set operation "union"

Location

menu: veeos ==> Math ==> Sets ==> setOR

library: mathLib

Example

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

Notes

setOR is equivalent to a union of two sets with duplicate elements removed, as in a Venn diagram.

Reference

Dependencies

uses unique(A)

Supported On

VEE 7.0+, all platforms

See Also

isElement, setAND, setComplement,setXOR, unique


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 03 February 2023 13:03.