2 from __future__
import print_function
5 path
= os
.path
.dirname(__file__
)
6 path
= os
.path
.dirname(path
)
7 sys
.path
.insert(0, path
)
9 sys
.stdout
= open(sys
.argv
[1], "w")
11 import liba
# type: ignore
17 x
[i
] = (i
- N
/ 2) * T
19 liba
.mf
.gauss(x
, 1, 0)
20 liba
.mf
.gauss2(x
, 1, -1, 1, +1)
21 liba
.mf
.gbell(x
, 2, 4, 0)
23 liba
.mf
.dsig(x
, 5, -2, +5, 2)
24 liba
.mf
.psig(x
, 5, -2, -5, 2)
25 liba
.mf
.tri(x
, 0, 1, 2)
26 liba
.mf
.trap(x
, 0, 1, 2, 3)
31 liba
.mf
.pi(x
, 0, 1, 2, 3)
35 liba
.new_num((liba
.mf
.TRI
, -3 * S
, -3 * S
, -2 * S
)),
36 liba
.new_num((liba
.mf
.TRI
, -3 * S
, -2 * S
, -1 * S
)),
37 liba
.new_num((liba
.mf
.TRI
, -2 * S
, -1 * S
, +0 * S
)),
38 liba
.new_num((liba
.mf
.TRI
, -1 * S
, +0 * S
, +1 * S
)),
39 liba
.new_num((liba
.mf
.TRI
, +0 * S
, +1 * S
, +2 * S
)),
40 liba
.new_num((liba
.mf
.TRI
, +1 * S
, +2 * S
, +3 * S
)),
41 liba
.new_num((liba
.mf
.TRI
, +2 * S
, +3 * S
, +3 * S
)),
44 liba
.mf
.mf(param
[0], x
, param
[1:])