반응형
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 |
Tags
- django
- Excel
- Google Spreadsheet
- matplotlib
- Apache
- string
- Mac
- list
- Kotlin
- PySpark
- Github
- dataframe
- c#
- Java
- GIT
- 파이썬
- google apps script
- Google Excel
- PostgreSQL
- gas
- math
- SQL
- Tkinter
- Redshift
- array
- numpy
- hive
- PANDAS
- Python
Archives
- Today
- Total
목록루트 (1)
달나라 노트
Python numpy : sqrt (제곱근, numpy 제곱근, numpy 루트)
numpy의 sqrt는 어떤 수의 제곱근을 계산해줍니다. import numpy as np test_value = np.sqrt(1) print(test_value) test_value = np.sqrt(4) print(test_value) test_value = np.sqrt(9) print(test_value) -- Result 1.0 2.0 3.0 사용법은 간단합니다. 위처럼 그냥 어떤 값을 sqrt method의 parameter로 전달하면 그 값의 제곱근을 계산해줍니다. import numpy as np value_list = [1, 2, 4, 9, 16] result = np.sqrt(value_list) print(result) value_arr = [1, 2, 4, 9, 16] result..
Python/Python numpy
2022. 1. 22. 21:31