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