Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
extrema / usr / share / extrema / Help / Operators / union.htm
Size: Mime:
<HTML>
<HEAD>
<TITLE>UNION</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" fgcolor="#000000">

<P><A NAME="union"></A>
<font size="+3" color="green"><B>UNION</B></font></P>
<P>
<TABLE border="1" cols="2" frame="box" rules="all" width="572">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%"><CODE>
vout = v1 /| v2</CODE>
</TD></TR>
</table></p>
<p>
 The union operator, <CODE>/|</CODE>, is a binary operator that only accepts vectors
 as operands, and returns a vector which contains the union of the elements of these
 two vectors.</p>
<p>
 All vectors have an order property. Vectors are either in ascending order, descending
 order, or un-ordered.  The type is displayed in the
 <CODE><a href="../Commands/Show.htm">SHOW</a></CODE>
 command. For now, being ordered only has an affect on the vector union,
 <CODE>/|</CODE>, and the vector <a href="intersection.htm">intersection</a>,
 <CODE>/&amp;</CODE>.  These operations are much faster if the vector operands are ordered.  The
 <CODE><a href="../Functions/where.htm">WHERE</a></CODE>
 function produces an ascending order vector, as does the
 <CODE><a href="../Commands/Sort.htm">SORT/UP</a></CODE>
 command.  The <CODE>SORT/DOWN</CODE> command produces a
 descending order vector.  This vector property will be utilized more in the future
 to enhance speed and efficiency.</p>
<p>
 <font size="+1" color="green">Example</font></p>
<p>
 To illustrate vector union, suppose you have two vectors:</p>
<p>
 <CODE>X = [1;2;3;4;5;6;7]</CODE> and <CODE>Y = [-2;-1;0;1;2]</CODE></p>
<p>
 Then: <CODE>X/|Y = [-2;-1;0;1;2;3;4;5;6;7]</CODE></p>
</BODY>
</HTML>