= begin
z = 1
x = 2
y + y
x end
3
司馬 博文
9/07/2020
A Blog Entry on Bayesian Computation by an Applied Mathematician
$$ %%% 汎用コード列%%% 演算子
%%% 線型代数学%%% 複素解析学 %%% 集合と位相
%%% 形式言語理論 %%% Graph Theory
%%% 多様体 %%% 代数 %%% 代数的位相幾何学 %%% 微分幾何学 %%% 函数解析 %%% 積分論%%% Fourier解析 %%% 数値解析
%%% 確率論%%% 情報理論 %%% 量子論 %%% 最適化 %%% 数理ファイナンス
%%% 偏微分方程式 %%% 常微分方程式 %%% 統計力学 %%% 解析力学
%%% 統計的因果推論 %%% 応用統計学 %%% 数理統計%%% 計量経済学
%%% 無限次元統計模型の理論%%% Banach Lattices
%%% 圏 %代数の圏 %Metric space & Contraction maps %確率空間とMarkov核の圏 %Sober space & continuous map %Category of open subsets %Category of sheave %Category of presheave, PSh(C)=[C^op,set]のこと %Convergence spaceの圏 %一様空間と一様連続写像の圏 %フレームとフレームの射 %その反対圏 %滑らかな多様体の圏 %Quiverの圏
%%% SMC %%% 括弧類%%% 予約語
%%% 略記
%%% 矢印類 $$
while
, for
block 内で global 変数を参照するときは自由でいいが,編集する際は
などとする必要がある.
一方で,if
-elseif
-else
-end
ブロックでは local scope は導入されない.
複数の subexpression を順に評価し,最後の subexpression の値を返す expression を compound expression という.
begin
-end
ブロック;
演算子条件評価では,条件が一致する場合のみ subexpression の評価が行われ,最後に評価された subexpression の値が返される.
if
-elseif
-else
-end
ブロック?,:
演算子a ? b : c
とした場合,a
がtrue
ならb
を,false
ならc
を評価した結果を返す.