*/b=:2 7 1 8 2 8 1792 <./b 1 >./b 8應用副詞產生的新動詞 (如同基本動詞) 也有單邊與雙邊動詞之分。依其作用的結果,副詞 / 可稱為 插入 或 製表。雙邊 / 產生一表格,例如:
2 3 5 +/ 0 1 2 3 2 3 4 5 3 4 5 6 5 6 7 8動詞 over=:({.;}.)@":@, 及 by=:' '&;@,.@[,.] 用來作工具 (拿來用,先不必懂), 幫助瞭解函數表(如前面的加法表)的意義。例如:
a=: 2 3 5 b=: 0 1 2 3 a by b over a +/ b +-+-------+ | |0 1 2 3| +-+-------+ |2|2 3 4 5| |3|3 4 5 6| |5|5 6 7 8| +-+-------+ b by b over b </ b +-+-------+ | |0 1 2 3| +-+-------+ |0|0 1 1 1| |1|0 0 1 1| |2|0 0 0 1| |3|0 0 0 0| +-+-------+
練習
3.1 | Enter d=: i.5 and 句子 st=: d-/d
and pt=: d^/d to produce 函數表 for subtraction
and power.
|
3.2 | Make 表格for furr 函數 from 前個 sections,
including relations < and = and > and
lesser-of與greater-of.
|
3.3 | Apply 動詞 |. and |: to 各類表格,
and try to state what y do.
|
3.4 | transpose 函數 |: changes
subtraction表格, but appears to have no effect on multiplication表格.
State property of those 函數 whose 表格remain unchanged
when transposed. 解答:y are commutative |
3.5 | Enter d by d over d!/d and state 定義
of dyad ! . 解答: ! is binomial coefficient or outof 函數; 3!5 is number of ways that three things can be chosen from five. |