[過去ログ]
高校数学の質問スレ Part434 (1002レス)
高校数学の質問スレ Part434 http://rio2016.5ch.io/test/read.cgi/math/1712376048/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
728: 132人目の素数さん [sage] 2024/04/30(火) 22:29:16.36 ID:VcpWQbIP >>726 可読性向上 sim[] :=( item=0; L=0; While[L<10, p1=RandomReal[]; (* runif(1) *) p2=RandomReal[1-p1]; (* runif(1,0,1-p1) *) p3=1-p1-p2; d=RandomChoice[{p1,p2,p3} -> {-1,0,1}]; (* sample(c(-1,1,1),1,prob=c(p1,p2,p3)) *) If[!(L==0 && d==-1), L=L+d]; item++]; item ) sim[] http://rio2016.5ch.io/test/read.cgi/math/1712376048/728
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 274 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.010s