| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
210 バイト追加 、 2021年10月16日 (土) 01:04
</pre>
=====累乗、平方根=====
<pre>
>>> x = np.array([1,2,3,4], dtype=float)
>>> np.power(x,2)
array([ 1., 4., 9., 16.])
>>> x ** 2
array([ 1., 4., 9., 16.])
>>> np.sqrt(x)
array([1. , 1.41421356, 1.73205081, 2. ])
</pre>
===参照===

案内メニュー