Difference between revisions of "Union Command"

From GeoGebra Manual
Jump to: navigation, search
m (removed unnecessary bold style)
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|list}}
 
{{command|list}}
 
;Union[ <List 1>, <List 2> ]: Joins the two lists and removes elements that appear multiple times.
 
;Union[ <List 1>, <List 2> ]: 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 poly1>,  <Polygon poly2> ]: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.
 
;Union[ <Polygon poly1>,  <Polygon poly2> ]: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.

Revision as of 21:06, 9 March 2013



Union[ <List 1>, <List 2> ]
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 poly1>, <Polygon poly2> ]
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