Element 指令

来自GeoGebra Manual
(重定向自Element Command
跳转至: 导航搜索
Accessories dictionary.png
本页为官方文件,一般使用者无法修改,若有任何误谬,请与官方联络。如欲编辑,请至本页的开放版


Element( <串列>, <元素编号 n> )
回传 <串列> 中的第 n 个元素。
范例:
Element({1, 3, 2}, 2) 回传 {1, 3, 2} 的第二个元素 3
备注:Menu view cas.svg 运算区 未定义的变数也适用。
范例:
Element({a, b, c}, 2) 回传 {a, b, c} 的第二个元素 b
Element( <矩阵>, <m 列>, <n 行> )
回传 <矩阵> 中第 m 列第 n 行的元素。
范例:
Element({{1, 3, 2}, {0, 3, -2}}, 2, 3) 回传 \begin{pmatrix}1&3&2\\0&3&-2\end{pmatrix} 第 2 列第 3 行的元素 -2
备注:Menu view cas.svg 运算区 未定义的变数也适用。
范例:
Element({{a, b, c}, {d, e, f}}, 2, 3) 回传 \begin{pmatrix}a&b&c\\d&e&f\end{pmatrix} 第 2 列第 3 行的元素 f
Element( <串列>, <索引 1>, <索引 2>, ...)
若 <串列> 是 n 维串列,则至多可以指定 n 个索引作为坐标,取出单一元素(或串列)。
范例:
假设 L = {{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}}
Element(L, 1, 2, 1) 回传 3Element(L, 2, 2) 回传 {7, 8}
备注:
© 2024 International GeoGebra Institute