Difference between revisions of "Unique Command"

From GeoGebra Manual
Jump to: navigation, search
(added interlink to frequency command)
Line 3: Line 3:
 
;Unique[<List L>]
 
;Unique[<List L>]
 
:Returns list of elements of list L in ascending order, repetitive elements are included only once. Works for both a list of numbers and a list of text.  See also the [[Frequency Command|Frequency command]].
 
:Returns list of elements of list L in ascending order, repetitive elements are included only once. Works for both a list of numbers and a list of text.  See also the [[Frequency Command|Frequency command]].
 +
==CAS Syntax==
 +
;Unique[<List L>]
 +
:Returns a list where each element of L occurs only once.
 +
 +
: {{Example|1=&nbsp;
 +
:* <code>Unique[{1, x, x, 1, a}]</code> gives you "{x, 1, a}". }}

Revision as of 14:02, 29 July 2011



Unique[<List L>]
Returns list of elements of list L in ascending order, repetitive elements are included only once. Works for both a list of numbers and a list of text. See also the Frequency command.

CAS Syntax

Unique[<List L>]
Returns a list where each element of L occurs only once.
Example:  
  • Unique[{1, x, x, 1, a}] gives you "{x, 1, a}".
© 2024 International GeoGebra Institute