일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- list
- PySpark
- string
- math
- SQL
- Java
- Tkinter
- PANDAS
- Github
- 파이썬
- Python
- gas
- c#
- Apache
- PostgreSQL
- Kotlin
- matplotlib
- Google Spreadsheet
- numpy
- Google Excel
- Redshift
- hive
- django
- dataframe
- array
- google apps script
- Excel
- GIT
- Mac
- Today
- Total
목록log2 (2)
달나라 노트
math library에서는 log함수를 지원합니다. 기본적으로 다음과 같이 3가지가 있습니다. math.log() = 밑이 e(자연 상수)인 log math.log2() = 밑이 2인 log math.log10() = 밑이 10인 log import math result = math.log(math.e) print(result) result = math.log2(2) print(result) result = math.log10(10) print(result) -- Result 1.0 1.0 1.0 math의 log method는 위처럼 사용할 수 있습니다. log method의 괄호 안에 log를 적용할 값을 넣어주면 되는것이죠. numpy library의 log 함수와 매우 흡사합니다. (numpy ..

numpy에서는 log함수를 지원합니다. 기본적으로 다음과 같이 3가지가 있습니다. numpy.log() = 밑이 e(자연 상수)인 log numpy.log2() = 밑이 2인 log numpy.log10() = 밑이 10인 log import numpy as np result = np.log(np.e) print(result) result = np.log2(2) print(result) result = np.log10(10) print(result) -- Result 1.0 1.0 1.0 numpy의 log method는 위처럼 사용할 수 있습니다. log method의 괄호 안에 log를 적용할 값을 넣어주면 되는것이죠. import numpy as np arr_test = np.array([1, 2..