Difference between revisions of "Mode Command"

From GeoGebra Manual
Jump to: navigation, search
m (make-up: spacing)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|statistics}}
 
{{command|statistics}}
; Mode[List of Numbers]: Determines the mode(s) of the list elements.
+
;Mode[ <List of Numbers> ]:Determines the mode(s) of the list elements.
: {{Example|1=<br/>
+
:{{Examples|1=<br/>
:* <code>Mode[{1, 2, 3, 4}]</code> returns an empty list ''{}''.
+
:*<code>Mode[{1, 2, 3, 4}]</code> returns an empty list ''{}''.
:* <code>Mode[{1, 1, 1, 2, 3, 4}]</code> returns the list ''{1}'' .
+
:*<code>Mode[{1, 1, 1, 2, 3, 4}]</code> returns the list ''{1}'' .
:* <code>Mode[{1, 1, 2, 2, 3, 3, 4}]</code> returns the list ''{1, 2, 3}''.}}
+
:*<code>Mode[{1, 1, 2, 2, 3, 3, 4}]</code> returns the list ''{1, 2, 3}''.}}

Revision as of 23:02, 17 November 2012


Mode[ <List of Numbers> ]
Determines the mode(s) of the list elements.
Examples:
  • Mode[{1, 2, 3, 4}] returns an empty list {}.
  • Mode[{1, 1, 1, 2, 3, 4}] returns the list {1} .
  • Mode[{1, 1, 2, 2, 3, 3, 4}] returns the list {1, 2, 3}.
© 2024 International GeoGebra Institute