Element Command

From GeoGebra Manual
Revision as of 13:07, 16 July 2011 by Zbynek (talk | contribs)
Jump to: navigation, search


Element[List, Number n]
Yields the nth element of the list.
Element[Matrix, Row, Column]
Yields the element of the matrix in the given row and column.
Note: For this command to work, the list or matrix can contain elements of one object type only (e. g., only numbers or only points).
Element[List L, Index1, Index2, ...]
Provided L is n-dimensional list, one can specify up to n indices to obtain an element (or list of elements) at given coordinates.
Example: Let L={{{1,2},{3,4}},{{5,6},{7,8}}}. Then Element[L,1,2,1] returns 3, Element[L,2,2] returns {7,8}.
© 2024 International GeoGebra Institute