p. c « (m;r)
p.p.c « c
如果 e 為ㄧ個元素全為
非負整數的向量,則 p.<c,.e 得到
相等多項式的係數:
(p. <c,.e)&p. « (<c,.e)&p.
|
|
有三種類型─係數、乘數與根、
多項式 (係數與指數的封裝矩陣):
c p. x « +/c*x^i.#c
(m;r) p. x « m * */x-r
(<r)&p. « (1;r)&p.
(<c,.e)p.<y « c+/ .*e*/ .(^~)y
其中 m 為純量; c 與 r 為
多個純量,或者向量;而 e 為ㄧ個向量或矩陣使得
($e)-:(#c),(#y)。一純量 y 通常為extended。
|
p. 1 0 0 1
+-+-----------------------------+
|1|_1 0.5j0.866025 0.5j_0.866025|
+-+-----------------------------+
]mr=: p. c=: 0 16 _12 2 Multiplier/Roots from係數
+-+-----+
|2|4 2 0|
+-+-----+
x=: 0 1 2 3 4 5
(c p. x), ((<c,.i.4)p. x), (mr p. x),: 2*(x-4)*(x-2)*(x-0)
0 6 0 _6 0 30
0 6 0 _6 0 30
0 6 0 _6 0 30
0 6 0 _6 0 30
c=: 1 3 3 1
c p. x
1 8 27 64 125 216
(x+1)^3
1 8 27 64 125 216
bc=: !~/~i.5 Binomial係數
bc;(bc p./ x);((i.5) ^~/ x+1)
+---------+--------------------+--------------------+
|1 0 0 0 0|1 1 1 1 1 1|1 1 1 1 1 1|
|1 1 0 0 0|1 2 3 4 5 6|1 2 3 4 5 6|
|1 2 1 0 0|1 4 9 16 25 36|1 4 9 16 25 36|
|1 3 3 1 0|1 8 27 64 125 216|1 8 27 64 125 216|
|1 4 6 4 1|1 16 81 256 625 1296|1 16 81 256 625 1296|
+---------+--------------------+--------------------+
c&p. d. 1 x First 導函數of 多項式
3 12 27 48 75 108
(<1 _1 ,. 5 0) p. 3 係數/ Exponents
242
_1 0 0 0 0 1 p. 3
242
p. <1 _1 ,. 5 0 係數/ Exponents to係數
_1 0 0 0 0 1
c=: _1 1 2 3 [ e=: 4 2$2 1 1 1 1 2 0 2
c,.e 係數/ Exponents
_1 2 1
1 1 1
2 1 2
3 0 2
(<c,.e) p. <y=:2.5 _1 Multinomial
11.75
c +/ .* e */ .(^~) y
11.75
Note that (<c,.e)p.<y is a "proper" multinomial
only if 分子 of e are all 非負整數s.
In general powers are not so limited, as 在weighted sum
of square root與4-th root:
] t=: <2 3,.1r2 1r4
+-----+
|2 1r2|
|3 1r4|
+-----+
(t p. 16), +/ 2 3 * 16 ^ 1r2 1r4
14 14
variant p.!.s is a 梯段 多項式;
it differs from p. in that its 定義is based
upon梯段 ^!.s instead of on ^ (power).
下個 • 前個
• 字彙
• 索引
• 主選單