4 sys
.path
.insert(0, os
.getcwd())
5 prefix
= os
.path
.join(sys
.path
[0], "build")
6 if not os
.path
.exists(prefix
):
11 import matplotlib
.pyplot
as plt
12 except Exception as e
:
27 x1
= np
.cos(2 * np
.pi
* (f_0
* x1
+ 0.5 * c
* x1
* x1
))
30 for i
in range(len(x2
)):
32 plt
.figure("High Pass Filter")
33 plt
.plot(x
, x1
, "b-", x
, x2
, "g-")
34 plt
.savefig(os
.path
.join(prefix
, "hpf.png"))