일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 삼성소프트웨어멤버십
- Lotto
- Python
- pycharm
- GitHub
- Button
- Splunk
- 알고리즘
- CNN
- ipad
- pip
- SciPy
- index
- pandas
- Series
- mariadb
- E-P1
- imread
- keras
- dataframe
- install
- LSTM
- javascript
- GT-S80
- Numpy
- mean
- SPL
- DFS
- RNN
- synology
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