반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- google apps script
- Google Spreadsheet
- string
- numpy
- math
- Excel
- matplotlib
- 파이썬
- array
- GIT
- PANDAS
- Apache
- hive
- Kotlin
- Python
- Mac
- Java
- Google Excel
- PySpark
- list
- PostgreSQL
- Redshift
- django
- dataframe
- Tkinter
- Github
- SQL
- gas
- c#
Archives
- Today
- Total
목록matpolib (1)
달나라 노트

numpy는 삼각함수를 적용한 값을 얻어낼 수 있습니다. import numpy as np sin_0 = np.sin(np.pi/2 * 0) print(sin_0) sin_90 = np.sin(np.pi/2 * 1) print(sin_90) -- Result 0.0 1.0 np.sin(x)에서 x는 라디안입니다. π/2 * 1 = 90도 π/2 * 2 = 180도 π/2 * 3 = 270도 π/2 * 4 = 360도 이런식이죠. sin그래프를 생각하면 위 예시의 값이 왜 0과 1이 나왔는지 아실겁니다. 만약 모르겠다면 아래 예시를 봅시다. import numpy as np import matplotlib.pylab as plt arr_x_range = np.linspace(0, 2 * np.pi, num..
Python/Python numpy
2021. 3. 29. 22:34