Difference between revisions of "Union Command"

From GeoGebra Manual
Jump to: navigation, search
m
(command syntax: changed [ ] into ( ))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|list}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|list}}
;Union[ <List>, <List> ]
+
;Union( &lt;List>, &lt;List> )
 
: Joins the two lists and removes elements that appear multiple times.
 
: Joins the two lists and removes elements that appear multiple times.
:{{Example|1=<br><code>Union[ {1, 2, 3, 4, 5}, {3, 2, 1, 7} ]</code> yields <code>{1, 2, 3, 4, 5, 7}</code>.}}
+
:{{Example|1=<br><code>Union( {1, 2, 3, 4, 5}, {3, 2, 1, 7} )</code> yields <code>{1, 2, 3, 4, 5, 7}</code>.}}
;Union[ <Polygon>,  <Polygon> ]
+
;Union( <Polygon>,  <Polygon> )
 
:Finds the union of the two polygons. Works only for where the polygons are not self-intersecting, and where the union is a single polygon.
 
:Finds the union of the two polygons. Works only for where the polygons are not self-intersecting, and where the union is a single polygon.

Latest revision as of 11:58, 6 October 2017


Union( <List>, <List> )
Joins the two lists and removes elements that appear multiple times.
Example:
Union( {1, 2, 3, 4, 5}, {3, 2, 1, 7} ) yields {1, 2, 3, 4, 5, 7}.
Union( <Polygon>, <Polygon> )
Finds the union of the two polygons. Works only for where the polygons are not self-intersecting, and where the union is a single polygon.
© 2024 International GeoGebra Institute