Python的math模块中的函数与NumPy库中的等价物:它们之间的主要区别是什么?

huangapple go评论53阅读模式
英文:

Functions in Python's math module and equivalents in NumPy library: What are the fundamental differences?

问题

Python的math模块和NumPy库中的函数之间的基本区别是什么?

英文:

What are the fundamental differences between the functions in Python's math module and their equivalents in the NumPy library?

答案1

得分: 1

numpy处理向量(或标量、矩阵或任意的n维数组),math只处理标量。

英文:

numpy works with vectors (or scalars, or matrices, or arbitrary n-dimensional arrays), math works with scalars only.

huangapple
  • 本文由 发表于 2023年2月26日 20:50:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/75572088.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定