“Sequence 指令”的版本间的差异

来自GeoGebra Manual
跳转至: 导航搜索
(機器人:執行文字代換作業 (-{{command +{{command|cas=true))
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
<noinclude>{{Manual Page|version=4.0}}</noinclude>{{command|cas=true|list|Sequence}}
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|list}}
;Sequence[ <Expression>, <Variable>, <Start Value>, <End Value> ]
+
; Sequence( < 運算式>, < 變數名 k>, < 起始值 a>, < 結束值 b> )
:{{translate|Sequence Command}}
+
:將索引 ''k'' 從 <起始值 a> 遞增 1 到 <結束值 b>,依次代入 <運算式> ,產生一個物件串列。
;Sequence[ <Expression>, <Variable>, <Start Value>, <End Value>, <Increment> ]
+
:{{examples|1=<div>
:{{translate|Sequence Command}}
+
:*<code><nowiki>Sequence((2, k), k, 1, 5)</nowiki></code> 建立一個點串列,''y'' 坐標從 1 到 5:''{(2, 1), (2, 2), (2, 3), (2, 4), (2, 5)}''。
;Sequence[ <End Value> ]
+
:*<code>Sequence(x^k, k, 1, 10)</code> 建立串列 {''x, x², x³, x⁴, x⁵, x⁶, x⁷, x⁸, x⁹, x¹⁰''}。</div>}}
:{{translate|Sequence Command}}
+
; Sequence( < 運算式>, < 變數名 k>, < 起始值 a>, < 結束值 b>, < 遞增值 i> )
==CAS 視窗==
+
:將索引 ''k'' 從 <起始值 a> 遞增 ''i'' 到 <結束值 b>,依次代入 <運算式> ,產生一個物件串列。
 
+
:{{examples|1=<div>
;Sequence[ <Expression>, <Variable>, <Start Value>, <End Value> ]
+
:*<code><nowiki>Sequence((2, k), k, 1, 3, 0.5)</nowiki></code> 建立一個點串列,''y'' 坐標從 1 遞增 0.5 到 3:''{(2, 1), (2, 1.5), (2, 2), (2, 2.5), (2, 3)}''。
:{{translate|Sequence Command}}
+
:*<code>Sequence(x^k, k, 1, 10, 2)</code> 建立串列 {''x, x³, x⁵, x⁷, x⁹''}。</div>}}
;Sequence[ <Expression>, <Variable>, <Start Value>, <End Value>, <Increment> ]
+
:{{note| 1=<起始值 a> 和 <結束值 b> 的位置並非只能引入定值,您也可以引入動態值像是[[數值滑桿_工具|數值滑桿]]。}}
:{{translate|Sequence Command}}
+
; Sequence( <結束值> )
 +
:從 1 到 <結束值> 建立一個整數串列。
 +
:{{examples| 1=<div>
 +
:*<code><nowiki>Sequence(4)</nowiki></code> 建立串列 ''{1, 2, 3, 4}''。
 +
:*<code><nowiki>2^Sequence(4)</nowiki></code> 建立串列 ''{2, 4, 8, 16}''。</div>}}
 +
;Sequence( < 起始值 k>, < 結束值 n> )
 +
: 從 ''k'' 到 ''n'' 建立一個(遞增或遞減)整數串列。
 +
:{{Examples| 1=<div>
 +
:*<code><nowiki>Sequence(7,13)</nowiki></code> 建立串列 {''7, 8, 9, 10, 11, 12, 13''}
 +
:*<code><nowiki>Sequence(18,14)</nowiki></code> 建立串列 {''18, 17, 16, 15, 14''}。
 +
:*<code><nowiki>Sequence(-5, 5)</nowiki></code> 建立串列 {''-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5''}。
 +
::{{Note|此指令有更精簡的寫法,例如 <code><nowiki>Sequence(7,13)</nowiki></code> 可以改成輸入 <code><nowiki>7..13</nowiki></code> 會得到同樣的結果。}}</div>}}
 +
:{{note| 1=請參閱[[串列]]瞭解更多關於串列運算的資訊。}}

2021年7月30日 (五) 08:18的最新版本

Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


Sequence( <運算式>, <變數名 k>, <起始值 a>, <結束值 b> )
將索引 k 從 <起始值 a> 遞增 1 到 <結束值 b>,依次代入 <運算式>,產生一個物件串列。
範例:
  • Sequence((2, k), k, 1, 5) 建立一個點串列,y 坐標從 1 到 5:{(2, 1), (2, 2), (2, 3), (2, 4), (2, 5)}
  • Sequence(x^k, k, 1, 10) 建立串列 {x, x², x³, x⁴, x⁵, x⁶, x⁷, x⁸, x⁹, x¹⁰}。
Sequence( <運算式>, <變數名 k>, <起始值 a>, <結束值 b>, <遞增值 i> )
將索引 k 從 <起始值 a> 遞增 i 到 <結束值 b>,依次代入 <運算式>,產生一個物件串列。
範例:
  • Sequence((2, k), k, 1, 3, 0.5) 建立一個點串列,y 坐標從 1 遞增 0.5 到 3:{(2, 1), (2, 1.5), (2, 2), (2, 2.5), (2, 3)}
  • Sequence(x^k, k, 1, 10, 2) 建立串列 {x, x³, x⁵, x⁷, x⁹}。
備註: <起始值 a> 和 <結束值 b> 的位置並非只能引入定值,您也可以引入動態值像是數值滑桿
Sequence( <結束值> )
從 1 到 <結束值> 建立一個整數串列。
範例:
  • Sequence(4) 建立串列 {1, 2, 3, 4}
  • 2^Sequence(4) 建立串列 {2, 4, 8, 16}
Sequence( <起始值 k>, <結束值 n> )
kn 建立一個(遞增或遞減)整數串列。
範例:
  • Sequence(7,13) 建立串列 {7, 8, 9, 10, 11, 12, 13}。
  • Sequence(18,14) 建立串列 {18, 17, 16, 15, 14}。
  • Sequence(-5, 5) 建立串列 {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5}。
備註: 此指令有更精簡的寫法,例如 Sequence(7,13) 可以改成輸入 7..13 會得到同樣的結果。
備註: 請參閱串列瞭解更多關於串列運算的資訊。
© 2024 International GeoGebra Institute