python - 사인(sin)
언어/python2018. 2. 13. 22:45
import numpy as np
import matplotlib.pyplot as pt
def main():
x_coord = np.linspace(start=0,
stop=2*np.pi,
num= 100000,
dtype=np.float32)
y_coord = list()
for i in x_coord:
y_coord.append(np.sin(i))
pt.plot(x_coord, y_coord)
pt.show()
if __name__ == "__main__":
main()
'언어 > python' 카테고리의 다른 글
turtle 나무 (0) | 2018.02.21 |
---|---|
pygame _00 (0) | 2018.02.20 |
데모 PE - (0) | 2018.02.12 |
python - turtle - 졸라맨 (0) | 2018.02.08 |
진행 중 - 파이썬 PE , 리버싱 (0) | 2018.02.07 |