记录Python的一些相关库的函数用法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33532713/article/details/86570792

numpy

np.hypot(dx, dy)返回的欧几里德范数 sqrt(xx + yy).
官方解释:

numpy.hypot(x1, x2, /, out=None, *, where=True, casting=‘same_kind’, order=‘K’, dtype=None, subok=True[, signature, extobj]) = <ufunc ‘hypot’> .
Given the “legs” of a right triangle, return its hypotenuse.
Equivalent to sqrt(x12 + x22), element-wise. If x1 or x2 is scalar_like (i.e., unambiguously cast-able to a scalar type), it is broadcast for use with each element of the other argument. (See Examples)

猜你喜欢

转载自blog.csdn.net/qq_33532713/article/details/86570792