일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- mariadb
- dataframe
- GT-S80
- Python
- Lotto
- SPL
- install
- CNN
- LSTM
- 알고리즘
- DFS
- GitHub
- imread
- pycharm
- E-P1
- 삼성소프트웨어멤버십
- Series
- index
- pandas
- synology
- RNN
- Button
- pip
- Numpy
- keras
- javascript
- ipad
- SciPy
- mean
- Splunk
Archives
- Today
- Total
잠토의 잠망경
[numpy] np.power() 본문
np.power()
import numpy as np
x1 = range(6)
print(np.power(x1,3))
#[0,1,8,27,64,125]
x2 = [1.0, 2.0, 3.0, 3.0, 2.0,1.0]
print(np.power(x1,x2))
#[0., 1., 8., 27., 16., 5]
제곱, a^b
Comments