2 import os
, sys
, math
, random
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
15 lpf
= liba
.lpf(10, 0.01)
18 x1
= math
.sin(x
[i
]) + 0.2 * (random
.random() - 0.5)
19 print("%g,%g,%g" % (x
[i
], x1
, lpf(x1
)))