4 base
= os
.path
.dirname(__file__
)
5 path
= os
.path
.dirname(base
)
6 sys
.path
.insert(0, path
)
8 sys
.stdout
= open(sys
.argv
[1], "w")
10 import liba
# type: ignore
16 x
[i
] = (i
- N
/ 2) * T
18 liba
.mf
.gauss(x
, 1, 0)
19 liba
.mf
.gauss2(x
, 1, -1, 1, +1)
20 liba
.mf
.gbell(x
, 2, 4, 0)
22 liba
.mf
.dsig(x
, 5, -2, +5, 2)
23 liba
.mf
.psig(x
, 5, -2, -5, 2)
24 liba
.mf
.tri(x
, 0, 1, 2)
25 liba
.mf
.trap(x
, 0, 1, 2, 3)
30 liba
.mf
.pi(x
, 0, 1, 2, 3)
34 (liba
.mf
.TRI
, -3 * S
, -3 * S
, -2 * S
),
35 (liba
.mf
.TRI
, -3 * S
, -2 * S
, -1 * S
),
36 (liba
.mf
.TRI
, -2 * S
, -1 * S
, +0 * S
),
37 (liba
.mf
.TRI
, -1 * S
, +0 * S
, +1 * S
),
38 (liba
.mf
.TRI
, +0 * S
, +1 * S
, +2 * S
),
39 (liba
.mf
.TRI
, +1 * S
, +2 * S
, +3 * S
),
40 (liba
.mf
.TRI
, +2 * S
, +3 * S
, +3 * S
),
43 liba
.mf()(param
[0], x
, param
[1:])