Start GeoGebra
Create Activity
Create Book
Upload…
Create Group
Join Group
Resources
Downloads
Blog
Help
Sign in
搜索
页面
讨论
查看源代码
历史
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
Create language links
链入页面
相关更改
上传文件
特殊页面
查看“Sample 指令”的源代码
←
Sample 指令
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
不允许您执行您所请求的操作。
您可以查看和复制此页面的源代码。
<noinclude>{{Manual Page|version=4.0}}</noinclude>{{command|cas=true|statistics|Sample}} ;Sample[ <List>, <Size> ] :{{translate|Sample Command}} ;Sample[ <List>, <Size>, <With Replacement> ] :{{translate|Sample Command}} ==CAS 視窗== ;Sample[ <List>, <Size> ] :{{translate|Sample Command}} ;Sample[ <List>, <Size>, <With Replacement> ] :{{translate|Sample Command}} ;Sample[ <List L>, <Size n> ] :Returns list of ''n'' randomly chosen elements of ''L''; elements can be chosen several times. :{{example|1=<div><code><nowiki>Sample[{1, 2, 3, 4, 5}, 5]</nowiki></code> yields for example ''{1, 2, 1, 5, 4}''.</div>}} ;Sample[ <List L>, <Size n>, <Boolean for replacement> ] :Returns list of ''n'' randomly chosen elements of ''L''. Elements can be chosen several times if and only if the last parameter is true. :{{example|1=<div><code><nowiki>Sample[{1, 2, 3, 4, 5}, 5, true]</nowiki></code> yields for example ''{2, 3, 3, 4, 5}''.</div>}} ==CAS Syntax== ;Sample[ <List L>, <Size n> ] :Returns list of ''n'' randomly chosen elements of ''L''; elements can be chosen several times. :{{example|1=<div><code><nowiki>Sample[{-5, 2, a, 7, c}, 3]</nowiki></code> yields for example ''{a, 7, -5}''.</div>}} ;Sample[ <List L>, <Size n>, <Boolean for replacement> ] :Returns list of ''n'' randomly chosen elements of ''L''. Elements can be chosen several times if and only if the last parameter is true. :{{example|1=<div>The list can include lists as well: Let ''List1'' be ''{1, 2, 3}''.<br /><code><nowiki>Sample[{List1, 4, 5, 6, 7, 8}, 3, false]</nowiki></code> yields for example ''{6, {1, 2, 3}, 4}''.</div>}}
该页面使用的模板:
Template:Command
(
查看源代码
)
Template:Example
(
查看源代码
)
Template:Manual Page
(
查看源代码
)
Template:Translate
(
查看源代码
)
返回至
Sample 指令
。
GeoGebra
About
Team
Blog
Help
Tutorials
Forum
Manual
Partners
Partners
Institutes
Get Involved
Contact us
Feedback & Questions
This email address is being protected from spambots. You need JavaScript enabled to view it.
+43 677 6137 2693
Terms of Service
Privacy
License
© 2024 International GeoGebra Institute