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
22 hpf
= liba
.hpf(10, 0.01)
23 for i
in range(len(x
)):
24 x1
= math
.cos(2 * math
.pi
* (f_0
* x
[i
] + 0.5 * c
* x
[i
] * x
[i
]))
25 print("%g,%g,%g" % (x
[i
], x1
, hpf(x1
)))